0

For using the IBM Cloudant database through Bluemix Service, REST APIs are available. The documentation does not mention anything about Rate limits on API usage. Are there any such limits, what error does the API throw if the limit is exceeded?

ShwetaJ
  • 462
  • 1
  • 8
  • 32

1 Answers1

2

Yes, there are rate limits based on the selected plan. Refer to this link for details https://console.ng.bluemix.net/catalog/services/cloudant-nosql-db. Rejected API calls return HTTP code 429 (Too Many Requests)

ptitzler
  • 923
  • 4
  • 8
  • Thank you so much for your reply. The documentation describes plans based on data usage. If there are rate limits, how many API calls are allowed for each of the plans is not documented. Could you please share a link for that? – ShwetaJ May 26 '17 at 12:11
  • The [Cloudant page in the Bluemix catalog](https://console.ng.bluemix.net/catalog/services/cloudant-nosql-db) has this information. The Cloudant Lite plan includes 20 lookups/sec, 10 writes/sec, and 5 queries/sec. The Cloudant Standard plan includes 100 lookups/sec, 50 writes/sec, and 5 queries/sec. – Bradley Holt May 26 '17 at 13:50
  • What do we mean by lookups and queries? Does lookups mean get all documents and query search indexes, and queries means finding based on text/json indexes, views? – ShwetaJ May 29 '17 at 08:18
  • 1
    A lookup is a lookup of a single item by its key, e.g. retrieval of a document. All the examples you've listed (`_view`, `_all_docs`, `find` etc) count as queries. – ptitzler May 31 '17 at 17:11