Giter VIP home page Giter VIP logo

dotnet-kafka-consumer's Introduction

DotNetKafkaConsumer

This is a sample Kafka consumer using the Confluent Kafka client for .NET. It is a simple console application that subscribes to a topic and prints out received messages. By adjusting the configuration properties you can use it to connect to Bluemix Message Hub or to a vanilla Kafka cluster.

How to run it

You should be able to clone or download the repo, open it in Visual Studio, and build it straight away. The solution has dependencies on the Confluent.Kafka and librdkafka.redist Nuget packages. The app.config file contains settings for the bootstrap servers, consumer group ID, and topic. If you are connecting to Message Hub you will have a username and password that you need to pass as arguments on the command line.

What's the deal with this Digicert root certificate?

This is for Message Hub, which requires SSL. The librdkafka library doesn't have access to certificate stores provided by the environment, so you have to provide a root certificate so that it can validate the certificates presented by the Message Hub brokers. If you're connecting to a normal Kafka cluster this isn't required unless you are using SSL, which is beyond the scope of this example. The certificate itself was exported from the certificate store on a Windows 7 machine; if you don't trust it feel free to use a different one.

dotnet-kafka-consumer's People

Contributors

mattmasuda avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.