Condition Expressions and Data Integrity with DynamoDB

Found a good short read about maintaining data integrity in #dynamodb databases using condition expressions in updates.

TL;DR version your records and use a condition expression on the version. A condition expression is different from a key condition – the key condition identifies the item, the condition expression evaluates to true or false after identifying the item. If false, a CCF is thrown!

https://blog.awsfundamentals.com/understanding-and-handling-race-conditions-at-dynamodb

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: