Search
Lessons (14)
- Brokers, Replication & Durability
… In Kafka, every partition has one leader replica and several follower replicas on different brokers. ![Each partition has …
- Kafka Producers
… It controls how many brokers must confirm a write before the producer considers it successful. mermaid sequenceDiagram participant …
- Event-Driven Architecture
… Orders knows nobody"] O2[Orders] -- OrderPlaced B{{Event broker}} B -- I2[Inventory] B -- P2[Payments] B -- E2[Email …
- Topics, Partitions & Offsets
… orders (3 partitions)"] P0["Partition 0 → Broker 1"] P1["Partition 1 → Broker 2"] P2["Partition 2 → Broker 3 …
- What Is Apache Kafka?
… them Broker A Kafka server that stores partitions A printing plant Cluster A group of brokers working together …
- Kafka vs RabbitMQ & the Kafka Ecosystem
When to choose Kafka and when a traditional broker like RabbitMQ fits better, plus a tour of Kafka …
- Message Queues & RabbitMQ
… true }); // survives broker restart channel.sendToQueue( "emails", Buffer.from(JSON.stringify({ to: "ana@mail.com", template: "welcome" })), { persistent …
- Stacks & Queues
… task scheduling, message brokers, the event loop, BFS.
- Service Communication: Sync vs Async
… messaging and events A service publishes a message to a broker (Kafka, RabbitMQ, SQS) and moves on. Interested …
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… producer ID + sequence numbers let the broker drop retried duplicates. It's on by default in modern Kafka …
- Data in Microservices: Sagas & the Outbox Pattern
… A separate relay process reads the outbox and publishes to the broker. mermaid flowchart LR subgraph Tx["One …
- Consumers & Consumer Groups
… as Consumer 2 participant GC as Group coordinator (broker) Note over C1,C2: C1 has P0, P1 · C2 …
- Deploying & Operating Microservices
… requests, finish current ones await db.end(); await broker.disconnect(); process.exit(0); }); setTimeout(() = process.exit(1), 25 …
- Domain-Driven Design: Tactical Patterns
… other bounded contexts (through an outbox and a broker), and can even become the source of truth ( event …