App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.
You can configure your app to receive HTTP/2 traffic. HTTP/2 is an updated HTTP protocol that was designed to improve the performance of web applications by allowing multiple requests to be sent over a single connection. This allows your app to use gRPC and other HTTP/2 features.
If you have not configured your app to receive HTTP/2 traffic, App Platform downgrades requests to HTTP/1.1 when relayed to the app’s container.
To configure your app to receive HTTP/2 traffic, update or add the protocol
field to the component you want to receive HTTP/2 traffic in your app’s spec file, like this:
name: your-app
services:
- name: grpc-service
protocol: HTTP2
Once you have updated your app’s spec, the app redeploys with the new configuration and the container receives HTTP/2 traffic as HTTP/2 cleartext (h2c). Your app may require additional configuration to receive HTTP/2 traffic.