Step by step: Kafka Pub/Sub with Docker and .Net Core

Last week I attended to a Kafka workshop and this is my attempt to show you a simple Step by step: Kafka Pub/Sub with Docker and .Net Core tutorial.

Let’s start:

1. Create a folder for your new project
2. Create a console project
3. Add the Confluent.Kafka nuget package
4. Replace the contents of Program.cs
5. Start Kafka with Docker
6. Run the program

Get the code and related files here: https://github.com/cmendible/dotnetcore.samples/tree/master/kafka.pubsub.console

Hope it helps!

5 thoughts on “Step by step: Kafka Pub/Sub with Docker and .Net Core

  1. Hi,

    You mentioned in your article about adding a range to the Docker Unsafe Registry? What is that, and how do I do it?

    1. Hi David, the docs define a insecure registry as one which is either not using TLS (i.e., listening on plain text HTTP), or is using TLS with a CA certificate not known by the Docker daemon.

      If you use docker for windows you can add the settings in the daemon settings window as shown in the following picture:

      unsecure registry setting (docker for windows)

Leave a Reply

Your email address will not be published. Required fields are marked *