Search

Lessons (12)

  • 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 …

  • Design an E-Commerce Checkout

    … key, then commit an order and publish an outbox event. Do not hold a database transaction open across …

  • Real-Time, Pub/Sub, Webhooks and CDC

    … ownership CDC Publish committed database changes Use an outbox/transaction log, not app guesses Delivery is usually at …

  • Kafka vs RabbitMQ & the Kafka Ecosystem

    … the easiest way to implement the outbox pattern or to stream database changes to search indexes and warehouses …

  • Time, Consistency and Distributed Transactions

    … An outbox writes business state and its event in one local transaction. CRDTs converge without coordination for suitable …

  • 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 …

  • Domain-Driven Design: Tactical Patterns

    … via an outbox } } Domain service Application service --- --- --- Contains business rules? ✅ Yes ❌ No, only orchestration Knows about transactions, repositories …

  • 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 …