Low Level Design: Circuit Breaker Pattern
State Machine The circuit breaker is a three-state machine wrapped around each outbound call to a downstream dependency. In the […]
State Machine The circuit breaker is a three-state machine wrapped around each outbound call to a downstream dependency. In the […]
Designing a media encoding pipeline requires coordinating upload handling, distributed transcoding, codec decisions, and delivery optimization into a coherent system.
Search autocomplete is a latency-critical, high-read-volume system that combines data structures, probabilistic algorithms, and multi-layer caching to return relevant suggestions
A database connection pool is one of the most impactful infrastructure components in any application that talks to a relational
Envelope Encryption The foundation of any secret management system is encryption at rest. Naive approaches encrypt every secret directly with
PKI Hierarchy A certificate authority system is built on a chain of trust. The root CA is the ultimate trust
Ride-sharing services like Uber and Lyft are canonical low level design problems because they combine real-time geospatial data, distributed state
Carpooling systems share many building blocks with on-demand ride-sharing but add significant complexity: multiple passengers must be matched to a
Dockless bike and scooter sharing systems combine IoT device management, real-time fleet tracking, geofencing enforcement, and per-minute billing. The design
Log Ingestion Pipeline Every host in the fleet runs a lightweight log shipping agent. Filebeat or Fluent Bit tails log
Metric Types Prometheus defines four core metric types. Counter: a monotonically increasing integer that never decreases except on process restart.
Low level design of an e-commerce platform requires thinking through a wide surface area: how products are modeled and indexed,
Video streaming at scale involves multiple specialized subsystems working in tight coordination: upload pipelines, real-time transcoding, adaptive bitrate delivery, content
Live streaming is fundamentally harder than video-on-demand: there is no pre-encoded content to cache, latency between broadcaster and viewer must
Order Book Structure The order book is the central data structure of any trading system. It maintains two sides: the