Skip to content

Commit 598a5c6

Browse files
authored
Adding note to README about GCP/Azure concurrency (#134)
S3 _does not_ allow for this strategy, but it's valid on several other storage providers as mentioned.
1 parent ee07889 commit 598a5c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ If you are not comfortable with running the import-map-deployer at all, you do n
4141

4242
If you do this, decide whether you care about the deployment race condition scenario described in the [Why does this exist?](#why-does-this-exist) section. If you are willing to live with that unlikely race condition, see these examples ([1](/examples/ci-for-javascript-repo/gitlab-aws-no-import-map-deployer), [2](/examples/bash-aws-no-import-map-deployer)) for some example CI commands.
4343

44+
Note that several object stores (notably Google Cloud Storage and Azure Storage) allow for optimistic concurrency when uploading files. By correctly sending pre-condition headers on those services, your CI process can correctly fail and/or retry in the event of a race condition. For further reading, see [Azure's docs](https://docs.microsoft.com/en-us/azure/storage/blobs/concurrency-manage?tabs=dotnet#optimistic-concurrency) or [Google Cloud's docs](https://cloud.google.com/storage/docs/request-preconditions) on concurrency.
45+
4446
If you do want to address the deployment race condition without using import-map-deployer, we'd love to hear what you come up with. Consider leaving a PR to these docs that explain what you did!
4547

4648
## Example repository

0 commit comments

Comments
 (0)