quickstarts/pub_sub/javascript
Paul Yuknewicz a4b3b0f66c Make port in code and npm run start:dapr match 2022-02-14 15:57:14 -08:00
..
checkout Make port in code and npm run start:dapr match 2022-02-14 15:57:14 -08:00
order-processor More consistency fixes 2022-02-14 15:55:14 -08:00
README.md Node pub-sub consistency fixes with other langs 2022-02-14 15:55:14 -08:00

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

  1. Open a new terminal window and navigate to checkout directory:
cd checkout
  1. Install dependencies:
npm install
  1. Run the Node publisher app with Dapr:
npm start:dapr

Run Node message subscriber with Dapr

  1. Open a new terminal window and navigate to checkout directory:
cd order-processor
  1. Install dependencies:
npm install
  1. Run the Node subscriber app with Dapr:
npm start:dapr