I'm trying to understand how to implement service discovery pattern in my architechture. I understand that each instance of one service must register itself in the service registry when starts and then refresh the registration each, for instance, 30 seconds.
Say I have a
purchases service that needs to read some data from
clients service. Both are REST based services.
Do I need to query the
clients service's URL in the service registry each time it needs to make a request against it? Doesn't it have performance consequences?