Cache Stampede
A cache stampede occurs when many requests try to rebuild the same cached value at once. It commonly happens when a popular key expires, is evicted, or is inval…
Cache
Caching is the process of storing frequently accessed data in a temporary storage location, in order in quickly retrieve it without the need to query the data o…
Cache invalidation
Cache invalidation removes or updates cached data when its source changes. It is needed when waiting for the TTL to expire would leave data stale for too long. …
Caching Type
cache can happen at several layers. Using multiple layers reduces latency and prevents every request from reaching the origin database or service. Stores dat…
CDN
Content Delivery Network (CDN) is a distributed proxy server that cache website static content closer to users. This routing visitor requests to the nearest edg…
Caching Strategies
There are several cache strategies: - Refresh Ahead - Write-Behind - Write-through - Cache Aside Example: Product catalog pages, trending news feeds, sessio…
System design
- monolith-vs-microservice - system-scalability - content-delivery-network-cache - cache - load-balancer - frontend - https://roadmap.sh/system-design - htt…
Kafka
Latest Noted 3 November 2021 ที่[เว็บของ Apache Kafka](https://kafka.apache.org/) เขียนไว้ว่า "Apache Kafka is an open-source distributed event streaming pla…
Load Balancer
Frontend
System Scalability
Scalability is a system's ability to handle increasing traffic, data volume, or computation without an unacceptable decline in performance or reliability. A sca…
Monolith vs Microservice
- All units (ex. UI, Business Logic, Data Access Layer) are implemented in a single components or codebase and connect to one database. - Easy to deploy, debug…