2
votes

For Eureka, services can register themselves to Eureka server directly. Why should we send request to Consul client instead of Consul server? Are there any problems to let services communicate with Consul server directly?

Appreciate your help, thanks!

1

1 Answers

0
votes

No, there is no problem in communicating directly to the servers.

Consul clients are used in big data centers with many (5+) Consul agents. The Consul developers recommend to use three to five server agents per datacenter. If you need more agents (for hundreds of micro services e.g.) than you should use client agents that are connected to server agents instead of launching more server agents which will decrease performance.

But in a smaller datacenter there is no problem using server agents directly.