DEV Community


Discussion on: Explain Service Discovery like I'm five

msoedov profile image
Alex Miasoiedov

Service Discovery in a few word it's asking a centralized registry what what else is running and where (how I can reach it). The generic flow looks like:

1) Introduction yourself to registry: Hello I am a Bakery service with ip address x.x.x.x and port zzzz
2) Registry will create a record and perform a periodic check to ensure that this service is up and running

3) Some one else can ask I need to reach to the Bakery service and get reply with the address/ list of addresses from records

Consul uses DNS as mechanism to refer to specific service location but it has own tradeoffs like every system.