quickstarts/pub_sub/java/sdk
Paul Yuknewicz a933d89a0f
Updating C# quickstart and tutorial Dapr SDK references to 1.8. They… (#705)
* uncommenting pubsub test to try pubsub validate

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* Updated go dependencies
go 1.18
dapr/go-sdk 1.5.0

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* updating .NET/C# Dapr references to 1.8.0

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>

* updating Dapr SDK for Java versions to 1.6.0

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
2022-07-27 10:31:17 -07:00
..
checkout Updating C# quickstart and tutorial Dapr SDK references to 1.8. They… (#705) 2022-07-27 10:31:17 -07:00
order-processor Updating C# quickstart and tutorial Dapr SDK references to 1.8. They… (#705) 2022-07-27 10:31:17 -07:00
README.md Java quickstarts auto validate for pubsub, state mgmt and service invo (#671) 2022-05-23 11:58:05 -07:00
makefile Removed docker image prefix addition step 2022-07-25 12:28:57 -07:00

README.md

Dapr pub/sub

In this quickstart, there is a publisher microservice checkout and a subscriber microservice order-processor to demonstrate how Dapr enables a publish-subscribe pattern. checkout generates messages and publishes to a specific orders topic, and order-processor subscribers listen for messages of topic orders.

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:

  • Java client message generator checkout

And one subscriber:

  • Java subscriber order-processor

Pre-requisites

Run Java message subscriber app with Dapr

  1. Navigate to directory and install dependencies:
cd ./order-processor
mvn clean install
  1. Run the Java subscriber app with Dapr:
cd ./order-processor
 dapr run --app-port 8080 --app-id order-processor --components-path ../../../components -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar

Run Java message publisher app with Dapr

  1. Navigate to the directory and install dependencies:
cd ./checkout
mvn clean install
  1. Run the Java publisher app with Dapr:
cd ./checkout
dapr run --app-id checkout --components-path ../../../components -- java -jar target/CheckoutService-0.0.1-SNAPSHOT.jar
dapr stop --app-id checkout
dapr stop --app-id order-processor