mirror of https://github.com/dapr/docs.git
Modified based on the review comments - 2
This commit is contained in:
parent
01f21391b8
commit
18638ee93f
|
@ -22,7 +22,7 @@ gRPC clients and SDKs have a dedicated content type parameter.
|
|||
|
||||
## Example:
|
||||
|
||||
The below code examples loosely describes an application that processes orders. In the examples, there are two services - an order processing service and a checkout service. Both services have Dapr sidecars. The order processing service uses Dapr to publish a message and the checkout service subscribes to the message in RabbitMQ.
|
||||
The below code example loosely describes an application that processes orders. In the example, there are two services - an order processing service and a checkout service. Both services have Dapr sidecars. The order processing service uses Dapr to publish a message to RabbitMQ and the checkout service subscribes to the topic in the message queue.
|
||||
|
||||
<img src="/images/building-block-pub-sub-example.png" width=1000 alt="Diagram showing state management of example service">
|
||||
|
||||
|
@ -34,7 +34,7 @@ The first step is to setup the Pub/Sub component:
|
|||
{{< tabs "Self-Hosted (CLI)" Kubernetes >}}
|
||||
|
||||
{{% codetab %}}
|
||||
pubsub.yaml is created by default on a local machine when running `dapr init`. Verify by opening your components file under `%UserProfile%\.dapr\components\pubsub.yaml` on Windows or `~/.dapr/components/pubsub.yaml` on Linux/MacOS.
|
||||
The pubsub.yaml is created by default on your local machine when running `dapr init`. Verify by opening your components file under `%UserProfile%\.dapr\components\pubsub.yaml` on Windows or `~/.dapr/components/pubsub.yaml` on Linux/MacOS.
|
||||
|
||||
In this example, RabbitMQ is used for publish and subscribe. Replace pubsub.yaml file contents with the below contents.
|
||||
|
||||
|
|
Loading…
Reference in New Issue