Natan Silnitsky
Advanced Caching Patterns used by 2000 microservices
#1about 7 minutes
Why caching is critical for services at scale
Caching reduces latency, lowers infrastructure costs, and improves reliability by making services less dependent on databases or third-party services.
#2about 1 minute
Knowing when not to implement a cache
Avoid adding a cache prematurely for young products with low traffic, as it introduces unnecessary complexity, potential bugs, and additional failure points.
#3about 4 minutes
Caching critical configuration with an S3-backed cache
Use a read-through cache backed by S3 to store static, rarely updated configuration data, ensuring service startup reliability even when dependencies are down.
#4about 6 minutes
Building a dynamic LRU cache with DynamoDB and CDC
Implement a cache-aside pattern using an in-memory LRU cache backed by DynamoDB and populated via Kafka CDC streams to reduce database load for frequently accessed data.
#5about 5 minutes
Using Kafka compact topics for in-memory datasets
For smaller datasets, use Kafka's compact topics to maintain a complete, up-to-date copy of the data in-memory for each service instance.
#6about 6 minutes
Implementing an HTTP reverse proxy cache with Varnish
Use a reverse proxy like Varnish Cache with a robust invalidation strategy to dramatically reduce response times for services with expensive computations like server-side rendering.
#7about 4 minutes
A decision tree for choosing the right caching pattern
Follow a simple flowchart to select the appropriate caching strategy based on whether the data is for startup, dynamic retrieval, or stable HTTP responses.
#8about 12 minutes
Q&A on caching strategies and implementation details
The discussion covers HTTP header caching, custom invalidation logic, handling the "thundering herd" problem, and the choice of JVM for high-performance services.
Related jobs
Jobs that call for the skills explored in this talk.
Picnic Technologies B.V.
Amsterdam, Netherlands
Senior
Java
Amazon Web Services (AWS)
+1
Matching moments
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
05:12 MIN
How to build structure and culture without killing agility
From Data Keeper to Culture Shaper: The Evolution of HR Across Growth Stages
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
01:15 MIN
Crypto crime, EU regulation, and working while you sleep
Fake or News: Self-Driving Cars on Subscription, Crypto Attacks Rising and Working While You Sleep - Théodore Lefèvre
Featured Partners
Related Videos
Scaling: from 0 to 20 million users
Josip Stuhli
HTTP headers that make your website go faster
Thijs Feryn
Single Server, Global Reach: Running a Worldwide Marketplace on Bare Metal in a Cloud-Dominated World
Jens Happe
In-Memory Computing - The Big Picture
Markus Kett
The Rise of Reactive Microservices
David Leitner
Swapping Low Latency Data Storage Under High Load
George Asafev
Sleek, Swift, and Sustainable: Optimizations every web developer should consider
Andreas Taranetz
Event based cache invalidation in GraphQL
Simone Sanfratello
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Qvest Digital AG
Köln, Germany
Intermediate
Senior
Software Architecture
Cloud (AWS/Google/Azure)

Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript

Wilken GmbH
Ulm, Germany
Senior
Kubernetes
AI Frameworks
GitHub Copilot
Anthropic Claude
Cloud (AWS/Google/Azure)

Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
Java
Google Cloud Platform

Grühn GmbH
Wiesbaden, Germany
€75-90K
Kubernetes
Microservices
Software Architecture
Configuration Management


GIOS Technology
Knutsford, United Kingdom
£117K
API
Kafka
DevOps
Gitlab
+10


Wavestone
Zürich, Switzerland
Senior
Go
Bash
Azure
DevOps
Python
+11