Using DynamoDB Streams Vs Updating Data In A Transaction
When to choose between event driven updating vs updating data directly in a transaction
When designing your DynamoDB queries one choice you will often face is whether to update data in transaction or let a change stream event update the data asynchronously.
Take the following scenario:
A user adds a comment to a post and sends a notification item to the author.
In this case, you can go about implementing this feature in 2 ways:
Use a transacti…
Keep reading with a 7-day free trial
Subscribe to The Serverless Spotlight to keep reading this post and get 7 days of free access to the full post archives.