Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

Clarity around Blocks API rate limit

Topic Labels: Custom Extensions
Solved
Jump to Solution
2118 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Eugene_Kim
6 - Interface Innovator
6 - Interface Innovator

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

1 Solution

Accepted Solutions
Billy_Littlefie
7 - App Architect
7 - App Architect

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.

See Solution in Thread

3 Replies 3
Billy_Littlefie
7 - App Architect
7 - App Architect

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.

Eugene_Kim
6 - Interface Innovator
6 - Interface Innovator

Great, thanks for the quick reply @Billy_Littlefield !

aaron_bell
5 - Automation Enthusiast
5 - Automation Enthusiast

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'}]")