mirror of https://github.com/dapr/quickstarts.git
				
				
				
			
		
			
				
	
	
	
		
			1.9 KiB
		
	
	
	
	
	
			
		
		
	
	
			1.9 KiB
		
	
	
	
	
	
Dapr Bindings (Dapr SDK)
In this quickstart, you'll create a microservice to demonstrate Dapr's bindings API to work with external systems as inputs and outputs. The service listens to input binding events from a system CRON and then outputs the contents of local data to a PostreSql output binding.
Visit this link for more information about Dapr and Bindings.
Note: This example leverages the Dapr SDK. If you are looking for the example using HTTP REST only click here.
This quickstart includes one service:
- Java service 
batch 
Run and initialize PostgreSQL container
- Open a new terminal, change directories to 
../../db, and run the container with Docker Compose: 
cd ../../db
docker compose up
Run Java service with Dapr
- Open a new terminal window, change directories to 
./batchin the quickstart directory and run: 
cd ./batch
mvn clean install
- Run the java service app with Dapr:
 
dapr run --app-id batch-sdk --app-port 8080 --resources-path ../../../components -- java -jar target/BatchProcessingService-0.0.1-SNAPSHOT.jar