Skip to content

Implement event store caching - #27

Merged
lazamar merged 3 commits into
mainfrom
cache
Oct 15, 2025
Merged

Implement event store caching#27
lazamar merged 3 commits into
mainfrom
cache

Conversation

@lazamar

@lazamar lazamar commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

This cache allows us to efficiently call find and try_find multiple
times within a transaction. This makes reactions and commands simpler as
there is no need to manually apply to the aggregate the transformations
performed by newly emitted events in those functions. Instead we can just
call find again and load the latest version of the aggregate for free.

@lazamar
lazamar merged commit c65a764 into main Oct 15, 2025
1 check passed
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.

1 participant