layerr
  • README
  • BUS
    • Installation
    • Getting Started
    • Command Bus
Powered by GitBook
On this page
  • What is @layerr/bus?
  • Why should I use @layerr/bus?

Was this helpful?

  1. BUS

Getting Started

PreviousInstallationNextCommand Bus

Last updated 5 years ago

Was this helpful?

What is @layerr/bus?

@layerr/bus is a library to create a message bus layer in your application. It is completely configurable using middleware. Just imagine your next message 🚌

It uses RxJS as internal engine. If you are not comfortable with it, don't worry, you can use promise-like async code too.

Why should I use @layerr/bus?

Using @layerr/bus you can create a command bus, a query bus or a generic message bus. Use it if:

  • you're using the CQRS pattern. Read the .

  • you simply want to introduce a separation layer between business login and presentation in your application.

  • you need a powerful design to extend a set of classes that represents an action.

Martin Flower's blog article