gRPC & RPC

gRPC Interceptor

Middleware that intercepts gRPC calls for cross-cutting concerns — logging, authentication, metrics, and tracing — similar to HTTP middleware. Interceptors can be unary (single request/response) or streaming, and are chained together in order. Server-side interceptors wrap the handler; client-side interceptors wrap the stub. They run on both the client and server independently.

Giao thức liên quan

Xem thêm