AWS DynamoDB 中一个 table 的并发放置请求的限制是多少
what is the limit of concurrent put requests for one table in AWS DynamoDB
基于 documentation 它说:
CreateTable/UpdateTable/DeleteTable
In general, you can have up to 50 CreateTable, UpdateTable, and DeleteTable requests running simultaneously (in any combination). In
other words, the total number of tables in the CREATING, UPDATING, or
DELETING state cannot exceed 50.
The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at
a time. However, if the table or index specifications are complex,
DynamoDB might temporarily reduce the number of concurrent operations.
BatchGetItem A single BatchGetItem operation can retrieve a maximum of
100 items. The total size of all the items retrieved cannot exceed 16
MB.
所以我想知道这是否意味着每个 table 我只有 25 个请求,或者这只是我使用 BatchGetItem
时的情况
PutItem
API调用自身的速率无相关限制。
发挥作用的限制源于 table 上的写入容量单位 (WCU)。
只要您有足够的写入吞吐量(即 WCU)可用,PutItem
就可以。
您可以通过预置吞吐量或按需容量来决定为 table 预置多少 WCU。
每个 WCU 允许您每秒向 table 写入 1KB。
未使用的WCU也最多缓冲5分钟,所以你可以爆一点。
如果您超过 WCU,您将收到 ProvisionedThroughputExceeded
错误,这不是速率限制,而是上述吞吐量限制。
基于 documentation 它说:
CreateTable/UpdateTable/DeleteTable In general, you can have up to 50 CreateTable, UpdateTable, and DeleteTable requests running simultaneously (in any combination). In other words, the total number of tables in the CREATING, UPDATING, or DELETING state cannot exceed 50.
The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at
a time. However, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent operations.
BatchGetItem A single BatchGetItem operation can retrieve a maximum of 100 items. The total size of all the items retrieved cannot exceed 16 MB.
所以我想知道这是否意味着每个 table 我只有 25 个请求,或者这只是我使用 BatchGetItem
时的情况PutItem
API调用自身的速率无相关限制。
发挥作用的限制源于 table 上的写入容量单位 (WCU)。
只要您有足够的写入吞吐量(即 WCU)可用,PutItem
就可以。
您可以通过预置吞吐量或按需容量来决定为 table 预置多少 WCU。
每个 WCU 允许您每秒向 table 写入 1KB。 未使用的WCU也最多缓冲5分钟,所以你可以爆一点。
如果您超过 WCU,您将收到 ProvisionedThroughputExceeded
错误,这不是速率限制,而是上述吞吐量限制。