How to Build a State Machine on MongoDB and Redis
26 April - 5:00 PM - 5:25PM @ Ballroom D
25 minutes conference
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.