Skip to main content

Example: Order Placement with Transactional Outbox and Idempotent Consumer

Learn Example: Order Placement with Transactional Outbox and Idempotent Consumer (Worked Examples · Complete Microservices Mini Programs, Microservices) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

What you build • Order-service saves an order and an outbox row in one local transaction ; a relay publishes the event to Kafka; payment-service consumes it idempotently . This is the building block of sagas without distributed transactions.

More lessons in Worked Examples · Complete Microservices Mini Programs