Skip to content

TWAICE/node-kinesis-producer

Repository files navigation

NodeJs Kinesis Producer

Logo

npm (scoped) Github CI npm Maintained License

Description

Kinesis Producer library for NodeJS inspired by Kiner.

Installation

$ npm install @twaice/node-kinesis-producer

Usage

import KinesisProducer from '@twaice/node-kinesis-producer';

const producer = new KinesisProducer(
    streamName: "stream-name",
    clientConfig: {
        region: "eu-west-1"
    },
    maxRetries: 10
);

const records = [{
    Data: 'test'
}];
await producer.putRecords(records);