Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
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 this presentation titled 'Cached Rest Models' at Ruby Unconf 2018, Filipe Abreu, a developer from Zinc, discusses a gem he created during a hack week aimed at simplifying the integration of API calls, specifically for user profile data. The talk highlights the challenges faced when dealing with multiple APIs to aggregate user information across various applications. **Key Points:** - **Background**: Filipe introduces himself and his experience while working at Zinc, emphasizing the company's hack week initiative that encourages creativity and learning. - **Hack Week Project**: He describes his project called Cached Rest Models, which aims to streamline the way user data is retrieved and cached without relying on traditional Active Record models. - **Problem Description**: Filipe explains the issue of needing to call multiple APIs for a single user profile, specifically noting the complexity involved in API management particularly with privacy laws. - **Gem Functionality**: The gem maintains a local cache using Redis, allowing applications to share cache data, which leads to improved performance by avoiding repetitive API calls. - **Implementation**: He showcases simple code examples and functionalities, demonstrating how attributes for user models can be created dynamically and can incorporate REST API calls with added caching capabilities. - **Advantages**: Key advantages include reduced data retention requirements within applications and improved response times. The cache can be configured to expire at set intervals, ensuring data freshness without necessitating a complex data management system. - **Inspiration and Future Development**: Filipe reflects on the inspiration behind the gem, stemming from an older Rails tool that has been deprecated. He encourages contributions to the ongoing development of the gem, emphasizing its utility for smaller applications. - **Conclusion**: While the gem is not fully ready for production and Zinc utilizes a more integrated solution with Kafka, Filipe expresses hope that his work will help others encountering similar challenges. Additionally, he invites job seekers to consider opportunities at Zinc. This presentation serves as a practical insight into creating efficient data handling mechanisms in Ruby applications, focusing on the use of caching and API integration effectively.
Suggest modifications
Cancel