- 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.
- CorelDRAW X6 中文版圖形設計實戰從入門到精通
- 新一代物聯網架構技術:分層算力網絡
- Proxmox High Availability
- HCNA網絡技術
- HTML5 Game development with ImpactJS
- Spring Cloud微服務架構進階
- NB-IoT物聯網技術解析與案例詳解
- Yii Application Development Cookbook(Second Edition)
- 網管員必讀:網絡管理(第2版)
- Windows Server 2012 Hyper-V虛擬化管理實踐
- jQuery Mobile Web Development Essentials
- 5G技術與標準
- Cisco無線局域網配置基礎
- 物聯網與智慧廣電
- 網絡分析技術揭秘:原理、實踐與WinPcap深入解析