Sync Limits
In order to guarantee good quality of service across for all your customers across all your apps, Sync applies rate limits to the actions (reads and writes) taken by your code in the running app. Note that state fanout—the delivery of realtime updates to your app when it is subscribed to a Sync object—is neither a read action nor a write action, and therefore we do not limit the rate of delivery to subscribers.
The following tables summarize the various rate limits that apply.
Connection Limits
Limited Quantity | Prescribed Limit | 注釈 |
Number of Standing Connections |
up to 7,000 and 100,000 overall, shared among all your subaccounts. |
Contact sales for more information or to request an override. |
Rate of Connection Establishment (new or re-established) |
up to 110/s and 1,000/s overall, shared among all your subaccounts. |
This applies across all subaccounts. Contact sales for more information or to request an override. |
Rate of |
up to 500/s and up to 20,000/s
|
Contact sales for more information or to request an override. |
Sync Activity Limits
Limited Quantity | Prescribed Limit | 注釈 |
Rate of Object Writes |
up to 20/s per object burst window: 10s |
|
Rate of Object Reads |
up to 20/s per object burst window: 10s |
|
Rate of Stream Messages |
up to 30/s per stream burst window: 10s |
|
Rate of Object Permission Reads and Writes |
up to 80/s per object permission burst window: 10s |
|
Rate of Live Queries |
up to 200/s per index per service instance up to 20/s per index per client identity burst window: 10s |
|
Number of Sync Objects |
無制限 |
|
Sync Payload Limits
Limited Quantity | Prescribed Limit | 注釈 |
Size of Document payload | 16 KiB | Sync Documents may contain payloads up to 16 KiB of valid JSON serialized to a UTF-8 string. |
Size of List Item payload | 16 KiB | Sync Lists may contain Items with payloads up to 16 KiB of valid JSON serialized to a UTF-8 string. |
Number of Items in the List | 1,000,000 | Sync Lists should not contain more than a million of items. |
Size of Map Item payload | 16 KiB |
Sync Maps may contain Items with payloads up to 16 KiB of valid JSON serialized to a UTF-8 string. NB! Due to some accidents of serialization and deserialization, which we do in the process of ensuring valid JSON payloads, the actual data written may be of subtly different size than it is upon transmission. In these cases, you may find payloads being rejected "too large" as they approach the 16KB limit. If your application stores large payloads, please do test at the extremes. |
Number of Items in the Map | 1,000,000 | Sync Maps should not contain more than a million of items. |
Size of Stream Message | 4 KiB | Sync Message Streams may deliver payloads up to 4 KiB of valid JSON serialized to a UTF-8 string. |
Length of Unique Name | 320 characters | Unique names assigned to Documents, Lists, Maps, Message Streams may contain up to 320 characters (UTF-8). |
Length of Identity | 256 characters | Client identity may contain up to 256 characters (UTF-8). |
Default Page Size | 50 |
By default, this will return the first 50 items. Specify a Default sorting order is ascending of ListItems per itemIndex and Map Items per item Key. |
Sync Insights Client Limits
(Currently for Flex customers only)
Limited Quantity | Prescribed Limit | 注釈 |
Number of active LiveQueries per SDK client | 2000 | The number of active Sync LiveQueries initiated and tracked by a single SDK client instance must not exceed 2000. |
Number of operators in query expression | 30 | Query expression may contain any combination of the following operators: and , or , in , eq , not_in , not_eq , contains , however overall number of operators in query expression must be less than 30. |
Array size in query expression | 30 |
Any array within query expression must contain less than 30 elements. |
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。