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

https://github.com/andriykalashnykov/dapr-csharp-kafka


https://github.com/andriykalashnykov/dapr-csharp-kafka

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# CSharp Dapr Sample with Kafka

This example shows how to run Dapr in CSharp with Kafka and Minimal APIs.

### Run Kafka

First, make sure you have Docker installed so you can run Kafka locally.

```bash
docker compose -f docker-compose.yml up
```

### Run the subscriber

```bash
cd subscriber
dapr run --app-id subscriber --app-port 5141 --resources-path ./components -- dotnet run
```

### Run the publisher

```bash
cd publisher
dapr run --app-id publisher --resources-path ./components -- dotnet run
```

### Observe the event

In your subscriber app you should see:

```bash
== APP == 17
```