Introduction
TransactWriteItems lets you make multiple changes to your database at once. It makes sure all changes happen together or none at all, so your data stays correct.
You want to update several related items and keep them in sync.
You need to add a new order and reduce stock at the same time.
You want to delete an item only if another item meets a condition.
You want to make sure no partial updates happen if something fails.