Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fmvilas/hermesjs-kafka
- Owner: fmvilas
- Created: 2019-09-30T16:25:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T01:13:16.000Z (over 2 years ago)
- Last Synced: 2024-10-27T20:45:20.914Z (about 2 months ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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))