storyblok / storyblok-js-client

Universal JavaScript client for Storyblok's API
MIT License
123 stars 85 forks source link

Add ability to completely disable request throttling #816

Open mvantellingen opened 4 months ago

mvantellingen commented 4 months ago

When using the storyblok-js-client in a server environment with a bit of traffic the storyblok-js-client causes significant slow downs due to request throttling. It should be possible to completely disable request throttling for performance (so not only changing the rateLimit setting).

For now we have created a fork which removes this functionality, see https://www.npmjs.com/package/@labdigital/storyblok-js-client but I would love to help get this option into the official client.

Note that while debugging the performance issue it also seems that the client creates quite some number of promises for requests, which also has impact on performance.

rickvandermey commented 3 months ago

It does have a huge performance improvement! However when we try the fork, it doesn't render anything on the server anymore. Something to keep in mind

alvarosabu commented 3 weeks ago

Hi @mvantellingen thanks for the feat request. Let me bring it up internally and keep you updated.