https://github.com/workable/eip-mongo
Mongodb Adapter for the eip module. It supports an aggregator store saved in mongodb.
https://github.com/workable/eip-mongo
Last synced: 8 months ago
JSON representation
Mongodb Adapter for the eip module. It supports an aggregator store saved in mongodb.
- Host: GitHub
- URL: https://github.com/workable/eip-mongo
- Owner: Workable
- Created: 2017-03-10T15:51:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-23T22:17:05.000Z (over 2 years ago)
- Last Synced: 2025-06-29T19:42:04.424Z (9 months ago)
- Language: TypeScript
- Size: 364 KB
- Stars: 0
- Watchers: 17
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eip-mongo
Enterprise Integration Patterns for javascript mongodb adapter.
Create a mongodb store to be used in aggregator that is using mongodb to store aggregations.
Aggregate events through many nodes.
# Dependencies
In order for this module to work a mongoose connection is required.
Make sure you connect to mongo using mongoose > 4.0.0
## Installation
```
npm install --save eip-mongo
```
## Usage
```javascript
const eip = require('eip');
const { Store } = require('eip-mongo')
const store = new Store(3600) // ttl to delete from mongo after 3600 sec
const aggregator = new eip.Route().aggregate({ store });
```
## License
MIT