quickstarts/pub_sub/csharp/sdk
tanvigour e6e11411e2
add new validaters for new quickstarts - pubsub (#606)
* add new validaters for clean test runs

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* fix the path

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* clean apps and make validation more accurate in sequence

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* fix the java sdk test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* combine pubsub runs to single validator

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* fix license

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* fix version issues

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* remove java triggers due to flakiness

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* remove individual validator per lang

Signed-off-by: tanvigour <tanvi.gour@gmail.com>
2022-03-16 18:00:33 -07:00
..
checkout Changed loop from while to for (#537) 2022-02-17 11:52:39 -08:00
order-processor create http and sdk directories for each language 2022-02-14 15:57:15 -08:00
README.md pubsub test fixes (#596) 2022-03-14 16:09:04 -07:00
makefile add new validaters for new quickstarts - pubsub (#606) 2022-03-16 18:00:33 -07: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.

Note: This example leverages the Dapr client SDK. If you are looking for the example using only HTTP click here.

This quickstart includes one publisher:

  • Dotnet client message generator checkout

And one subscriber:

  • Dotnet subscriber order-processor

Run Dotnet message publisher with Dapr

  1. Navigate to the directory and install dependencies:
cd ./checkout
dotnet restore
dotnet build
  1. Run the Dotnet publisher app with Dapr:
dapr run --app-id checkout --components-path ../../../components/ -- dotnet run --project .

Run Dotnet message subscriber with Dapr

  1. Navigate to the directory and install dependencies:
cd ./order-processor
dotnet restore
dotnet build
  1. Run the Dotnet subscriber app with Dapr:
dapr run --app-id order-processor --components-path ../../../components/ --app-port 7001 -- dotnet run --project .