npm i @node-ts/bus-core @node-ts/bus-messages --save
Copied!
Configure and initialize the bus when your application starts up.
1
import{ Bus }from'@node-ts/bus-core'
2
β
3
asyncfunctionrun(){
4
const bus =await Bus.configure().initialize()
5
}
Copied!
This is the most basic of setups and your app is running an in memory queue capable of receiving messages from itself. In production, it's strongly recommended to configure a transport so that your application can be distributed and survive restarts.