All Products
Search
Document Center

Edge Security Acceleration:gRPC

Last Updated:Dec 11, 2024

gRPC is an open source high performance Remote Procedure Call (RPC) framework. gRPC on Edge Security Acceleration (ESA) is developed based on TLS and 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: Utilizing the multiplexing feature of HTTP/2 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 unidirectional 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 website. 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 certificates.

  • 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 pane, click Speed and Network, and choose the Network Optimization tab.

  5. Turn on the gRPC switch.

    image