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(SystemTextJson): Encoding with conditional compression #126

Open
wants to merge 11 commits into
base: mapex
Choose a base branch
from

Conversation

bartelink
Copy link
Collaborator

@bartelink bartelink commented Dec 31, 2024

Adds Encoder.Uncompressed and Encoder.TryCompress to SystemTextJson to enable compression to be managed external to the storage layer as per the Equinox DynamoStore implementation.

Used in Equinox.CosmosStore v 4.1.0 and later to facilitate:

  • improved compression via use of Brotli
  • better control of what to compress or not (selecting per event case, compressing events, only selectively compressing snapshots etc)
  • more complete control of testing of encoding vs event generation in integration test scenarios
  • simpler API for Equinox.CosmosStore (and better symmetry with DynamoStore, which makes the overall stack easier to grok)

@bartelink bartelink mentioned this pull request Dec 31, 2024
@bartelink bartelink force-pushed the stj-trycompress branch 3 times, most recently from 6c76c84 to f94eea0 Compare December 31, 2024 10:34
@bartelink bartelink changed the title feat(SystemTextJson): Compression feat(SystemTextJson): Conditional Compression / Encoding Dec 31, 2024
@bartelink bartelink force-pushed the stj-trycompress branch 5 times, most recently from 8875e8c to 49a47d7 Compare January 2, 2025 00:59
@bartelink bartelink changed the base branch from master to mapex January 2, 2025 01:00
@bartelink bartelink changed the title feat(SystemTextJson): Conditional Compression / Encoding feat(SystemTextJson): Encoding with conditional compression Jan 2, 2025
@bartelink bartelink force-pushed the stj-trycompress branch 2 times, most recently from 1aa5a73 to 505c91f Compare January 3, 2025 23:06
@@ -11,6 +11,7 @@ The `Unreleased` section name is replaced by the expected version of next releas
### Added

- `Core.EventData.MapEx`: Enable contextual encoding of bodies [#127](https://github.com/jet/FsCodec/pull/127)
- `SystemTextJson.Compression`: Conditional compression as per `Box.Compression` [#126](https://github.com/jet/FsCodec/pull/126)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

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