Add ability to completely disable request throttling #183
Replies: 8 comments 1 reply
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mvantellingen thanks for the feat request. Let me bring it up internally and keep you updated. |
Beta Was this translation helpful? Give feedback.
-
|
@alvarosabu Any update on this? I'm also runnin into performance limitations because of this. Thanks! 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Jonne we are currently working on it. We are discussing to add a patch instead of waiting for v7 to release this. Will keep you posted here |
Beta Was this translation helpful? Give feedback.
-
|
@alvarosabu any movement on this? I see v7 has come out already, so it does not look like it was part of these changes? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the patience on this 🙏 We recognise it's been nearly a year since this was first raised, and we appreciate the fork you've created in the meantime. We definitely want to solve this throttling issue, but we're navigating some competing internal commitments. We're exploring automated client generation using OpenAPI, with the hope that throttling can be handled natively through rate limit headers rather than client-side logic. Your fork approach is exactly what we'd recommend for teams facing this performance bottleneck right now. We'll keep this discussion prioritised as we work through our roadmap. |
Beta Was this translation helpful? Give feedback.
-
|
Does this relate to the hanging promises error that's occurring when adding Storyblok to Shopify Hydrogen? storyblok/storyblok-js-client#682 (comment) I've been trying to figure out a way around this while still allowing preview editing, and it's causing lots of issues while working locally. Is this the same issue (so wait for the update), or should I log a separate issue referencing the old one? |
Beta Was this translation helpful? Give feedback.
-
|
Any update on this ? We are running into a problem with throttling too but our needs are quite opposite. The issue is we have multiple build pipelines fetching from a single storyblok space consisting close to 1k stories as a statically built site working in parallel. Now having a delay of Having the rate limit configured as the max value does not help: It would be helpful if something like @mvantellingen solution is added to the repo as done here: This is a good starting point for our use case but could be even nicer if the client delay function adds a jitter: monoblok/packages/js-client/src/utils.ts Lines 46 to 48 in f3af69e |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions