Low Level Design: Garbage Collector Internals
Garbage collection is the automatic memory management mechanism used by runtimes like the JVM, .NET CLR, and Go. Understanding its […]
Garbage collection is the automatic memory management mechanism used by runtimes like the JVM, .NET CLR, and Go. Understanding its […]
Columnar databases power modern analytics workloads — data warehouses, BI dashboards, log analytics, and time-series aggregations. Understanding their internals helps
HTTP/2 and HTTP/3 represent fundamental redesigns of the web’s application protocol, motivated by the performance limitations of HTTP/1.1. This post
Connection pooling is one of those infrastructure details that seems mundane until it isn’t — at which point your application
What Is gRPC? gRPC is a high-performance, open-source remote procedure call framework developed by Google. It uses Protocol Buffers (protobuf)
What Is a Full-Text Search Engine? A full-text search engine indexes large collections of text documents and retrieves the most
A Merkle tree (invented by Ralph Merkle in 1979) is a binary tree in which every leaf node contains the
What Is Event Sourcing? In traditional systems, the database stores the current state of an entity. When an order changes
A load balancer distributes incoming traffic across multiple backend instances to maximize throughput, minimize latency, and avoid overloading any single
Trie Node Structure Each node in a trie holds a fixed-size array of 26 child pointers (one per lowercase letter)
Token Bucket The token bucket algorithm models a bucket of capacity B tokens that refills at rate R tokens per
Mutex Basics A mutex (mutual exclusion lock) guarantees that only one thread can hold it at any given time. The
Compare-and-Swap (CAS) Compare-and-Swap is the atomic instruction at the heart of all lock-free algorithms. It takes three operands: a memory
B-Tree Node Structure A B-tree of minimum degree t enforces a capacity invariant on every node except the root: each
Write Path Every write in an LSM-tree storage engine lands first in two places simultaneously: the in-memory MemTable and the