amazon-archives / aws-serverless-auth-reference-app

Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Other
754 stars 193 forks source link

question #34

Closed walshe closed 6 years ago

walshe commented 6 years ago

also looking at using serverless arch for a new app - had also been thinking of dynamodb like you , and since this was a booking app was just curious if the lack of ACID was a problem for you ?

justonian commented 6 years ago

With DynamoDB, you do have the option of optimistic locking, but need to have your code do conditional writes to check if the item is as you would expect and handle exception conditions. To also not need a lot of transactions (cross-table writes), it's important to create your UI in such a way that has certain steps only edit one item in one table at a time, then have future UIs do other related steps so you avoid cross-table transactions to start. Hope this helps clarify!