rico
rico

Reputation: 1935

Why Apache Kafka does not provide a WebSocket connector?

I've seen brokers like RabbitMQ or Apache Pulsar provide a Websocket API to connect directly your browser to the broker.

AFAIK, I've not seen the same for Apache Kafka. You have to implement yourself an intermediary Websocket server.

Why Confluent, which owns Apache Kafka development, does not provide an out-of-the-box websocket API like Rabbitmq or Pulsar ?

Upvotes: 1

Views: 11280

Answers (3)

Austin
Austin

Reputation: 11

There is a kafka connector to Ably hosted on the Confluent Hub. Ably is essentially a serverless WebSocket option (with pub/sub and message queues). You will also find a kafka rule on Ably's website.

Upvotes: 1

Ming L.
Ming L.

Reputation: 401

There is already an open source connecting Kafka with Websocket. https://github.com/b/kafka-websocket

If you have requirements connecting to Kafka from a browser, I suggest to consider to browserfiy this http://github.com/confluentinc/kafka-rest-node

Upvotes: 1

Robin Moffatt
Robin Moffatt

Reputation: 32090

Confluent does not own Apache Kafka development. Apache Kafka is a project owned by the Apache Software Foundation (ASF).

There are several examples of how to use WebSockets with Apache Kafka:

Your question seems somewhat a rhetorical one, but if you actually would like to see Websockets as part of Apache Kafka then the first step would be to raise a Kafka Improvement Proposal (KIP) for discussion in the community. There is a dev mailing list where you can get further guidance on the process on contributing code.

Upvotes: 4

Related Questions