Redis Application Patterns in Ruby on Rails

Redis is a darling of the NoSQL crowd and for good reasons. It’s easy to setup and has blazing fast performance. In this talk, drawn on real production experience and real code straight out of the DueProps codebase, Obie Fernandez will introduce and demonstrate key Redis application patterns vital to today’s Rails developer. Emphasis will be placed on real-world constraints and how to leverage Redis to improve scaling and performance over plain-vanilla ActiveRecord applications.

Concepts covered:
* Adding Redis-based flags and other properties to ActiveRecord objects
* Event tracking with Redis sets
* Graphing relationships between (User) objects with Redis sets
* Time-ordered activity feeds with Redis sorted sets
* Applying security restrictions to display of activity feeds with intersection of Redis sorted sets
* Aggregating group activity feeds with union of Redis sorted sets
* Applying Redis sorted sets to scoring and leaderboard programming
* Integrating Redis with Rspec and Cucumber
* Debugging tactics for when things go wrong or are unclear

Video Producer: RailsConf 2012