1.0.19 ā€¢ Published 2 years ago

@bakerstreet-industries/bus-core v1.0.19

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

@node-ts/bus-core

The core messaging framework. This package provides an in-memory queue and persistence by default, but is designed to be used with other @node-ts/bus-* packages that provide compatibility with other transports (SQS, RabbitMQ, Azure Queues) and persistence technologies (PostgreSQL, SQL Server, Oracle).

šŸ”„ View our docs at https://bus.node-ts.com šŸ”„

šŸ¤” Have a question? Join our Discord šŸ¤”

Installation

Download and install the packages:

npm i @node-ts/bus-core @node-ts/bus-messages --save

Configure and initialize the bus when your application starts up.

import { Bus } from '@node-ts/bus-core'
ā€‹
async function run () {
  const bus = await Bus
    .configure()
    .initialize()

  // Start listening for messages and dispatch them to handlers when read
  await bus.start()
}

For more information, visit our docs at https://bus.node-ts.com