Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
We’ve always put a lot of effort into performance at DEV (https://dev.to/). We want our users to be able to see their content almost instantaneously when interacting with our site. In order to do so we’ve placed emphasis on caching. We’ve had to ask ourselves questions like what are the right things to cache? Which layer in the stack would be best to cache it? And how will this affect the overall performance? During this presentation, I’d like to show you some of the caching strategies we have in place and discuss how they’ve sped up the interactions within our site. rubyday 2023 happened in Verona on 16th June 2023 Info and details of this edition: 2023.rubyday.it/
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 video presentation titled "Caching strategies on dev.to" by Ridhwana Khan, a lead engineer at DEV, the central focus is on how effective caching can improve performance on the platform. Ridhwana begins by sharing her background and passion for technology and community building, before providing an overview of DEV as an online community for software developers. **Key Points Discussed:** - **Caching Importance:** Caching is emphasized as a critical factor in DEV's fast performance, especially given that the site has a high read-load with infrequently changing content. - **Types of Caching:** The talk highlights various caching techniques including response caching, edge caching, fragment caching, and browser caching. - **Response Caching:** This method reduces server load and speeds up requests by storing responses from the server. - **Edge Caching:** Utilized at DEV through Fastly, it caches content closer to users worldwide, significantly boosting loading speeds. - **Fragment Caching:** Important for complex views, ensuring that only parts of the view need to be processed on database calls rather than the entire page. - **Browser Caching:** Aims to prevent unnecessary requests from leaving the user's browser, enhancing speed. - **Caching Implementation:** Examples of DEV’s implementation include: - Using warmed edge cache to improve user experience by accelerating loading times for articles. - Storing comments for SEO enhancements while rendering dynamic content like user reactions separately to ensure accuracy. - **Decision-Making for Caching:** Ridhwana shares reflective questions she considers when deciding whether to implement caching, such as the frequency of data changes and the most advantageous stack layer for caching. - **Miscellaneous Techniques:** Additional strategies mentioned include counter caching, which helps display counts efficiently without extra database queries, and the use of tagging systems to categorize content effectively. **Conclusion and Takeaways:** Ridhwana concludes by stressing the importance of constant monitoring and adjustment of caching strategies based on performance metrics. By encouraging teams to implement features and closely observe their performance, DEV maintains its commitment to an efficient platform for its users. Ultimately, effective caching not only enhances the speed and efficiency of the DEV platform but also contributes to a better overall user experience.
Suggest modifications
Cancel