Giter Site home page Giter Site logo

Comments (4)

edoardocomar avatar edoardocomar commented on July 29, 2024

Hi @goupadhy we have not tried any asp.net kafka library.
The requirement to connect to IBM MessageHub Kafka in Bluemix is to support the SASL PLAIN authentication mechanism over an SSL connection.
Of the two libraries you mention, the first is described by the author as a personal pet project.
The second one is based on librdkafka which supports the options we need except on Windows, where SASL is not implemented
Please see the options set in the node.js console sample that get passed to librdkafka.

AFAIK at the moment, on Windows the best option is to use the Java client.

from event-streams-samples.

goupadhy avatar goupadhy commented on July 29, 2024

Thanks for your response. We are trying to use asp.net core instead of node/java. We are trying to connect from Asp.Net Core application running on Bluemix not windows machine. Is there a way we can talk to message hub from asp.net core that you are aware of?

from event-streams-samples.

edoardocomar avatar edoardocomar commented on July 29, 2024

Hi @goupadhy we have not looked at asp.net clients.

As https://github.com/ah-/rdkafka-dotnet is based on librdkafka that seems a candidate.
Please note
1 - the librdkafka options required to connect , see the kafka-nodejs-console-sample example, are :

    var driver_options = {
        //'debug': 'all',
        'metadata.broker.list': opts.brokers,
        'security.protocol': 'sasl_ssl',
        'ssl.ca.location': opts.calocation,
        'sasl.mechanisms': 'PLAIN',
        'sasl.username': opts.username,
        'sasl.password': opts.password
    };

2 - At least on the Bluemix buildpack for node.js, librdkafka does not build with SASL enabled because of a missing development library.
Our workaround, again illustrated by the kafka-nodejs-console-sample example was to deploy a prebuilt binary.

from event-streams-samples.

mimaison avatar mimaison commented on July 29, 2024

We're not planning on adding a .Net sample at the moment.

This .Net client should work with Event Streams: https://github.com/confluentinc/confluent-kafka-dotnet as it's based on librdkafka which we know works well

from event-streams-samples.

Related Issues (20)

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.