https://github.com/andriykalashnykov/net-kafka-confluent-examples
Confluent Cloud Kafka examples in .Net
https://github.com/andriykalashnykov/net-kafka-confluent-examples
confluent confluent-kafka docker docker-compose dotnet dotnetcore kafka
Last synced: about 1 month ago
JSON representation
Confluent Cloud Kafka examples in .Net
- Host: GitHub
- URL: https://github.com/andriykalashnykov/net-kafka-confluent-examples
- Owner: AndriyKalashnykov
- Created: 2023-09-21T02:44:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-19T05:58:54.000Z (3 months ago)
- Last Synced: 2025-08-03T21:00:29.779Z (2 months ago)
- Topics: confluent, confluent-kafka, docker, docker-compose, dotnet, dotnetcore, kafka
- Language: C#
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# net-kafka-confluent-examples
## Requirements
## .Net 9
### Linux manual
Download [.Net 9.0.x](https://dotnet.microsoft.com/en-us/download/dotnet/9.0) and run follwing commands:
```bash
DOTNET_FILE=/home/$USER//Downloads/dotnet-sdk-9.0.101-linux-x64.tar.gz
export DOTNET_ROOT=/home/$USER/.dotnet
mkdir -p "$DOTNET_ROOT" && tar zxf "$DOTNET_FILE" -C "$DOTNET_ROOT"
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
```### Linux package manager
Run the following commands:
```bash
sudo apt-get update && sudo apt-get install -y dotnet-sdk-9.0
sudo apt-get install -y dotnet-runtime-9.0
sudo apt-get update && sudo apt-get install -y aspnetcore-runtime-9.0
```and update [global.json](./global.json) to `"version": "9.0.0"`
### Note on Confluent's .NET Client for Apache Kafka
[Confluent's .NET Client for Apache Kafka](https://github.com/confluentinc/confluent-kafka-dotnet) dependency can be added to .Net project as following
```bash
dotnet add package -v 2.6.0 Confluent.Kafka
```## Docker
Install [Docker](https://docs.docker.com/engine/install/)
## KinD
Install [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
## kubectl
Install [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
## Help
```bash
$ make
Usage: make COMMAND
Commands :
help - List available tasks
clean - Cleanup
build - Build
release - Create and push a new tag
version - Print current version(tag)
consumer-image-build - Build Consumer Docker image
consumer-image-run - Run a Docker image
consumer-image-stop - Run a Docker image
runp - Run producer
runc - Run consumer
k8s-deploy - Deploy to a local KinD cluster
k8s-undeploy - Undeploy from a local KinD cluster
upgrade - Upgrade outdated packages
```## Install [Docker Scout](https://www.docker.com/products/docker-scout/)
```bash
curl -sSfL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh -s --
```## Advanced image analysis with [Docker Scout CLI](https://github.com/docker/scout-cli)
```bash
docker scout quickview
```## References
- [Getting Started with Apache Kafka and .NET](https://developer.confluent.io/get-started/dotnet/#introduction)
- [Confluent's .NET Client for Apache Kafka](https://github.com/confluentinc/confluent-kafka-dotnet)
- [Kafka .NET Client](https://docs.confluent.io/kafka-clients/dotnet/current/overview.html)