quickstarts/bindings/go/sdk
MD Ashique d772c1a3fd settime out to 120 and sleep to 60
Signed-off-by: MD Ashique <noorani.ashique5@gmail.com>
2023-03-18 19:25:45 +05:30
..
batch assigning unique ports each app under go lang 2023-03-09 16:13:21 +05:30
README.md settime out to 120 and sleep to 60 2023-03-18 19:25:45 +05:30
makefile Binding quickstart - Cron input PostgreSQL output (#669) 2022-06-22 18:06:18 -07:00

README.md

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:

  • Go service app

Run and initialize PostgreSQL container

  1. Open a new terminal, change directories to ../../db, and run the container with Docker Compose:
cd ../../db
docker-compose up

Run Go service with Dapr

  1. Open a new terminal window, change directories to ./batch in the quickstart directory and run:
cd ./batch
go build .
  1. Run the Go service app with Dapr:
dapr run --app-id batch-sdk --app-port 6004 --dapr-http-port 3502 --dapr-grpc-port 60002 --resources-path ../../../components -- go run .