Spring / Spring gRPC Interview Questions
How would you expose actuator-style health checks for a gRPC service?
gRPC has a standardized Health Checking Protocol (the grpc.health.v1.Health service, from io.grpc:grpc-services), and most Spring gRPC starters can auto-register an implementation of it alongside your own services.
This gives load balancers, service meshes, and Kubernetes readiness/liveness probes (via a gRPC-aware probe or sidecar) a standard way to query service health, playing the same role that Spring Boot Actuator's /actuator/health endpoint plays for REST services - just expressed as a gRPC call instead of an HTTP GET.
More Related questions...