Cloud-native API Gateway supports WebSocket APIs for real-time, bidirectional communication between clients and backend services. This topic describes how to create a WebSocket API, configure routing rules, and manage routes.
WebSocket APIs maintain a persistent connection between the client and the gateway, allowing either side to send messages at any time. This makes them well-suited for chat applications, live dashboards, collaborative tools, and streaming data feeds.
Cloud-native API Gateway processes WebSocket connections by evaluating routing rules in priority order. When a rule matches, the gateway forwards the connection to the associated backend service.
Create a WebSocket API
Create a WebSocket API in the Cloud-native API Gateway console to expose a WebSocket backend service. For detailed steps, see Create a WebSocket API.
Create a route
Cloud-native API Gateway matches incoming requests against preconfigured routing rules based on priority. A rule with a higher priority is evaluated first, and when a rule is matched, the request is forwarded to the backend service associated with that rule. For steps to configure routing rules, see Create a route.
Manage a route
After creating a route, you can view its configuration, update routing rules, control its lifecycle by publishing or unpublishing it, and delete it when it is no longer needed. For detailed steps, see Manage routes.