feat(registry): add service discovery and health check capabilities

- Integrate tonic-health for gRPC service health monitoring
- Add etcd-based service registration with automatic keep-alive
- Implement dynamic configuration loading from etcd with fallback
- Remove external dependencies from docker-compose for simplified deployment
- Refactor service registration logic with improved lease management
- Add health service to gRPC server with serving status reporting
This commit is contained in:
zhenyi
2026-06-11 22:50:40 +08:00
parent 1ccfd3d626
commit b797e360c0
8 changed files with 73 additions and 326 deletions
+1
View File
@@ -46,6 +46,7 @@ tonic = { version = "0.14", features = ["transport", "channel"] }
prost = "0.14"
prost-types = "0.14"
tonic-prost = "0.14"
tonic-health = "0.14.6"
url = "2.5"
etcd-client = { version = "0.18", features = ["tls"] }
tokio-stream = "0.1"