Search
Lessons (40)
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… It always arrives, but sometimes the recipient gets two. - Exactly once ✅: it always arrives, and exactly one copy …
- Binary Search
… search on a condition Binary search works on anything where a yes/no question flips exactly once : text …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… Either both are saved, or neither is. ❌ Wrong: "Kafka has exactly-once, so I don't need to …
- Creational Patterns: How to Make Objects
… Singleton 🏛️ Analogy: A country has exactly one government. Everyone who asks "who's in charge?" gets the …
- React vs Vue vs Angular
… tracked dependencies"] V1[ref changes] -- V2["Proxy knows exactly<br/ which parts use it"] -- V3[update only those …
- Message Queues & RabbitMQ
… At least once ⭐ Never lost, may be duplicated Ack after processing + idempotent consumers Exactly once Never lost, never …
- Payment Retries: Prevent Duplicate Charges
… the finished order. One honest point first: "charged exactly once " is a business goal . A single web request …
- A WhatsApp OTP Is Only Single Use If You Make It So
… Promise.all fires all 50 requests at once, which is exactly the situation that breaks a check-then …
- Batch vs Stream and Data Modeling
… Only make copies for speed once you've proven reads are slow. The story in one minute You …
- Kafka for Backend Services
… exactly-once? Within Kafka (read from Kafka, write to Kafka) yes, with idempotent producers and transactions. Once a …
- Proxies, APIs and Real-Time Protocols
… Whether every order/payment command succeeded exactly once . Dropping an old driver position is fine. Losing an order …
- Bash Scripting & Scheduled Jobs
… Recent logs:" journalctl -u "$SERVICE" -n 30 --no-pager exit 1 💡 npm ci (not npm install ) installs exactly …
- Design a Chat Application
… Each recipient eventually sees it exactly once . 3. Messages within one conversation appear in order . Ordering every message …
- Rust: Ownership, Borrowing and Lifetimes
… The book has exactly one owner (the person who checked it out). 2. You can lend it: to …
- StatefulSets, DaemonSets, Jobs and CronJobs
… startup StatefulSet Exactly one pod on every (or selected) node DaemonSet Run a task once until it succeeds …
- The Hot SKU Alert Problem
… Tell every one of them exactly once, without freezing the price update, overloading the email provider or delaying …
- Consumers & Consumer Groups
… Each partition is read by exactly one consumer in a group at a time. 2. One consumer can …
- Classes and Objects
… runs once when you create a dog with new constructor(name: string, age: number) { this.name = name; this …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… year), exactly-once execution, auditable history Express Short (up to 5 minutes); asynchronous is at-least-once, synchronous …
- Atomic Design & Component Libraries
… When branding changes, update --color-action once instead of hunting down many near-identical blue values. Build accessible …
- Async JavaScript: Promises, async/await and Node's Event Loop
… Promise moves from pending to fulfilled or rejected, exactly once](/img/languages/promise-states.svg) 📘 The browser event …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… filtering, mapping, joining streams, windowed aggregations, with exactly-once support. No separate cluster needed; it runs inside your …
- API Gateway, BFF & Service Discovery
… one endpoint shaped exactly for the home screen app.get("/mobile/home", async (req, res) = { const [user, orders …
- Data in Microservices: Sagas & the Outbox Pattern
… inbox (idempotency) on the consumer side gives effectively exactly-once processing. Querying across services "Show orders with customer …
- Observability: Logs, Metrics & Traces
… Then from a slow trace you can jump straight to the logs of exactly that request. OpenTelemetry: one …
- Safe AWS Deployments with IaC and CI/CD
… Test the application and build the image once. 2. Tag it with the source revision and publish it …
- CI/CD with GitHub Actions
… That works until you're on holiday, or you forget npm ci , or two people deploy at once …
- AWS Messaging: Queues, Topics and Events
… do not make arbitrary external side effects magically exactly once. Still design safe retries. An EventBridge event json …
- Normalization & Denormalization
… one fact, one home Normalization organizes a relational database so a fact is stored once, in the table …
- Frontend Performance & Core Web Vitals
… Google measures exactly these three feelings with the Core Web Vitals . ![The three Core Web Vitals and their …
- Docker in Production on a Single Server
… pack once, and every ship, train and truck can move it the same way. A Docker image is …
- Timeouts, Retries & Backpressure
… If 1,000 clients all retry at exactly the same moment, they hit the sick service like a …
- Flash Sale: 10 Million Buyers, No Oversell
… 1. Race: 10,000 buyers try to buy the last unit at once. Exactly one wins. 2. Repeat …
- Big Data: ETL, Warehouses and Streaming
… process a big pile at once (e.g. nightly). Streaming: process each event as it arrives. Doing laundry …
- System Design Interview Framework
… with questions about users and promises. "It's exactly once ." "Each message has a unique ID with a …
- Design an E-Commerce Checkout
… hold the stock, charge once even on retries, create the order and announce it reliably. The story in …
- The L6 System-Design Thinking Loop
… More traffic changes how many people you let in at once. It never changes the rule that one …
- API Contracts, Gateways and Security
… Anyone who reads it knows exactly what to put in and what comes out. For POST /orders , write …
- Design a Reliable Notification System
… This lesson is about sending messages that are on time, sent once (as far as possible), and respectful …
- Caching, Consistent Hashing and Sharding
… All 50,000 reads per second rush to the database at once. The database falls over. 4. Meanwhile …