Search code examples
node.jsibm-cloudcloudant

Error: You've exceeded your current limit of 5 requests per second for query class


could someone correct this problem without having to change plan in cloudant?


Solution

  • If you are using the official Cloudant nodejs library, see the retry plugin which handles 429 errors.

    Note that 429 retry handling is probably only suitable for development environments or for the small fluctuations in demand that exceed your capacity. Excessive use of 429 handling will result in a build up of 'back-pressure' in your application.