Search
Lessons (40)
- Consumers & Consumer Groups
How consumers read in parallel with consumer groups, how partitions are assigned and rebalanced, how offsets are committed …
- What Is Apache Kafka?
… 8997 }) }], }); // Consumer: read events as part of a group const consumer = kafka.consumer({ groupId: "email-service" }); await consumer …
- Kafka for Backend Services
… that's why handlers are idempotent More: [Consumers & Consumer Groups](/learn/kafka/consumers-and-consumer-groups). Step 6 …
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… when the producer writes it, and when the consumer processes it. mermaid flowchart LR P[Producer] -- "① ack …
- A WhatsApp OTP Is Only Single Use If You Make It So
… The first one sets consumed at and finishes. 4. The second one wakes up and re-checks consumed …
- Message Queues & RabbitMQ
… Learn producers, consumers, acknowledgements, exchanges, retries and dead-letter queues with RabbitMQ. The big idea At a busy …
- Event-Driven Architecture
… Event-carried state transfer The data consumers need { type: "CustomerMoved", customerId, newAddress } Consumers keep a local copy and …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… topic + partition by key Ordering Per queue (with one consumer) Per partition Throughput High (tens of thousands of …
- Running Kafka in Production: The DevOps View
… topics, producers, consumers, delivery guarantees. The Apache Kafka section covers this. - DevOps / platform engineers build and run the …
- L6 Production Debugging Casebook
… the 11th reader waits. Partition / consumer group A Kafka topic is split into lines (partitions); a consumer group …
- Topics, Partitions & Offsets
… Compacted topics are great for restoring state (Kafka itself stores consumer offsets in a compacted topic, consumer offsets …
- AWS Messaging: Queues, Topics and Events
… Broadcasting to two consumers is not the same as adding two workers to one queue. A practical SQS …
- Hexagonal Architecture (Ports & Adapters)
… controller] CLI[CLI command] Test[🧪 Test] Consumer[Kafka consumer] end subgraph Core["⬡ Application core"] IP{{"Driving port …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… OrderPlaced(order id, version, event id) - inventory consumer group - email consumer group - analytics consumer group The outbox: don …
- Design System Operations
… Migrate consumers incrementally and measure adoption. 5. Remove deprecated APIs only after their consumers are gone. Key takeaways …
- Data in Microservices: Sagas & the Outbox Pattern
… If the relay crashes after publishing but before marking the row, the event is published twice, so consumers …
- Deploying & Operating Microservices
… Remember to delete old flags, or they become technical debt. Never break your consumers Other services depend on …
- Concurrency, Resilience & Distributed Workflows
… Idempotency is required for retryable HTTP requests, queue consumers, scheduled jobs and webhook handlers. Retries, exponential backoff and …
- Real-Time, Pub/Sub, Webhooks and CDC
… Check that events were actually processed . Check your understanding A consumer gets two events for order 55. How …
- Service Communication: Sync vs Async
… Interested services consume it when they're ready. mermaid sequenceDiagram participant C as Client participant O as Orders …
- Kafka Producers
… But producers and consumers must agree on it. Format Pros Cons --- --- --- JSON Human-readable, easy Larger, no enforced …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… Configure a dead-letter queue ; AWS recommends maxReceiveCount of at least 5 for Lambda consumers. Tune it for …
- Cross-Service Data: How to Join Without a Database JOIN
… User Service publishes UserProfileUpdated ; Order Service consumes it and updates its local order customers table. mermaid flowchart LR …
- Rust: Ownership, Borrowing and Lifetimes
… String) { println!("{s}"); } // s is dropped (freed) here let msg = String::from("bye"); consume(msg); // consume(msg); // ❌ value …
- Brokers, Replication & Durability
… It stores partition replicas and serves producers and consumers. - A cluster is a group of brokers (3 at …
- State Management (Redux, Zustand, TanStack Query)
… Very low Medium Low Re-render control ❌ All consumers ✅ Selectors ✅ Selectors ✅ Per query DevTools ❌ ✅ ✅✅ ✅ Learning curve Easy Easy …
- Embeddings, Semantic Search, and RAG
… Chunking too small loses context; too large can bury the relevant sentence and consume the context budget. Overlap …
- React Internals & Concurrent Rendering
… its own state changes, its parent renders, a consumed context changes, or its identity/key changes. A render …
- Imports, Moved Blocks, and Safe Refactoring
… Keep migration blocks long enough for all consumers to upgrade. Removing them too early can break upgrades from …
- The Hot SKU Alert Problem
… But it also means a hot product's events all sit in one lane , read by one consumer …
- Scaling, Load Balancing & Rate Limiting
… v2 deployment L7 routing is more capable but consumes more CPU and must understand protocol behavior. Do not …
- Atomic Design & Component Libraries
… Components consume the names instead of inventing values in every file. css :root { --color-action: 2563eb; --color-action …
- NestJS Core Concepts
… up" to everything that injects it TRANSIENT Per consumer Each injector needs its own instance (e.g. a …
- Code Profiling
… a wide bar means that stack frame consumed a large share of sampled CPU time. Width matters; height …
- CloudWatch: Know What Your App Is Doing
… duration Queue age increasing Are workers making progress? Consumer errors and dependency status Connection pool full Are connections …
- C4 Architecture Diagrams: Context, Container, Component and Code
… adapters, such as an HTTP controller or message consumer Framework plumbing that does not change the architecture Relationships …
- Domain-Driven Design: Strategic Design
… a well-defined public API for everyone Many consumers Published Language A documented shared format (schemas, events) Paired …
- Observability and Incident Response
… pause a rollout, turn off optional traffic, or stop a bad queue consumer. 3. Form a guess and …
- Rust: Types, Errors and Concurrency
… many producers, one consumer let (tx, rx) = mpsc::channel(); for id in 0..3 { let tx = tx.clone …
- Backend Design Scenarios
… Then isolate and degrade: - use bulkheads so the slow dependency cannot consume all application resources; - use bounded queues …