I am using Netlify cloud functions as a middleware for a particular API integration on my site.
Now, the issue is that this API has a rate limit of 2 calls/ second. This might be an issue when my site has high traffic and there are more than 2 users triggering the function endpoint every second, which ends up calling the API more than 2 times/ second.
How do I deal with this issue? I though about queueing the requests in can be a good idea. Has anyone ever implemented something of this sort on Netlify before? Are there any other ideas/ suggestions/ approaches that I should consider here?
Thank you so much!