Support compressed configuration [RHELDST-25461] #586
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Config has formerly always been stored as a String attribute on DynamoDB items. Let's support also loading it as a gzip-compressed Binary attribute.
The motivation is to allow more room for the config to grow. The max DynamoDB item size is 400KB, and a realistic string-based config has already reached 70KB (about 18% of the limit). As the config is only ever expected to grow over time, we may eventually hit that limit without warning; this discourages us from adding more fields into the config.
The same config compressed uses about ~5KB (about 1% of the limit), which seems small enough that we'll never have to worry about hitting the limit and we can freely add new fields into the config.
This change should be fully deployed to all exodus-cdn environments before deploying the corresponding change to exodus-gw.