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

feat(Cosmos, Dynamo): Add CacheStrategy.SlidingWindowPrefixed #399

Closed
wants to merge 1 commit into from

Conversation

bartelink
Copy link
Collaborator

@bartelink bartelink commented Jun 19, 2023

Had been holding off on adding this mode, but ran into what I believe represents a relevant use case

@bartelink
Copy link
Collaborator Author

Details of use case

When using Read Through mode (#386), some reads may wish to cache values that are derived from Events, and not present in the State. Example cases:

  • the relevant state is not used to support decision logic, used only infrequently and/or is too large to include in the snapshot
  • the need for the state only becomes apparent after the prod system has lots of events that don't have an in-date snapshot present (and the extra reads would be untenable)

An example might be that a Created event with a large payload that's only read very infrequently, and is not relevant to normal decision making

@bartelink bartelink changed the title DocStores: Add SidingWindowPrefixed DocStores: Add SlidingWindowPrefixed Jun 19, 2023
@bartelink bartelink marked this pull request as draft July 26, 2023 15:15
@bartelink bartelink changed the title DocStores: Add SlidingWindowPrefixed feat(Cosmos, Dynamo): Add CacheStrategy.SlidingWindowPrefixed Jul 26, 2023
@bartelink bartelink marked this pull request as ready for review August 2, 2023 13:38
@bartelink
Copy link
Collaborator Author

Abandoned in favor of #417

@bartelink bartelink closed this Aug 3, 2023
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