Next.js Discord

Discord Forum

Best way to handle hitting external API limits w/ serverless routes

Unanswered
Harrier posted this in #help-forum
Open in Discord
HarrierOP
Hello. Recently I’ve built a Next.js app that utilizes an external API that has grown quite popular. Although the popularity is nice, my users are now increasingly encoutering 429s thrown by the external API.

My API is powered by Next.js serverless api routes using the pages router. What are some strategies I can use to mitigate these 429s and prevent my users from encountering them?

Thanks

0 Replies