quickstarts/state_management/java/http/README.md

1.4 KiB

Dapr state management (HTTP Client)

In this quickstart, there is a order-processor microservice to demonstrate Dapr's state management API. The service generates messages to store in a state store.

Visit this link for more information about Dapr and State Management.

Note: This example leverages HTTP requests only. If you are looking for the example using the Dapr Client SDK (recommended) click here.

Pre-requisites

This quickstart includes one service:

  • Java client service order-processor

Run Java service with Dapr

  1. Open a new terminal window and navigate to order-processor directory:
cd order-processor
  1. Install dependencies:
mvn clean install
  1. Run the Java service app with Dapr:
dapr run --app-id order-processor --components-path ../../../components/ -- java -jar target/order-processor-0.0.1-SNAPSHOT.jar