Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Optimistic locking

This revision card explains Optimistic locking. It starts from the need that blind overwrites lose concurrent cart edits. It describes version attribute + condition version = :v; bump on success. The how-to section notes read , then edit , then conditional write , then on fail reload and retry. An example on the card is diego Alvarez adds version on every mutable profile item.

Optimistic locking Blind overwrites lose concurrent cart edits. version attribute + condition version = :v; bump on success. Read → edit → conditional write → on fail reload and retry. Diego Alvarez adds version on every mutable profile item.
Optimistic locking · Download PNG
Read card text

What this card says

Why do we need it?

Blind overwrites lose concurrent cart edits.

What is it?

version attribute + condition version = :v; bump on success.

optimistic locking

How to do it

Read → edit → conditional write → on fail reload and retry.

Example

Diego Alvarez adds version on every mutable profile item.

See all AWS revision cards