Next.js Discord

Discord Forum

Middleware parallel requests

Unanswered
American Crocodile posted this in #help-forum
Open in Discord
American CrocodileOP
Is it possible to increase the number of simultaneous requests handled by Next.js middleware in the pages router? The thing is, I have a page with quite a few links to other dynamic pages, and when I open this page, each internal page passes through the middleware. This takes a little time, but there is a feeling that the middleware has some limit on simultaneous requests, as only about 10 pages are processed at the same time, while the others simply wait their turn, even though it’s just fetching files from the cache.

Can I find out if the middleware has any limit on the number of simultaneous requests, and is there any way to speed it up?

0 Replies