@inrange/amqp-message-bus
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

amqp-message-bus

Fast track services communications via the RabbitMQ Message Broker.

0v3rst33r - amqp-message-bus stars - amqp-message-bus forks - amqp-message-bus

GitHub tag Contributors Issues License

Table Of Contents

Setup

Install nvm if you have not done so yet, then:

nvm use

Build

npm run build

Test

Start rabbitmq on your local machine:

docker run --rm -it --hostname rabbitmq-amqp-message-bus -p 15672:15672 -p 5672:5672 rabbitmq:3-management

Then exeucte the tests:

npm run test

Expected output:

  IntegrationCommands
    when subscribing and publishing
      ✔ then the message is received (55ms)

  IntegrationEvents
    2 queues with different names against the same exchange
      when subscribing and publishing
        ✔ then the message is consumed twice by both queues (2056ms)
    2 queues with identical names against the same exchange
      when subscribing and publishing
        ✔ then the message is consumed only once by one of the queues (2047ms)


  3 passing (4s)

Publish

You need to be an @inrange organisation team member in order to publish.

Use the --dry-run flag if you first want to test/confirm what will be published.

npm publish --access public

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  • If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
  • Please make sure you check your spelling and grammar.
  • Create individual PR for each suggestion.

License

See LICENSE for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @inrange/amqp-message-bus

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

36.7 kB

Total Files

39

Last publish

Collaborators

  • pellisatinrange
  • mitchwongho
  • jarrydinrange
  • dawidatinrange
  • 0v3rst33r