Search
Lessons (40)
- Delivery Guarantees: At-Most, At-Least & Exactly Once
Can a message be lost? Delivered twice? Learn Kafka's three delivery semantics, idempotent producers, transactions for read …
- REST API Design
… resource naming, methods, status codes, pagination, versioning, errors and idempotency. The big idea A good API is like …
- Concurrency, Resilience & Distributed Workflows
Keep backend systems correct under contention, failure and traffic spikes with idempotency, retries, circuit breakers, workers, webhooks, backpressure …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
Build resilient serverless workflows with retries, dead-letter queues, idempotency, fan-out and orchestration. Messages are delivered at …
- Kafka Producers
… batching, compression, partitioning, the acks setting that trades speed for safety, retries, and the idempotent producer. The big …
- Resilient Service Calls: Retries, Breakers and Load Shedding
… This lesson is about stopping that. Words you need Word Plain meaning Everyday example --- --- --- Idempotent Doing it twice …
- Message Queues & RabbitMQ
… processing the same message twice must be harmless. js // Idempotent consumer: remember processed message IDs if (await db …
- Kafka for Backend Services
… This is at-least-once, so consumers must be idempotent. How do you make a consumer idempotent? Store …
- Product-Scale Frontend Patterns
… A queued action needs an idempotency key so replay does not create duplicates. text client action - durable local …
- Serverless: Lambda and API Gateway
… Do not forget CORS when a browser frontend calls your API from a different domain. Retries require idempotency …
- Payment Retries: Prevent Duplicate Charges
… durable attempt, provider idempotency key, then recovery for an unknown result](/img/system-design-l6/payment-idempotency.svg …
- Consumers & Consumer Groups
… process, then commit, and make processing idempotent so a repeat does no harm. js const consumer = kafka.consumer …
- API Contracts, Gateways and Security
… 3. Repeat test: send the same "create order" request twice with the same idempotency key. Only one order …
- Design a Reliable Notification System
… Send the same idempotency key on any retry, if the provider supports it. 2. Record the attempt as …
- Design an E-Commerce Checkout
… catalog/search are read paths while inventory, payment and order transitions are owned and idempotent](/img/system-design …
- Data in Microservices: Sagas & the Outbox Pattern
… event is published twice, so consumers must be idempotent . Change Data Capture (CDC) tools like Debezium read the …
- How a Web Request Works
… 49.99 } HTTP methods Method Meaning Safe? Idempotent? --- --- --- --- GET Read ✅ ✅ POST Create / action ❌ ❌ PUT Replace ❌ ✅ PATCH Partial update …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… Order is kept only inside one line. Separate checkout lanes in a supermarket. Idempotent Handling the same message …
- Service Communication: Sync vs Async
… 1 }] } } 💡 Give every event an ID (for idempotency), a type , a version (for schema evolution) and a timestamp …
- Month 5: AI Agents and Tool Orchestration (Weeks 17-20)
… tools that change data take an idempotency key and can be undone. You know this from distributed systems …
- Resilience Patterns
… They'll fail again. - ⚠️ Only retry idempotent operations, or use idempotency keys (see REST API Design ). - Limit retries …
- The Hot SKU Alert Problem
… everyone in one lane is served in order, but one lane can't serve the whole store. Idempotency …
- Extending Kubernetes: CRDs, Operators and Admission
… create, update, delete A A -.- events C This reconcile loop must be idempotent and level-triggered : it looks …
- AWS Messaging: Queues, Topics and Events
… Use deterministic output keys or a provider-supported idempotency key so a retry does not repeat the side …
- Scaling, Load Balancing & Rate Limiting
… retry only idempotent requests or requests with an idempotency key, cap attempts, and use backoff with jitter. During …
- Proxies, APIs and Real-Time Protocols
… Include a request ID (an idempotency key ) so that if the phone retries, the server says "I already …
- L6 Production Debugging Casebook
… make effects idempotent. - 🧪 Measure before changing: bigger pools, more consumers and new indexes can all make things …
- Portfolio and GitHub That Prove Your Skills
… URL shortener with rate limiting and analytics; order service with a queue and idempotent payments. - Frontend : dashboard with …
- AWS Interview Questions: Clear Answers
… Add idempotency for client retries. Explain the data store and transaction choice before naming compute services. Follow-up …
- Serverless Architecture
… great for spiky workloads. - Design functions to be stateless, small, idempotent and least-privileged; use queues for resilience …
- Event-Driven Architecture
… in the ubiquitous language Unique eventId Consumers deduplicate (idempotency) version + a schema Evolve safely; old consumers keep working …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… The work must be idempotent. chunk id(job.id, index) always gives the same ID for the same …
- Referrals, Cold Outreach and Tracking Applications
… At my current company I cut checkout failures by 32% by adding idempotency keys and retries to our …
- Backend Design Scenarios
… Make delivery idempotent, track accepted/sent/failed counts, and allow pause/resume. If the five-minute requirement is …
- AI Agents and Tool Use
… For multi-step work, persist explicit workflow state and make side effects idempotent where possible. A long-running …
- StatefulSets, DaemonSets, Jobs and CronJobs
… registry.example.com/reports:2.1.0 Pitfalls: - Make jobs idempotent . A run can occasionally happen twice or …
- Real-Time, Pub/Sub, Webhooks and CDC
… at the same moment you write the letter. Idempotent Doing it twice has the same effect as doing …
- Time, Consistency and Distributed Transactions
… So every step and every undo must be idempotent (safe to run twice) and auditable (logged). Before reaching …
- Hash Maps & Sets
… Deduplication : "have we processed this event ID before?" (idempotency) - Counting : word frequency, rate limiting per user - Routing : URL …
- Monolith vs Microservices
… that becomes a network call needs timeouts, retries, idempotency, authentication, monitoring and versioning. The middle path: the modular …