TAG · 30 ARTICLES
#trade-offs
- SYSTEM DESIGNCommunication layer protocols: HTTP, gRPC, WebSocket and RSocket, and when to switchHTTP/1.1, HTTP/2, HTTP/3, WebSocket, gRPC and RSocket are all interaction protocols. They decide how two systems talk, while TCP and QUIC only move the bytes. Learn what each one adds, why REST and Protobuf are not on the list, and the simple rule for when to move off REST.27 Nov 2026 · 15 min
- SYSTEM DESIGNCache eviction and invalidation explained: LRU vs LFU, TTL and the thundering herd problemA cache is small and data keeps changing. Eviction decides what to throw out when memory is full. Invalidation removes data that's no longer true. Learn LRU, LFU, FIFO and TTL, the four ways to invalidate a cache, and how to stop a thundering herd from flattening your database.24 Nov 2026 · 8 min
- SYSTEM DESIGNCaching explained: what a cache is, why it matters and what can go wrongA cache keeps a copy of slow-to-get data somewhere fast, so you don't fetch it again and again. Learn how a cache hit and miss work, where caches live, the one trade-off behind every cache, and the four ways a cache can hurt you.24 Nov 2026 · 6 min
- SYSTEM DESIGNCaching strategies explained: cache-aside vs read-through vs write-through vs write-backEvery cache has to answer three questions: when does data go into it, where do writes go first, and who keeps it in step with the database? The four caching strategies are four different answers. Learn how each one works, when to use it, and the bugs that come with it.24 Nov 2026 · 7 min
- SYSTEM DESIGNDeployment strategies explained: rolling vs blue-green vs canary, and feature flagsMost outages start with a change. A good deployment strategy limits how many users a bad release can hurt and lets you undo it in seconds. Learn rolling, blue-green and canary deployments, why deploy is not the same as release, and how to change a database without downtime.24 Nov 2026 · 8 min
- SYSTEM DESIGNDesigning for failure: single points of failure, failover and graceful degradationEvery server, network and database will fail one day. Good systems are not the ones that never fail, but the ones that fail in small, safe ways. Learn how to fail fast with timeouts, find and remove single points of failure, choose active-passive or active-active failover, and degrade gracefully.24 Nov 2026 · 9 min
- SYSTEM DESIGNDisaster recovery explained: RPO vs RTO, backups and multi-region DR strategiesResilience patterns handle a slow service. Disaster recovery handles losing a whole data centre, a corrupted database or a deleted table. Learn RPO and RTO, the kinds of backup, why backups and replication are not the same thing, and the four DR strategies from backup-and-restore to active-active.24 Nov 2026 · 8 min
- SYSTEM DESIGNEvent-driven architecture explained: events vs commands, the outbox pattern and choreography vs orchestrationIn an event-driven system, services stop telling each other what to do and start announcing what happened. Learn events vs commands, how to design a good event, the transactional outbox pattern, choreography vs orchestration, and how to deal with duplicates, ordering and changing schemas.24 Nov 2026 · 8 min
- SYSTEM DESIGNEvent sourcing explained: how it works, snapshots, CQRS and when to use itMost databases keep only the latest state and quietly throw away how it got there. Event sourcing keeps every change as an event and builds the current state from them. Learn how event sourcing works, snapshots, CQRS projections, handling concurrency and GDPR, and when it's worth the extra complexity.24 Nov 2026 · 8 min
- SYSTEM DESIGNLoad balancing explained: algorithms, health checks and L4 vs L7 load balancersA load balancer spreads requests across many servers so no single one gets crushed, and quietly steps around the ones that break. Learn how load balancers work, round robin vs least connections, health checks, sticky sessions, Layer 4 vs Layer 7, and how load balancing fails.24 Nov 2026 · 9 min
- SYSTEM DESIGNMessage queues explained: queue vs pub/sub vs stream, Kafka vs RabbitMQMessaging lets services talk without waiting for each other. Learn what a message queue is, the three messaging models (queue, pub/sub and stream), when to pick Kafka, RabbitMQ or Redis, and how to handle lost, duplicate, out-of-order and poison messages.24 Nov 2026 · 8 min
- SYSTEM DESIGNObservability explained: logs, metrics and traces (and how they differ from monitoring)When production breaks, you need to know what failed, where, when, why and for whom. Observability is how a system answers those questions. Learn the three pillars, logs, metrics and distributed tracing, plus correlation IDs, percentiles, the golden signals, health checks and alerts people don't ignore.24 Nov 2026 · 9 min
- SYSTEM DESIGNTraffic control explained: rate limiting vs throttling vs backpressure vs load sheddingA load balancer spreads traffic out, but it can't make more of it fit. When too many requests arrive, you need traffic control. Learn the five tools that keep a system alive under pressure: rate limiting, throttling, backpressure, load shedding and queues, and when to use each.24 Nov 2026 · 9 min
- SYSTEM DESIGNWhat is YAGNI? "You aren't gonna need it" in system designYAGNI is a simple rule from software engineering: don't build things until you actually need them. Here is where it comes from, why over-engineering is so tempting in system design, and the few decisions you should still plan ahead for.24 Nov 2026 · 5 min
- SYSTEM DESIGNCAP theorem explained: consistency vs availability when the network breaksThe CAP theorem is famous and often misquoted. The idea itself is short: when the network between your servers breaks, each side must either refuse requests or risk giving wrong answers. Learn what C, A and P really mean, why 'pick 2 of 3' is misleading, CP vs AP with real examples, and the speed-vs-accuracy trade-off you face even when the network is fine.22 Nov 2026 · 10 min
- SYSTEM DESIGNData modeling explained: normalization, denormalization, OLTP vs OLAP and query-driven designPicking a database is half the job. The other half is the shape of your data. Learn when to store each fact once and when to copy it, why order history needs snapshots, how analytics data is shaped differently, and why NoSQL schemas start from your queries.22 Nov 2026 · 8 min
- SYSTEM DESIGNDatabase replication explained: leader-follower, multi-leader and leaderless quorumsKeep copies of your data on several machines and you survive crashes, serve users nearby and spread reads. But copies drift apart. Learn the three replication models, sync vs async, failover, write conflicts and quorums, and what each one costs.22 Nov 2026 · 9 min
- SYSTEM DESIGNShard rebalancing and hotspots: moving data without downtime and taming hot keysShards never stay balanced. Data grows unevenly, one celebrity floods a single shard, a machine dies. Learn how to move data between live shards without downtime or lost writes, how to find and cool down hotspots, and why chasing perfect balance makes things worse.22 Nov 2026 · 8 min
- SYSTEM DESIGNSharding strategies explained: hash, range, directory and consistent hashingOnce you shard, every row needs an address. Learn the four ways to decide which shard data lives on, why plain hash-mod-N hurts the day you add a shard, how consistent hashing and logical shards fix it, and how to choose a shard key you won't regret.22 Nov 2026 · 8 min
- SYSTEM DESIGNTypes of databases: SQL, key-value, document, wide-column, graph and time-series explainedThere is no best database, only the right one for a job. Learn the six main database types, what each one is good and bad at, and a simple way to choose: start with PostgreSQL and Redis, and add others only when an access pattern demands it.22 Nov 2026 · 9 min
- SYSTEM DESIGNVertical vs horizontal scaling for databases: partitioning, sharding and when to scale outWhen one database server runs out of room, you can buy a bigger machine or spread the data over many. Learn what each really costs, the difference between partitioning and sharding, the order most systems grow in, and what you give up the day you shard.22 Nov 2026 · 7 min
- SYSTEM DESIGNBack-of-the-envelope estimation in system design (with a cheat sheet)How many requests per second? How much storage? How many servers? Learn to answer in five minutes with simple maths, and let the numbers, not buzzwords, pick your design.21 Nov 2026 · 6 min
- SYSTEM DESIGNDistributed systems basics: what really changes when you add a networkThe moment your system runs on more than one machine, calls can fail halfway, time stops being reliable, and "did it work?" sometimes has no answer. Here is what changes, and the handful of ideas that keep you safe.21 Nov 2026 · 8 min
- SYSTEM DESIGNFunctional vs non-functional requirements: how to turn "make it fast" into a designRequirements are not paperwork. They are the numbers that decide your architecture. Learn the difference between functional and non-functional requirements, how to make vague words measurable, and what SLIs, SLOs and SLAs really mean.21 Nov 2026 · 9 min
- SYSTEM DESIGNHow to think like a software architectOne feature, three different minds. How a junior developer, a senior engineer and an architect each approach the same problem, and the habits that take you from one to the next.21 Nov 2026 · 9 min
- SYSTEM DESIGNAt-most-once vs at-least-once vs exactly-once: message delivery semantics explainedNetworks lose messages and repeat them. So every message system has to choose what goes wrong instead: lose a message, or deliver it twice. Learn the three delivery guarantees, why "exactly-once" is not what it sounds like, and how idempotency saves you.21 Nov 2026 · 9 min
- SYSTEM DESIGNMonolith vs microservices (and the modular monolith in between): how to chooseMicroservices are not an upgrade from a monolith. They are a trade. Learn what each style really is, what each one costs, and why team size matters more than traffic when you choose.21 Nov 2026 · 9 min
- SYSTEM DESIGNHTTP/2 multiplexing, full duplex, bidirectional streaming and QUIC explainedFive networking terms every developer hears in system design talks and interviews, explained in plain English: duplex, multiplexing, head-of-line blocking, bidirectional streaming and QUIC. Plus which protocols support what, and where each one sits: HTTP, TCP or UDP.21 Nov 2026 · 10 min
- SYSTEM DESIGNSynchronous vs asynchronous communication: 3 communication models explainedWhen one service needs another, does it wait? Does its thread wait? Does it even know who is listening? Three simple questions, three communication models, and how to pick the right one for each part of your system.21 Nov 2026 · 10 min
- SYSTEM DESIGNWhat is system design, really? A beginner's guideIt isn't memorising Kafka, Redis and Kubernetes. System design is how you turn a vague idea into a working system, by asking the right questions, choosing trade-offs on purpose and planning for failure from day one.21 Nov 2026 · 7 min