Skip to content

diogomr/message-broker

Repository files navigation

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Running with Docker

# Run the actual message broker. This will also start a MongoDB container 
docker-compose up broker

# Run producers that will write messages into the broker. 
# The number of producers is configurable through ENV variable PROCESSES
docker-compose up producers

# Run consumers that will read messages from the broker 
# The number of consumers is configurable through ENV variable PROCESSES
docker-compose up consumers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published