mirror of https://github.com/dapr/quickstarts.git
|
||
---|---|---|
.. | ||
checkout | ||
order-processor | ||
README.md |
README.md
Dapr pub/sub
In this quickstart, you'll create a publisher microservice and a subscriber microservice to demonstrate how Dapr enables a publish-subcribe pattern. The publisher will generate messages of a specific topic, while subscribers will listen for messages of specific topics. See Why Pub-Sub to understand when this pattern might be a good choice for your software architecture.
Visit this link for more information about Dapr and Pub-Sub.
This quickstart includes one publisher:
- Node client message generator
checkout
And one subscriber:
- Node subscriber
order-processor
Run Node message publisher with Dapr
- Open a new terminal window and navigate to
checkout
directory:
cd checkout
- Install dependencies:
npm install
- Run the Node publisher app with Dapr:
npm start:dapr
Run Node message subscriber with Dapr
- Open a new terminal window and navigate to
checkout
directory:
cd order-processor
- Install dependencies:
npm install
- Run the Node subscriber app with Dapr:
npm start:dapr