You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Inspired by:
12
12
13
13
## Why does this exist?
14
14
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.
16
16
17
17
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.
0 commit comments