0.0.30 • Published 2 years ago

pp-event-bus v0.0.30

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

eventBus

Small library and microservice form rabbitmq-based event bus.

Usage

npm i --save pp-event-bus - install library npm start - run eventBus microservice

Environment variables

  • EVENT_BUS_LOG - path to directory where event logs will be stored; if not set, event logs will not be stored
  • EVENT_BUS_QUEUE - default: localdev.eventbus
  • RABBITMQ_URL - default: amqp://guest:guest@127.0.0.1/

Examples

Sample:

  • consumer: src/examples/consumer.js
  • producer: src/examples/producer.js

To see them in action, run

  • npm run build to build project
  • npm start to run eventBus microservice
  • npm run consumer to run example consumer
  • npm run producer to run example producer

To run rabbitMQ in docker locally run:

0.0.25

2 years ago

0.0.30

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.20

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.14

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago