Skip to content

dsugden/saga-lagom

Repository files navigation

saga-lagom

An example of using Lagom's Persistent Entities + Message Broker to implement a Saga Pattern.

Saga:

"A process that coordinates and routes messages between bounded contexts and aggregates,
 also an alternative to using a distributed transaction for managing
 a long-running business process."

Saga Service will aggregate the results of two other Lagom Services:

  • ExOneService
  • ExTwoService

Saga Service communicates with these services via a Message Broker (Kafka). The State of the process is maintained in the SagaEntity.

To run:

sbt runAll

Then POST http://localhost:9000/api/saga

{"id": "21"}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages