Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crookm/hello-dapr

Sample .NET Dapr microservice application
https://github.com/crookm/hello-dapr

Last synced: 2 days ago
JSON representation

Sample .NET Dapr microservice application

Awesome Lists containing this project

README

        

# Hello Dapr

### Running the services

In the directory of each service, run the following command:

```sh
dapr run --app-id --app-port -- dotnet run
```

Where `` is one of `math-service`, `greeter-service`, or `api-service`. These are arbitrary tags, but must be shared across all applications. In this set of services, you'll only see it used in `src/HelloDapr.Api/Program.cs` where I configure a gRPC inteceptor to add the id to every request as metadata. This is so the Dapr gRPC proxy knows where to direct requests.

The `` is the port where the application will run, which is where Dapr will direct requests.