Tag
#concurrency
2 articles tagged concurrency.
LLDadvancedPremium
Designing a Thread-Safe LRU Cache
A low-level-design walkthrough of an O(1) LRU cache in Java — HashMap plus an intrusive doubly linked list — and how to make it correct under concurrency. Includes the full, browsable implementation.
1 min read
HLDintermediate
Designing a Rate Limiter
How to design a rate limiter — algorithms, trade-offs, and a production-ready, thread-safe token bucket wired into Spring Boot as an interceptor.
3 min read