0

Following up on this question, it would seem that a server that allocates ports within a namespace would be an obvious and useful capability. One use case for such a service/server would be a collection of co-referential microservers that use each other for tasks. I'd see the usage as:

  • Every microserver that wants to make a port available contacts the port server to register itself by the service name that it provides.
  • Every microserver that wants to use another service asks the port server for the port that corresponds to the service name it wants.

I haven't been able to find anything that does this. Does such a service exist?

Scott Deerwester
  • 391
  • 1
  • 3
  • 14
  • 1
    Are you perhaps thinking of [RPC](https://en.wikipedia.org/wiki/Remote_procedure_call)? – Jim L. Oct 07 '21 at 19:22
  • Sounds like [`portmap`](https://en.wikipedia.org/wiki/Portmap) to me. – Kusalananda Oct 07 '21 at 19:28
  • @they I could go for that. – Jim L. Oct 07 '21 at 19:29
  • Micro services are often containerised meaning there is rarely a need to allocate ports within a namespace since each micro service runs in its own container and thus its own namespace. – Philip Couling Oct 07 '21 at 23:22
  • As an example multiple co-related docker containers can reference each other by host name. Instead of using ephemeral ports each one uses a fixed port on its own (docker) ip address. Containers on the same docker network can resolve the ip of any other container by container name through DNS. – Philip Couling Oct 07 '21 at 23:27

0 Answers0