Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
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 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 Help us caption & translate this video! http://amara.org/v/FGi6/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the video "Redis Application Patterns in Rails," speaker Obie Fernandez explores how to effectively use Redis, a high-performance NoSQL database, within Ruby on Rails applications. He shares insights drawn from real production experience at DueProps, demonstrating various Redis application patterns that can enhance scaling and performance over traditional ActiveRecord setups. Key topics include: - **Overview of Redis:** Redis is introduced as a versatile key-value store with rich functionality that simplifies application development. - **Real-world Problems:** Obie discusses his initial challenges with using SQL databases to manage activity streams during a surge in user activity, leading to his adoption of Redis to support scaling. - **Common Patterns:** The talk covers a variety of Redis application patterns, including: - Adding Redis-based flags and properties to ActiveRecord objects. - Event tracking using Redis sets. - Building activity feeds with sorted sets and implementing security restrictions. - Aggregation of group activity feeds and usage in scoring and leaderboard features. - Integration of Redis with testing frameworks like Rspec and Cucumber. - Debugging techniques for troubleshooting Redis interactions. - **Practical Code Examples:** Obie endeavors to provide a hands-on demonstration through live coding, showing how to model data efficiently in Rails while leveraging Redis for improved performance. He presents example code hosted on GitHub for audience reference. - **Key Takeaways:** Obie's conclusion emphasizes the potential of using Redis to manage auxiliary data, thereby streamlining ActiveRecord classes and enhancing application speed. He encourages Rails developers to integrate Redis thoughtfully into their applications to utilize its capabilities effectively without over-complicating their architecture.
Suggest modifications
Cancel