createMicroservice
Creates and bootstraps microservice for given transport layer
Importing
Type declaration
Parameters
parameter | definition |
config |
|
CreateMicroserviceConfig
parameter | definition |
listener |
|
event$ | <optional> |
dependencies | <optional> |
transport |
|
options |
|
StrategyOptions (Transport.AMQP
)
Transport.AMQP
)parameter | definition |
host |
|
queue |
|
queueOptions | <optional> |
prefetchCount | <optional> |
expectAck | <optional> boolean |
timeout | <optional> |
StrategyOptions (Transport.REDIS
)
Transport.REDIS
)parameter | definition |
host |
|
channel |
|
port | <optional> |
password | <optional> |
timeout | <optional> |
Example (AMQP):
Example (REDIS):
Last updated