mirror of https://github.com/dapr/docs.git
Merge branch 'v1.8' into feature/helm
This commit is contained in:
commit
4965aa15f5
|
@ -6,9 +6,9 @@ weight: 2000
|
|||
description: "Learn how to use distributed locks to provide exclusive access to a resource"
|
||||
---
|
||||
|
||||
Now that you've learned what the Dapr distributed lock API building block provides, learn how it can work in your service. The example below describes an application that aquires a lock. This example uses the Redis lock component to demonstrate how to lock resources. For a list of supported lock stores, see [this list](/reference/components-reference/supported-locks/).
|
||||
Now that you've learned what the Dapr distributed lock API building block provides, learn how it can work in your service. In this guide, an example application acquires a lock using the Redis lock component to demonstrate how to lock resources. For a list of supported lock stores, see [this reference page](/reference/components-reference/supported-locks/).
|
||||
|
||||
The diagram below shows two instances of the same application acquiring a lock, where one instance is successful and the other is denied.
|
||||
In the diagram below, two instances of the same application acquire a lock, where one instance is successful and the other is denied.
|
||||
|
||||
<img src="/images/building-block-lock-example.png" width=1000 alt="The diagram below shows two instances of the same application acquiring a lock, where one instance is successful and the other is denied">
|
||||
|
||||
|
@ -188,4 +188,4 @@ func main() {
|
|||
|
||||
## Next steps
|
||||
|
||||
* Read [distributed lock API overview]({{< ref distributed-lock-api-overview.md >}})
|
||||
Read [the distributed lock API overview]({{< ref distributed-lock-api-overview.md >}}) to learn more.
|
|
@ -74,7 +74,7 @@ curl -fsSL https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
|
|||
|
||||
**For ARM64 Macs:**
|
||||
|
||||
ARM64 Macs support is available as a *preview feature*. When installing from the terminal, native ARM64 binaries are downloaded once available. For older releases, AMD64 binaries are downloaded and must be run with Rosetta2 emulation enabled.
|
||||
When installing from the terminal, native ARM64 binaries are available.
|
||||
|
||||
To install Rosetta emulation:
|
||||
|
||||
|
@ -92,7 +92,7 @@ brew install dapr/tap/dapr-cli
|
|||
|
||||
**For ARM64 Macs:**
|
||||
|
||||
For ARM64 Macs, only Homebrew 3.0 and higher versions are supported. Please update Homebrew to 3.0.0 or higher and then run the command below:
|
||||
For ARM64 Macs, Homebrew 3.0 and higher versions are supported. Update Homebrew to 3.0.0 or higher and then run the command below:
|
||||
|
||||
```bash
|
||||
arch -arm64 brew install dapr/tap/dapr-cli
|
||||
|
|
Loading…
Reference in New Issue