Skip to content

Support zstd #217

Open
Open

Description

@bjohansebas

Node.js will soon have official support for zstd. Once it is available in an official version, we can add support for it

Activity

  1. bjohansebas commented on Feb 11, 2025

    @bjohansebas
    MemberAuthor

    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

  2. isaachinman commented on Aug 27, 2025

    @isaachinman

    @bjohansebas With Node 24 now current, will this land anytime soon? I can see a PR opened 🙏

  3. bjohansebas commented on Aug 28, 2025

    @bjohansebas
    MemberAuthor

    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)

  4. mattmatters commented on Aug 31, 2025

    @mattmatters

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions