createMicroservice
Creates and bootstraps microservice for given transport layer
Importing
Type declaration
Parameters
parameter
definition
config
CreateMicroserviceConfig
CreateMicroserviceConfig
parameter
definition
listener
MessagingListener
event$
<optional> HttpServerEffect
dependencies
<optional> Array<BoundDependency<any>>
transport
Transport
options
StrategyOptions
StrategyOptions (Transport.AMQP
)
Transport.AMQP
)parameter
definition
host
string
queue
string
queueOptions
<optional> Options.AssertQueue
(see: amqplib)
prefetchCount
<optional> number
(defaults to 1)
expectAck
<optional> boolean
timeout
<optional> number
in ms (defaults to 120s)
StrategyOptions (Transport.REDIS
)
Transport.REDIS
)parameter
definition
host
string
channel
string
port
<optional> number
password
<optional> string
timeout
<optional> number
in ms (defaults to 120s)
Example (AMQP):
Example (REDIS):
Last updated