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?

5
  • 1
    Are you perhaps thinking of RPC?
    – Jim L.
    Commented Oct 7, 2021 at 19:22
  • Sounds like portmap to me.
    – Kusalananda
    Commented Oct 7, 2021 at 19:28
  • @they I could go for that.
    – Jim L.
    Commented Oct 7, 2021 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. Commented Oct 7, 2021 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. Commented Oct 7, 2021 at 23:27

0

You must log in to answer this question.

Browse other questions tagged .