Hello all,
I have the following processes communicating on the same PC:
P1, P2, P3.... all have the same service interface -> just different instances of the same service.
Client and server communicate on localhost port 10000 for example. Base on some information received from the client the server will start a new process P1. or P2, or P3..or how many it needs ( P1 - is actually a server that will start listening on localhost port 10001 for example )
Then the client will discuss directly with P1, P2, P3, ... depending on it's needs
The problem with this is that P1, P2, P3... beeing the same service, I cannot start them on the same localhost port, and because I might have a lot of these processes I will use a large amount of ports -> not a good practice.
Is there a better practice for this using gRPC? At the moment I couldn't find a solution for it or at least I didn't know what to search for.
The language: C++, the environment: Windows
Thank you!
Cosmin