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 it easy to create APIs that work seamlessly across different platforms. Additionally, it supports advanced features like load balancing, retries, and deadlines, enhancing the reliability and efficiency of your applications.

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 Initial ALB Setup guide to complete configuring the load balancer for gRPC traffic.

Result: ALB will now support gRPC traffic by handling HTTP/2 requests and enabling efficient gRPC communication.

Last updated

Revision created

commented latest release