Skip to content

Commit 06bce4c

Browse files
authored
Update README.md
1 parent f228cad commit 06bce4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Inspired by:
1212

1313
## Why does this exist?
1414

15-
It all started when I began experimenting with AWS CloudFormation custom resources provisioned by lambda functions. One of those custom resources was wanting to reserve a unique name, which introduced a possible race condition as multiple deployments for the same name could happen at the same time.
15+
It all started when I began experimenting with AWS CloudFormation custom resources provisioned by lambda functions. One of those custom resources was wanting to reserve a unique name, which introduced a possible race condition as multiple resources could attempt to reserve the same name at the same time.
1616

1717
This library resolves those race conditions by writing atomically incremented fencing tokens into DynamoDB. It also provides FIFO queuing for lock acquisitions rather than a naive "acquire the lock if no one else has it" approach. This avoids situations where an actor gets unlucky and is unable to acquire the lock because other actors consistently checked earlier than they did.
1818

0 commit comments

Comments
 (0)