A Visual Studio 2019 solution written in C# to demonstrate sending messages to Confluent Kafka using the open source Confluent.Kafka client library for .NET.
For this solution to work, it is necessary to add a Confluent.Kafka reference to project.
In order to send messages to Kafka, you must have a Confluent Kafka Server setup and configured with a Kafka Topic to write to. You will need its IP address and port number to send messages.
- Download the solution from our GitHub repository
- Open the solution in Visual Studio 2019
- Install the Confluent.Kafka NuGet Package: Install-Package Confluent.Kafka -Version 1.3.0
- Edit the 'BootstrapServers' string constant with your Confluent Kafka Server IP address and port number (usually 9092)
- Edit the 'KafkaTopic' string constant with your Kafka topic name
- Click the Start button, or press F5
This project is licensed under the MIT License - see the LICENSE.md file for details