Skip to content

SDK is massive, unusable in Cloudflare Worker or functions #85

@SamyPesse

Description

@SamyPesse

This SDK is massive, bundled/minified it's 6MB, mainly because of all the serializers.

It makes it impossible to use it in some environment (ex: Cloudflare Workers) as it slows down the start of any application. For example, in the tests we have done with Node.js, it alone adds 400ms of boot time.

I'm not sure how you can fix it as it looks like it's an architecture decision with Fern :/ Fern SDK don't seem optimized for this scale (or performances in general).

There is also no workaround as sub-apis can't be exported. At this stage, as we evaluate Merge.dev, it makes us consider competitors as otherwise we need to implement our own light API client for it.
In our case, we'll also don't want to slow down our entire application just for the simplicity of using Merge.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions