jet / equinox

.NET event sourcing library with CosmosDB, DynamoDB, EventStoreDB, message-db, SqlStreamStore and integration test backends. Focused at stream level; see https://github.com/jet/propulsion for cross-stream projections/subscriptions/reactions
https://github.com/jet/dotnet-templates
Apache License 2.0
472 stars 68 forks source link

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

Closed bartelink closed 1 year ago

bartelink commented 1 year ago

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

bartelink commented 1 year ago

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:

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 commented 1 year ago

Abandoned in favor of #417