Search
Lessons (40)
- Brokers, Replication & Durability
… 62 🐢 fell behind<br/ removed from ISR"] The durability trio ⭐ These three settings together decide whether an acknowledged …
- EC2, Storage and Auto Scaling
Run virtual servers on AWS, attach durable disks, and add or remove server copies when demand changes. EC2 …
- Design a Logging and Monitoring Platform
… Write once to a durable stream, then build views from it 1. Agents send to an ingestion gateway …
- What Is Apache Kafka?
Kafka is a distributed, durable log of events that many systems can write to and read from at …
- Product-Scale Frontend Patterns
… A queued action needs an idempotency key so replay does not create duplicates. text client action - durable local …
- Flash Sale: 10 Million Buyers, No Oversell
… Something still has to do "take one only if one is left" atomically, at the durable source of …
- Design a URL Shortener
… client - API - validate destination - create durable mapping - cache mapping Open link: browser - CDN/redirect API - cache - mapping database …
- Design a Ride-Sharing Service
… One driver, one ride. Storage Fast in-memory geo index with TTL Durable database with atomic updates Here …
- Transactions, Indexes & Concurrency
… Atomicity is all-or-nothing; consistency preserves constraints; isolation defines concurrent visibility; durability survives failure. Never wait for …
- Collaborative Document Editing & Real-Time Sync
… If the server crashes in between, the user was told "saved" but the edit is gone. ✅ Right: durable …
- Proxies, APIs and Real-Time Protocols
… Anything that must survive a crash goes in durable storage or a queue TCP (the basic "reliable" internet …
- Design a Polite Web Crawler
… Because each URL has a durable identity (a saved, stable ID), saving the same page twice just overwrites …
- Caching & Redis
… With cache-aside, the safe default is write to the durable database first, then delete the cache key …
- Message Queues & RabbitMQ
… crypto.randomUUID() }, // write to disk ); js // consumer.js const channel = await connection.createChannel(); await channel.assertQueue("emails", { durable …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… It stores events in a durable, partitioned log, and consumers track their own offsets, so events stay after …
- AWS Messaging: Queues, Topics and Events
… A queue is durable within its service behavior, but it is not infinite historical storage. Duplicate-safe receipt …
- Serverless: Lambda and API Gateway
… Never depend on local memory for durable coordination. Retry behavior depends on the caller API Gateway does not …
- Architecture Patterns at Scale
… Use events for durable work that can happen later (send receipt, update search). Use serverless for bursty, short …
- Design a Reliable Notification System
… a durable record that says - who it's for, - which template and which version of it, - which channel …
- Design a Social Media Feed
… Save the post durably (safely in the database). This is the truth. 2. Then schedule the fan-out …
- Database Internals, Replication and Scaling
… writes become durable log records, replicas serve compatible reads, and pools protect scarce connections](/img/system-design-l6 …
- The Hot SKU Alert Problem
… it's guaranteed to be posted, even if the postman comes later. Kafka / partition Kafka is a durable …
- AWS Interview Questions: Clear Answers
… can still create duplicate orders unless you implement durable idempotency. Does encryption mean an S3 bucket is private …
- Pods: Where Your App Actually Runs
… runs one app container. - A pod is not durable: use a Deployment to recreate it. - Containers in a …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… review. RecordOutcome is a placeholder Pass state, not durable storage. Implement persistence and an idempotent reserve-stock handler …
- Containers at Scale: ECS Deep Dive and EKS
… work, and exiting within the configured grace period. Durable queue jobs should be acknowledged only after their intended …
- Concurrency, Resilience & Distributed Workflows
… A production job should have: - a durable queue and a unique job ID; - a visibility timeout or lease …
- AWS Data Pipelines in Plain Language
… Choose overwrite-by-partition, merge, or durable event deduplication according to the model. Preserve raw inputs and record …
- Data in Microservices: Sagas & the Outbox Pattern
… A simple orchestrator (tools like Temporal make this durable and crash-safe) async function placeOrderSaga(order) { const done …
- AWS Databases: Choose the Right One
… access patterns and keys, not tables and joins. - A cache improves speed but does not replace durable data.
- ACID, Transactions & Locks
… Two buyers cannot both reserve the last item. Durability Crash after success A committed payment record is recovered …
- Big Data: ETL, Warehouses and Streaming
… raw events land durably, ETL/stream processing creates curated lake and warehouse datasets](/img/system-design-l6/big …
- Design a File Storage Service
… just trust "eleven nines" Storage providers promise extreme durability (often "99.999999999%"). That protects you from disks dying …
- Timeouts, Retries & Backpressure
… Save uploads to a durable queue (one that survives a restart) with a known maximum size. 2. Show …
- Design a Chat Application
… t delay them. </details --- Going deeper ![Chat separates durable conversation storage from WebSocket fan-out, presence and offline …
- Storage, Search and Location Queries
… The final assignment needs a durable, atomic claim (one database update that only succeeds if the driver is …
- Premiere-Night Video Streaming
… store) so "resume" is quick. - Copy it to durable storage in the background . - Include a timestamp or sequence …
- Resilient Service Calls: Retries, Breakers and Load Shedding
… reconcile later Receipt email Done in the background Durable worker retries Deliver later These patterns only work together …
- Data Structures for Scale
… off - Crawler: Bloom filter in front of the durable visited table. "Definitely absent" saves a lookup; "maybe present …
- Payment Retries: Prevent Duplicate Charges
… never creates another payment. ![The safe payment path: durable attempt, provider idempotency key, then recovery for an unknown …