#Microservice name

9 messages · Page 1 of 1 (latest)

fair beacon
#

Hello, in monorepo architecture, is there any way to get the name of the current microservice at runtime?

distant badge
fair beacon
hallow bolt
#

How do you define "microservice name"?

small breach
fair beacon
fair beacon
#

but for accessing it I need name and for that I can just type its name

#

I wanted do sometihing like this:

await app.listen(configService.get(`ports.${this.microservice.name}`))

so it would be dynamic and assign corresponding ports defined in config files to corresponding microservices