Skip to content

Stateful Saga or event-handling aggregate #334

Answered by idugalic
kobasad asked this question in Q&A
Discussion options

You must be logged in to vote

OK.
This workflow progress is a View. So, in Fmodel you could create a Materialized View for it.
The gear at the top is your custom implementation that can pull this View/Database with some frequency and go through the ToDo List check what is currently pending and publish commands based on the state. Potentially you could make this reactive and eliminate the pooling. However, this gear is not encoded as a formal component in FModel.

How could we encode this in FModel:

/**
 * A general model of the Process/StatefulSaga that emits its own Events (Ep).
 * (S, Ep) -> S function/relation allows this Process to either store the State/S or list of Events/Ep
 * 
 * @param S State of the process

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
9 replies
@kobasad
Comment options

@idugalic
Comment options

Answer selected by kobasad
@kobasad
Comment options

@idugalic
Comment options

@idugalic
Comment options

@kobasad
Comment options

Comment options

You must be logged in to vote
4 replies
@kobasad
Comment options

@idugalic
Comment options

@kobasad
Comment options

@idugalic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants