API Doc
Search Docs...
⌘ K
ACOSABSAVEANSABDRAKEObservability

HTTP/2 and gRPC

HTTP/2 is a protocol that supports multiplexing over a single TCP connection. Compared with HTTP/1.1, HTTP/2 provides higher transmission efficiency and supports features such as concurrent streams and header compression.

gRPC is a high-performance, cross-language remote procedure call (RPC) framework built on HTTP/2 as its transport protocol, enabling different services to communicate as if they were calling local functions.

In ANS L7 load balancing, HTTP/2 is mainly used to support backend gRPC forwarding. Backend server pools do not provide a separate HTTP/2 configuration option. To use gRPC, enable HTTP/2 for the L7 virtual service and enable gRPC for the backend server pool or server pool group.

After gRPC is enabled, L7 load balancing uses HTTP/2 to forward gRPC requests to backend servers. When HTTP/2 is disabled, an L7 virtual service cannot be associated with a server pool or server pool group that has gRPC enabled. When gRPC is not enabled, backend connections use HTTP/1.1.