What is gRPC service config and what can be configured through it?

Last updated 8 July 2026

  • Service config is a JSON document, usually delivered by the name resolver (DNS TXT or xDS), that sets client-side call policy without changing client code.

  • It configures the load balancing policy (loadBalancingConfig) and per-method settings via methodConfig: timeout, max message sizes, waitForReady, and retry or hedging policies.

  • Operators can update behavior centrally at runtime, and clients may set a default fallback config on the channel.

  • https://grpc.github.io/grpc/core/md_doc_service_config.html
  • https://github.com/grpc/grpc/blob/master/doc/service_config.md
  • https://hexdocs.pm/grpc/GRPC.Client.ServiceConfig.html
  • https://grpc.io/docs/guides/service-config/
  • https://pkg.go.dev/google.golang.org/grpc
  • https://learn.microsoft.com/id-id/aspnet/core/grpc/configuration?view=aspnetcore-12.0
  • https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto
  • https://github.com/grpc/grpc-go/blob/master/service_config.go
All gRPC interview questions