~/talk

Redis Application Patterns in Rails

Talkat RailsConf 2012 · 2012-04-23..04-25· [ruby-on-rails, databases]
slides:none on file

An activity stream for DueProps moves from slow Sequel queries to Redis and scales through traffic spikes, with pages serving in 20–30 ms page times. The codebase uses Redis sorted sets for time-ordered feeds (event IDs scored by timestamp), sets for attendee and follower indexes and HMSET details hashes to store event metadata; set intersections and unions filter and aggregate feeds. Redis CLI monitor aids debugging, Redis props and Redis objects libraries add model-level accessors, and the demo app runs successfully in production-like tests.

AI-written summary · about

  1. 0:00Introduction to Redis
  2. 2:04Understanding Redis
  3. 3:28Live demo setup
  4. 7:51Managing keys and namespaces
  5. 12:31Strings and basic operations
  6. 16:31Working with sets
  7. 25:36Sorted sets for events
  8. 31:13Data hashing
  9. 36:44Redis props and metaprogramming
  10. 40:57Advanced patterns
  11. 45:51Q&A and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.