Kafka Log Compaction

Kafka offers an alternative to the time-bound retention policy, called log compaction. This article takes a deep dive into the relatively unknown capability of Kafka.

Causal Consistency in Mongo

How to guarantee causal consistency in Mongo using Node.js?

Single Level of Abstraction Principle

What is Single Level of Abstraction (SLA) principle, why is it important, and how to apply it?

Avoiding Cache Stampede with XFetch

When adding a caching layer, the first question that usually comes to mind is the validity period. However, what is usually not considered, is how the cache behaves if it's accessed concurrently. Ignoring concurrency when accessing cached values may lead to cache stampede (a.k.a dog-piling). This article introduces an effective lock-free algorithm which helps to avoid cache stampede.