You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Router uses Brotli compression at 11 which is the highest quality/longest to encode which often can be good for static resources but not intended for dynamic resources where latency and TTFB is critical.
Router code has a 2 year old FIXME in code to change this:
Change Router to explicitly default to a value that is more reasonable for dynamic workloads, and make this configurable via config yaml so your customers can control what level is used.
Describe alternatives you've considered
Disabling compression and having other components on the network path that are configurable do that work instead
theJC
changed the title
Router uses Brotli compression at 11 - highest quality/longest to encode, please adjust and make configurable
Router uses Brotli compression at 11 - highest compression/longest to encode, please adjust and make configurable
Feb 25, 2025
Describe the solution you'd like
Router uses Brotli compression at 11 which is the highest quality/longest to encode which often can be good for static resources but not intended for dynamic resources where latency and TTFB is critical.
Router code has a 2 year old FIXME in code to change this:
router/apollo-router/src/axum_factory/compression/mod.rs
Lines 47 to 51 in 4c7114d
This BrotliEncoderParams::default() results in compression quality of 11.
dropbox/rust-brotli#93
Change Router to explicitly default to a value that is more reasonable for dynamic workloads, and make this configurable via config yaml so your customers can control what level is used.
Describe alternatives you've considered
Disabling compression and having other components on the network path that are configurable do that work instead
Additional context
The text was updated successfully, but these errors were encountered: