createMicroservice
Creates and bootstraps microservice for given transport layer
Importing
import { createMicroservice } from '@marblejs/messaging';Type declaration
createMicroservice :: CreateMicroserviceConfig
-> Promise<ServerIO<TransportLayerConnection>>Parameters
CreateMicroserviceConfig
StrategyOptions (Transport.AMQP)
Transport.AMQP)StrategyOptions (Transport.REDIS)
Transport.REDIS)Example (AMQP):
Example (REDIS):
Last updated