Knative gateways provide a flexible way to receive external traffic and route it to different Knative services. Alibaba Cloud Container Service (ACS) Knative supports three gateways: ALB, ASM, and Kourier. Each gateway has specific advantages and is suitable for different scenarios. This topic compares the gateways based on their product positioning, service architecture, basic routing, operations and maintenance (O&M) capabilities, performance, supported protocols, and observability to help you select the most suitable gateway.
Introduction to Knative gateways
ALB: A fully managed gateway based on Alibaba Cloud ALB. It provides powerful traffic management, requires no O&M, and supports automatic scaling.
ASM: A managed, Istio-compatible platform for unified traffic management of microservice applications. It simplifies service administration with features such as traffic shaping, mesh observability, and secure inter-service communication. This helps you manage services that run on heterogeneous computing infrastructure.
Kourier: A lightweight, open source gateway from the Knative community, implemented based on the Envoy architecture.
Comparison of Knative gateways
Type | ALB | ASM | Kourier |
Product positioning |
| Provides a fully managed service mesh platform that is compatible with the open source Istio service mesh. It is designed to simplify service administration by managing traffic routing and splitting for service invocations, ensuring secure inter-service communication, and providing mesh observability. This reduces the workload for developers and O&M teams. | A lightweight gateway based on Envoy. It is the gateway implementation provided by the community for accessing Knative Serving services. It provides essential routing and service discovery features. |
Service architecture |
|
|
|
Basic routing |
|
|
|
O&M capabilities |
|
|
|
Performance |
|
| Performance depends on manual tuning. |
Supported mainstream protocols | Supports HTTP, HTTPS, QUIC, WebSocket, WSS, and gRPC protocols. |
| Supports HTTP, HTTPS, and gRPC protocols. |
Observability |
|
| Collects logs through access logs. |
In summary, ALB focuses on application layer load balancing, ASM provides service mesh (Istio) capabilities, and Kourier is a good choice if you only need basic gateway capabilities.
References
For more information about how to use these gateways in Knative and related notes, see Use an ALB gateway, Use an ASM gateway, and Use a Kourier gateway.