Service Discovery for a microservice with multiple ports
3 comments
I got inspired by Consul and srv records.
I use different names for the protocols on each port, e.g. mqtt.mosquitto...
websocket.mosquitto..
So all services needs to talk to consul DNS to resolve these names, right?
How would you expose for example mqtt to public internet-facing in this case?
How would you expose for example mqtt to public internet-facing in this case?
I use TLS and SNi and have a public hostname for each port
Does it violate the single responsibility of a microservice?
How do you handle service registration and discovery for services with multiple ports?
Is IP per container with smart clients & SRV records the best way to tackle this problem?