JSPM

  • Created
  • Published
  • Downloads 446
  • Score
    100M100P100Q86888F
  • License MIT

Node.js kafka client, consumer, producer polite out of the box

Package Exports

  • sinek

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sinek) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


node-sinek

Greenkeeper badge

Build Status npm version

Node.js kafka client, consumer, producer polite out of the box

make it about them, not about you

  • Simon Sinek

Info

Offers

  • easy api
  • no worries backpressure service (dont fry your database)
  • auto-commit / manual drain commit in backpressure-mode (dont loose data)
  • a lot of pitfalls are automatically taken care of
  • provides a drain once for consumers (that reads a whole topic and fires an event)
  • provides easy partition spreading, keyed messages and json formats for producers
  • auto reconnect
  • SSL support
  • SASL support (through native clients)

Install

npm install --save sinek

Usage

const {
  Kafka,
  Drainer,
  Publisher,
  PartitionDrainer,
  Consumer,
  Producer,
  NConsumer,
  NProducer,
} = require("sinek");

We suggest using the native clients NConsumer & NProducer implementations, if possible.

Docs