Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fmvilas/hermesjs-kafka

Kafka adapter for Hermes
https://github.com/fmvilas/hermesjs-kafka

Last synced: 5 days ago
JSON representation

Kafka adapter for Hermes

Awesome Lists containing this project

README

        

# hermesjs-kafka

Kafka adapter for [HermesJS](https://github.com/fmvilas/hermes).

## Installing

```
npm install hermesjs-kafka
```

## Example

```js
const Hermes = require('hermesjs');
const KafkaAdapter = require('hermesjs-kafka');

const app = new Hermes();

app.addAdapter(KafkaAdapter, {
clientId: 'myClientId',
brokers: ['localhost:9092'],
consumerOptions: {
groupId: 'myGroupId',
},
topics: ['user__signedup'],
topicSeparator: '__',
});
```

See a working example [here](./example/index.js).

## Author

Fran Méndez ([fmvilas.com](https://fmvilas.com))