DEV Community

Discussion on: Building authentication for microservices using NestJS

Collapse
 
msqaddura profile image
Mohamad Qaddura

My apologies to ask,
But what is the difference between the ports 4000 & 4010? i see that 4010 is only used once which looks more of a random

Collapse
 
alesanchez profile image
Ale Sánchez

Sorry for late reply. When I build microservices, if they need to allocate a port, I usually increment the port used by 10. That's more for a local development. If you are going to deploy them in kubernetes or something like that you can use same port for everyone.