Skip to content
Tanveer Hoque
All projects
Side project2026Author

Choreon

A Java library prototype for running a multi step business process across services and undoing the completed steps when one fails.

Problem

When placing an order touches stock and payment in separate services, no single database transaction covers it. A failure half way through leaves the earlier steps done unless something remembers them and reverses them.

Approach

A multi module Maven project on Java 21. The core has a saga engine that runs steps on virtual threads, records each transition and runs the compensating actions in reverse on failure, with smaller outbox, event store and command and query pieces behind interfaces. Kafka and RabbitMQ adapters implement one transport interface. A Spring Boot dashboard and an order, stock and payment demo show the runs, with failures that can be injected on purpose.

Outcome

  • The build and its 25 tests pass, covering the core and the demo flows without a broker.
  • A web dashboard lists saga runs live over server sent events, with retry and rollback.
  • The Kafka and RabbitMQ adapters are written but have no tests of their own.
  • It is a prototype: saga contexts live in memory, and the outbox write does not yet share a transaction with the business data.
Automated tests
25

Stack

Java Spring Boot MavenKafka RabbitMQPostgreSQLH2 JUnitDocker