服务发现:在分布式系统/微服务架构中,让客户端或服务能够自动找到某个服务的可用实例(地址、端口、健康状态等)的机制;常通过注册中心、DNS 或平台内置能力实现。(也可写作 service discovery)
/ˈsɝːvɪs dɪˈskʌvəri/
Service discovery lets your app find the right server automatically.
服务发现让你的应用能自动找到正确的服务器。
In a microservices system, service discovery and health checks work together so traffic is routed only to healthy instances as services scale up or down.
在微服务系统中,服务发现与健康检查配合使用,使得在服务扩缩容时,流量只会被路由到健康的实例。
该术语由 service(服务) + discovery(发现) 组合而成,原意是“发现服务”。随着 SOA 与微服务的流行,它在工程语境中特指“在网络中动态定位服务实例”的能力;常见实现与注册/目录服务(registry/directory)以及云原生平台(如 Kubernetes)密切相关。