Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: [DEVEX-227] Getting state from events and running busines logic #334

Draft
wants to merge 26 commits into
base: DEVEX-185-Rebranding
Choose a base branch
from

Conversation

oskardudycz
Copy link
Collaborator

🚧 WIP

…nsions

They're redundant as most of them should be handled by the ReadStreamOptions. Expected checks can be made on the append side and also passed to decide options to only read as many events as needed.
Also simplified the StateBuilder abstraction to reduce the number of classes.

Reshaped Decider implementation, now AsyncDecider uses raw code and regular Decider wraps around it.
Now AsyncEnumerable part will always assume that it gets the exact initial state, it needs to be read first either from state builder or snapshot.

That makes it explicit on the responsibilities.
@oskardudycz oskardudycz force-pushed the DEVEX-227-GettingStateAndMakingDecisions branch from d71db29 to a84083a Compare March 6, 2025 12:09
Made also other smaller improvements like:
- removing event from state store interface,
- made both StateStore and AggregateStore method virtual,
- decoupled Decider from AsyncDecider moving the mapping method to extension classes.
… of the single state

That gives possibility to cache multiple single stream projection states instead of rolling always a single one
@oskardudycz oskardudycz force-pushed the DEVEX-227-GettingStateAndMakingDecisions branch from f69a63a to dd8cf4c Compare March 7, 2025 10:32
@oskardudycz oskardudycz force-pushed the DEVEX-227-GettingStateAndMakingDecisions branch 2 times, most recently from 8c7d67a to 7b1b13c Compare March 7, 2025 11:53
@oskardudycz oskardudycz force-pushed the DEVEX-227-GettingStateAndMakingDecisions branch from 7b1b13c to 0a5bc23 Compare March 7, 2025 12:44
…ggregate Store

Also split the Decider information and Decision processing
@oskardudycz oskardudycz force-pushed the DEVEX-227-GettingStateAndMakingDecisions branch from 86c22ab to a8a4f4a Compare March 7, 2025 13:45
@oskardudycz oskardudycz force-pushed the DEVEX-227-GettingStateAndMakingDecisions branch from a8a4f4a to d2f9d4e Compare March 7, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant