Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crisu83/rabbitmq-domain-events

A proof of concept implementation of publishing and subscribing to domain events using RabbitMQ.
https://github.com/crisu83/rabbitmq-domain-events

Last synced: 13 days ago
JSON representation

A proof of concept implementation of publishing and subscribing to domain events using RabbitMQ.

Awesome Lists containing this project

README

        

# rabbitmq-domain-events

A proof of concept implementation of publishing and subscribing to domain events using RabbitMQ.

## Usage

Clone or download the repository.

Install dependencies:

```sh
yarn install
```

Start the services:

```sh
yarn start
```

## Output

Example output:

```sh
[*] Alpha started. Press CTRL+C to exit
[*] Charlie started. Press CTRL+C to exit
[*] Beta started. Press CTRL+C to exit
[x] Sent (alpha.heartbeat) 'Heartbeat from Alpha'
[x] Received (alpha.#) 'Heartbeat from Alpha'
[x] Charlie handled 'Heartbeat from Alpha'
[x] Sent (beta.heartbeat) 'Heartbeat from Beta'
[x] Received (beta.#) 'Heartbeat from Beta'
[x] Charlie handled 'Heartbeat from Beta'
[x] Sent (charlie.heartbeat) 'Heartbeat from Charlie'
[x] Received (charlie.#) 'Heartbeat from Charlie'
[x] Beta handled 'Heartbeat from Charlie'
```