- Microservices with Clojure
- Anuj Kumar
- 247字
- 2021-06-30 19:24:32
Service discovery patterns
Microservices-based applications may often scale to such a large number of services that it may not be feasible for each microservice to keep a track of all other active service locations. In such scenarios, the service registry helps in discovering microservices to perform a particular task. There are primarily two patterns for service discovery—client-side discovery and server-side discovery, as shown in the following diagram.
In the client-side discovery pattern, the responsibility for determining the location of services by querying the service registry is on the client. Therefore, the service registry must be accessible to the client to look up the location of the required services. Also, each client must have service discovery implementation built-in for this pattern to work.

On the other hand, in the server-side discovery pattern, the responsibility for connecting with the service registry and looking up the location of services is of a router or a gateway that acts as a load balancer as well. Clients just need to send a request to a router and the router takes care of forwarding the request to the required service. Orchestration tools such as Kubernetes support server-side discovery using proxies.
- Aptana Studio Beginner's Guide
- C++黑客編程揭秘與防范
- 異構(gòu)基因共表達(dá)網(wǎng)絡(luò)的分析方法
- 走進(jìn)物聯(lián)網(wǎng)
- Force.com Development Blueprints
- Building RESTful Web Services with Spring 5(Second Edition)
- 網(wǎng)管員必讀:網(wǎng)絡(luò)管理(第2版)
- OMNeT++與網(wǎng)絡(luò)仿真
- The Kubernetes Workshop
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 網(wǎng)絡(luò)利他行為研究:積極心理學(xué)的視角
- 從實(shí)踐中學(xué)習(xí)手機(jī)抓包與數(shù)據(jù)分析
- 網(wǎng)絡(luò)綜合布線(第2版)
- 網(wǎng)絡(luò)空間全球治理觀察
- 智慧城市中的物聯(lián)網(wǎng)技術(shù)