Ability to configure the min size for response compression
Component(s)
router
Is your feature request related to a problem? Please describe.
When making a request to the router, if the response is under 4KB, the response returned is not compressed. If the router receives a lot of small requests, there's a lot of unnecessary network traffic. This is an issue for router hosted in various cloud providers where data transfer costs through gateways and across networks incurs a cost.
Describe the solution you'd like
I would like to introduce a new configuration item called: response_compression_min_size.
It would sit under the yaml: traffic_shaping.router as such:
traffic_shaping:
router:
response_compression_min_size: 1KB
This configuration item would be consumed here
The default value should be set to 4KB so the same setting is applied.
see proposed solution: https://github.com/wundergraph/cosmo/commit/dd443fb310db10c93650d5f118aacfae43a0c737
Describe alternatives you've considered
No response
Additional context
No response
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.
Looks good to me, you can proceed ahead.