This project demonstrates how to use Apache Avro schemas with Kafka producers in a .NET application, featuring automatic schema compilation during the build process.
The example shows how to:
- Define Avro schemas for message types
- Automatically compile Avro schemas to C# classes
- Produce messages to Kafka using the Confluent.Kafka client with Schema Registry
- .NET 9.0
- Docker and Docker Compose
-
Start the Kafka environment:
docker-compose up -d -
Build and run the project:
dotnet run --project KafkaAvro -
Access Kafka UI at http://localhost:8080