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
Hey, there’s already another PR open for that. I’ve been thinking about this for several months, we could probably add it, but I need to discuss it with other team members to make sure they agree. For example, Fastify has already adopted it as far as I know, though it might be better for version 2? With the option to disable it using new configuration options (#232)
For what it's worth, gzip performs better for small payloads, it seems like zstd benefits start being a benefit once you are above several kb.
Given this repo enables Brotli by default I think users will see a performance and compression gain either way, but if they are upgrading from pre Brotli compression middleware, a well oiled api server will see a performance decrease.
Making compression formats will definitely be asking more from end users but would be a boon to those that know what they want.
Activity
bjohansebas commentedon Feb 11, 2025
I think the best thing to do is to wait until the API is stable. It will be released as experimental in the next version 23
isaachinman commentedon Aug 27, 2025
@bjohansebas With Node 24 now current, will this land anytime soon? I can see a PR opened 🙏
bjohansebas commentedon Aug 28, 2025
Hey, there’s already another PR open for that. I’ve been thinking about this for several months, we could probably add it, but I need to discuss it with other team members to make sure they agree. For example, Fastify has already adopted it as far as I know, though it might be better for version 2? With the option to disable it using new configuration options (#232)
mattmatters commentedon Aug 31, 2025
For what it's worth, gzip performs better for small payloads, it seems like zstd benefits start being a benefit once you are above several kb.
Given this repo enables Brotli by default I think users will see a performance and compression gain either way, but if they are upgrading from pre Brotli compression middleware, a well oiled api server will see a performance decrease.
Making compression formats will definitely be asking more from end users but would be a boon to those that know what they want.