Skip to content

Latest commit

 

History

History

kafka-dotnet-getting-started

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

.NET

Install .NET CORE

install .net core >= 6.0

configuration

rename getting-started-template.properties to getting-started.properties

replace following values by yours :

  • bootstrap.servers
  • sasl.username
  • sasl.password

Build Producer

create a project file producer.csproj

create producer application file producer.cs

compile application file :

cd producer
dotnet build producer.csproj

Build Consumer

create a project file consumer.csproj

create consumer application file consumer.cs

compile application file :

cd ../consumer
dotnet build consumer.csproj
cd ..

Produce Events

cd producer
dotnet run $(pwd)/../getting-started.properties

Consume Events

cd consumer
dotnet run $(pwd)/../getting-started.properties