https://github.com/andriykalashnykov/dapr-csharp-kafka
https://github.com/andriykalashnykov/dapr-csharp-kafka
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andriykalashnykov/dapr-csharp-kafka
- Owner: AndriyKalashnykov
- Created: 2024-09-28T19:42:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T22:19:19.000Z (8 months ago)
- Last Synced: 2025-03-04T23:25:06.120Z (8 months ago)
- Language: Makefile
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```