Search
Lessons (29)
- 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 …
- Kafka for Backend Services
… More: [Sagas & the Outbox Pattern](/learn/microservices/data-sagas-and-outbox). Step 2: Consume events idempotently Kafka (and …
- Concurrency, Resilience & Distributed Workflows
… The transactional outbox writes the business row and an outbox row in one local transaction; a relay publishes …
- Real-Time, Pub/Sub, Webhooks and CDC
… A separate publisher reads unsent outbox rows and sends them. If it crashes, it just picks up where …
- The Hot SKU Alert Problem
… PriceChanged(product, version, old, new) ↓ outbox publisher ↓ Kafka ↓ fan-out and delivery pipeline Why the outbox? Without it …
- AWS Messaging: Queues, Topics and Events
… An outbox pattern stores an event alongside the order in the database transaction, then publishes it reliably later …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… the easiest way to implement the outbox pattern or to stream database changes to search indexes and warehouses …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… order placed text Order database + outbox row (one transaction) - event stream: OrderPlaced(order id, version, event id) - inventory …
- Design an E-Commerce Checkout
… Confirm, then announce When the order is confirmed, save the order and an outbox event ("order 812 confirmed …
- Practical Project: Deploy a Real CRM App on EKS
… The remaining OutboxRelayService error is an application problem. Learning to tell those two apart is half of operating …
- Batch vs Stream and Data Modeling
… In the same transaction, write an outbox event ("order 123 changed"). An outbox is a table of events …
- Storage, Search and Location Queries
… 2. Fix the pipe: make deletions travel through a reliable path (an outbox and retries) with a time …
- Payment Retries: Prevent Duplicate Charges
… mismatches. Matching your bank statement against your receipts. Outbox A table where we save "messages to send later …
- Kafka Producers
… Use the outbox pattern when writing to a database and Kafka together (see Microservices → Sagas & Outbox ) Key takeaways …
- Event-Driven Architecture
… versions/timestamps Lost events when saving + publishing Transactional outbox pattern Hard to debug "what happened?" Correlation IDs, distributed …
- Follow-Ups, Rejections and Your First 90 Days
… I enjoyed hearing about the migration to event-driven order processing; it's very close to the outbox …
- Cross-Service Data: How to Join Without a Database JOIN
… Use an outbox in each source service so important events are not lost between the database commit and …
- Design a Reliable Notification System
… The order service saves the order and an "outbox" event in the same database transaction . (An outbox is …
- Design a Social Media Feed
… Save the post and an outbox event ("post 555 was created") in one database transaction. (The outbox makes …
- Domain-Driven Design: Tactical Patterns
… via an outbox } } Domain service Application service --- --- --- Contains business rules? ✅ Yes ❌ No, only orchestration Knows about transactions, repositories …
- The L6 System-Design Thinking Loop
… A separate worker reads the outbox and sends receipts, and it can retry on its own without touching …
- Time, Consistency and Distributed Transactions
… must be designed and can fail too. The outbox pattern (save the business data and its event in …
- CQRS & Event Sourcing
… throws if already shipped await orderRepository.save(order); // + outbox event "ShippingAddressChanged" } // Projector: keeps the read model in sync …
- Database Indexing & Transactions
… for that, see Sagas & the Outbox Pattern in the Microservices lessons. Key takeaways - Indexes turn O(n) scans …
- Normalization & Denormalization
… The event/transactional outbox or refresh job that updates the copy. 3. Acceptable freshness delay. 4. Rebuild and …
- Choosing an Architecture
… Hexagonal, Stripe behind an ACL"] b1((core)) -- b2[Stripe adapter] end end Mono -- events via outbox K[(Kafka …
- Backend Design Scenarios
… A timeout means “unknown,” not “failed.” Use an outbox for internal payment events and a reconciliation job for …
- Flash Sale: 10 Million Buyers, No Oversell
… zero, - insert reservation(abc, expires at) , - write an outbox event (a "tell other services later" note saved in …
- Caching & Redis
… be lost, write an invalidation event to an outbox in the same database transaction and let a worker …