0

I have a javascript application which is extremely small, I want to consume my Kafka broker from the javascript application (only a single pushJasonBatch function). I'd rather not deal with installing additional tools as much as I can.

I don't use Confluent. So: How to produce JSON to Kafka broker from Javascript running on a browser, with least ceremony?

lospejos
  • 1,976
  • 3
  • 19
  • 35
Mohsen
  • 4,000
  • 8
  • 42
  • 73

1 Answers1

0

I think if you don't want to run something line the Kafka Rest Proxy on the backend (for which, BTW, you don't need the Confluent Platform) then the simplest choice is kafka-node: https://www.npmjs.com/package/kafka-node

Michal Borowiecki
  • 4,244
  • 1
  • 11
  • 18
  • +1 for the REST proxy. It's open source, and whilst it's included as part of Confluent Platform, can also be used standalone with another Kafka cluster. – Robin Moffatt Mar 12 '18 at 09:19