- 最新
- 投票最多
- 评论最多
Hi,
All possible options with multi-tenancy in DynamoDB are extremely well-detailled in this whitepaper: https://docs.aws.amazon.com/pdfs/whitepapers/latest/multi-tenant-saas-storage-strategies/multi-tenant-saas-storage-strategies.pdf#multitenancy-on-dynamodb
You should probably read it in full details to determine which proposed architecture best fits your needs.
Best,
Didier
A bit more detail about your schema is required to give an answer with the appropriate information. However, something to consider:
If the client is doing a PutItem
call then that call replaces the item in the database. Multiple clients doing that will overwrite each others changes and that is probably undesirable.
One solution is to use UpdateItem
and update specific attributes. There is still a risk where clients can overwrite each other's changes but that might not be an issue - depending on your schema.
An alternative is to have each client update different items. That may work for you - but it depends on your schema.
There are probably other ways to design this as well but it's not possible to say given the information available.
相关内容
- AWS 官方已更新 2 年前