For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure gRPC Support

You can configure an ALB to support gRPC, a high-performance RPC framework using HTTP/2 for transport. The gRPC enables users to define service methods and messages in a language-agnostic way, making API creation straightforward across different platforms. Additionally, it supports advanced features such as load balancing, retries, and deadlines.

To configure gRPC follow these steps:

  1. Create a Target Group. Follow the steps outlined in the Create Target Group guide.

Ensure you select HTTP as the protocol and HTTP2 as the protocol version for gRPC support. It is recommended not to set any HTTP health checks for gRPC support.

Example target group request for gRPC support

{
  “properties”: {
    “name”: “grpc-target-group”,
    “protocol”: “HTTP”,
    "protocolVersion": "HTTP2",
    “algorithm”: “ROUND_ROBIN”,
    “targets”: [
      {
        “ip”: 10.10.10.10,
        “port”: 8000,
        “weight”: 1
      }
    ]
  }
}
  1. Follow Set Up an Application Load Balancer guide to complete configuring the load balancer for gRPC traffic.

Last updated

Was this helpful?