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(CosmosStore): Decouple Compression support #472

Merged
merged 7 commits into from
Feb 2, 2025

Conversation

bartelink
Copy link
Collaborator

Makes the store encoding agnostic, to align with how Equinox.DynamoStore works.

This enables consumption of the events without being reliant on an Equinox store impl to interpret the encoded data

In particular, in the case of reactions processing, it allows one to opt out of decoding events that one will ultimately drop rather than process. Where that encoding involves compression, that also avoids the CPU and memory cost of doing inflation.

This can also provide better control in the context of integration testing.

See jet/FsCodec#126, which provides the API that replaces the functionality being pushed out.

@bartelink bartelink force-pushed the cosmos-fscodec-compression branch 2 times, most recently from 966fbf1 to 6ce9249 Compare January 1, 2025 22:24
@bartelink bartelink force-pushed the cosmos-fscodec-compression branch from c617f6a to 197236c Compare January 3, 2025 11:44
@bartelink bartelink force-pushed the cosmos-fscodec-compression branch from 89ccea3 to 4028959 Compare January 31, 2025 11:22
Base automatically changed from cosmos-default-stj to master January 31, 2025 11:25
@bartelink bartelink force-pushed the cosmos-fscodec-compression branch from 4028959 to 4c06e81 Compare January 31, 2025 11:27
@bartelink bartelink force-pushed the cosmos-fscodec-compression branch 12 times, most recently from 5b790a9 to 13d9184 Compare February 2, 2025 13:42
@bartelink bartelink force-pushed the cosmos-fscodec-compression branch from 13d9184 to 3002466 Compare February 2, 2025 13:44
@bartelink bartelink merged commit fae756d into master Feb 2, 2025
5 checks passed
@bartelink bartelink deleted the cosmos-fscodec-compression branch February 2, 2025 13:55
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