Percona Live 2017 Open Source Database Conference

April 24 - 27, 2017

Santa Clara, California

How to Build a State Machine on MongoDB and Redis

How to Build a State Machine on MongoDB and Redis

 26 April - 5:00 PM - 5:25PM @ Ballroom D
Experience level: 
25 minutes conference
Tools and Techniques


CRM platform Appboy uses MongoDB for its storage, with a Redis caching layer used in a variety of ways to maximize performance for the real-time messaging and analytics we view as crucial to a communication platform. Niki Castle, a software engineer at Appboy, will discuss the way we pair these technologies to power Canvas, our user journey offering, and delve into some of the most interesting and complex constraint problems that we have used this setup to solve. As we follow an imaginary user’s journey through a directed graph representation of a state machine, we will examine how we can represent and update state using MongoDB’s flexible schemas, how we can handle race conditions using Redis’ atomic locking, and how we can creatively use Redis to cache the bare minimum of information necessary to meet guarantees of correct and reliable traversal.


Niki Castle's picture

Niki Castle

---, ---



Share this talk