cheers-io / nuxt-storyblok-sitemap

Create a sitemap with your storyblok data and serve it via Nuxt 3.
MIT License
5 stars 0 forks source link

Optimize handling of thousands stories #2

Open sumerokr opened 1 year ago

sumerokr commented 1 year ago

As a module maintainer I want to ensure, that we can handle thousands of stories.

Currently we fetch first 100 stories from the Storyblok API and check the total header to find out how many more left to fetch. 500 more pages will result in 5 more requests from the server to the Storyblok API. What if we have not 500, but 5000 more stories, how does it scale? Can the underlying h3 server handle 50 requests in parallel? If no, what can we do to improve it?

For example, we can group requests and send them in a sequence.

AC

bastian-friedrich commented 1 year ago

Maybe we should talk to storyblok about this and just ask them.