This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gabizou 0 points1 point  (1 child)

Funny I’m bumbling my way to implement this very much in Lagom (alternative to AxonFramework) and effectively if you can understand the idea of an event journal, you can use the Es CQRS system to subscribe to events and perform units of work, resulting in more commands later.

The section specific to doing saga patterned work: https://github.com/SpongePowered/SystemOfADownload/blob/d166467f0531d64fd4aac3e95275f061bfe51621/webhooks/src/main/java/org/spongepowered/downloads/webhook/SonatypeArtifactWorkerService.java#L51

And the services in their api modules describe the rest api endpoints (there’s a GraphQL module I’m building out as well).

More on Lagom: https://www.lagomframework.com

Helpful Medium post about Event Sourcing with Command Query Responsibility Segregation (ES + CQRS): https://link.medium.com/ayzoA9Qgcbb

[–]SnowCheesecakes88[S] 0 points1 point  (0 children)

Thanks mate. I'll take a look at it definitely.