mirror of https://github.com/dapr/quickstarts.git
1.4 KiB
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
- Dapr and Dapr Cli.
- Java JDK 11 (or greater):
- Apache Maven version 3.x.
This quickstart includes one service:
- Java client service
order-processor
Run Java service with Dapr
- Open a new terminal window and navigate to
order-processor
directory:
cd order-processor
- Install dependencies:
mvn clean install
- 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