DEV Community

Nicola Apicella
Nicola Apicella

Posted on

4 1

DynamoDB transactions

You have an idea and you want to try it out?
Nice, package the code and push it to your favorite cloud provider and you are application will be instantly available to thousands, tens of thousands or even millions of customers.

Awww, it such a great time to be a developer.

From now, it is even better indeed AWS just announced Dynamo DB transactions at Re:invent!

Why does it matter?

Atomicity

It enables atomic operations on multiple items, such that either all occur, or nothing occurs.

Isolation

What it is called Isolation from database people, it is called consistency from distributed systems people. So in this context the words are interchangeable.
Dynamo transactions provides sequential consistency by rejecting a transaction when an item is modified outside of a transaction.

Check out my old article about consistency models to know more about the implication of sequential consistency

Resources

  1. Aws Blog post about Dynamo Transactions
  2. Follow the full list of AWS announcements during Re:invent

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

Top comments (1)

Collapse
 
jorgealvarez profile image
Jorge Alvarez

Congratulations Nicola!

I think Amazon is doing a very good job with all the serverless features.

I've never used DynamoDB and now I'm using it with AppSync and I'm delighted.

Transactions open the door to many interesting use cases.

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay