Package Exports
- resolve-local-event-broker
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 (resolve-local-event-broker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
resolve-local-event-broker
This package includes event broker for local run.
Usage
When initializing an event broker, pass the following arguments:
eventStore
- the configured eventStore instance.bucketSize
- the bucket size.databaseFile
- the path to a file where state of the bus are stored.zmqBrokerAddress
- the ZMQ broker address.zmqConsumerAddress
- the ZMQ consumer address.
Example
const localBusBroker = createBroker({
eventStore,
batchSize: 100,
databaseFile: 'path/to/file',
zmqBrokerAddress: "tcp://127.0.0.1:3500",
zmqConsumerAddress: "tcp://127.0.0.1:3501"
})
localBusBroker.run()