1.0.5 • Published 5 years ago

kafka-avro-nodejs v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

kafka-avro-nodejs

This module is used for implementing kafka-avro using node.js

The kafka-avro-nodejs library is a wrapper that combines the kafka-avro, node-rdkafka and avsc libraries to allow for Production and Consumption of messages on kafka validated and serialized by Avro.

Install

For Ubuntu 16.04 and above please follow the below step before installing the module:

sudo apt install librdkafka-dev

Install the module using NPM:

npm install kafka-avro-nodejs --save

Implementation

  • Run the docker-compose.yml file to run schema-registry,zookeeper and kafka (optional) (make sure to replace localhost with your IP)
  • Create schemas in schema registry using API's specified here
  • Please refer producer.js and consumer.js to use this module
  • Provide all configurations in config.js as shown
  • Please make sure schemas are created in the schema registry first

Sample schema registration commands

Tools useful to create

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago