Skip to main content
Solved

Clarity around Blocks API rate limit


Hello,


I’m reading documentation here on the rate limits for the Blocks API and I’d like some clarity around these two statements:



Batch methods ( updateRecordsAsync , createRecordsAsync , deleteRecordsAsync ) may only update/create/delete up to 50 records in one call.




Additionally, writes are rate-limited (maximum of 15 writes per second). Your app will crash if this limit is exceeded.



Two questions:




  1. What is a “write”? Does calling a batch method count as 1 write?




  2. Assuming that a batch method counts as a single write, does this mean that it’s possible to update 750 records a second (15 batch methods a second * 50 records per full batch) via the Blocks API




Many thanks

Best answer by Billy_Littlefie

Hi @Eugene_Kim,



A write (in the context of 15 writes/second) refers to a single function call, e.g. updateRecordsAsync. A batch method still counts as a single write.



Correct, this would be the upper limit.

View original
Did this topic help you find an answer to your question?

3 replies

Hi @Eugene_Kim,



A write (in the context of 15 writes/second) refers to a single function call, e.g. updateRecordsAsync. A batch method still counts as a single write.



Correct, this would be the upper limit.


  • Author
  • Inspiring
  • 18 replies
  • April 6, 2021

Great, thanks for the quick reply @Billy_Littlefield !


  • Inspiring
  • 8 replies
  • December 15, 2022

I am trying to write 850 records into the database at once but keep getting this error. Would this be due to record limit?

[Error: {'type': 'INVALID_REQUEST_BODY', 'message': 'Could not parse request body'}]")


Reply