All Products
Search
Document Center

Edge Security Acceleration:gRPC

Last Updated:Sep 19, 2024

gRPC is an open source high performance Remote Procedure Call (RPC) framework that is developed based on HTTP/2. Using the protocol buffers (Protobuf) messaging format to serialize structured data, gRPC can connect services across languages and platforms and allows you to request a service from a remote server the same way you request an on-premises application. gRPC can also help users reduce bandwidth usage and network latency.

Benefits of gRPC

  • Efficient communication: gRPC can concurrently process multiple requests over a single TCP connection by using the multiplexing feature of HTTP/2. This improves communication efficiency and performance.

  • Cross-language interoperability: gRPC supports multiple mainstream programming languages and allows the server and the client to use different languages for development. This facilitates the construction of heterogeneous systems.

  • Strongly typed interface definition: gRPC provides strict type checks and uses Protobuf to define your service interface and message structure. This helps reduce errors and simplify version management.

  • Stream processing: gRPC supports single-directional and bi-directional streaming RPC and is an ideal choice for big data stream and real-time messaging scenarios.

  • High security: gRPC can be integrated with Transport Layer Security (TLS) to support multiple identity verification and authorization mechanisms for communication security.

Prerequisites

  • The SSL/TLS feature is enabled and the certificate is correctly configured for the site. For more information, see Configure edge certificates.

  • TLS, HTTP/2, and gRPC are supported by the origin server, and Match Client or HTTPS is specified for the Origin Protocol parameter. For more information, see Origin protocols.

  • application/grpc is used as the Content-Type header of gRPC requests.

Procedure

  1. Log on to the ESA console.

  2. In the left-side navigation pane, click Websites.

  3. On the Websites page, find the website that you want to manage, and click the website name or View Details in the Actions column.

  4. In the left-side navigation tree, click Network.

  5. Turn on the gRPC switch.

    image