Skip to main content

HTTP Cloud Functions support multi-concurrency and WebSocket real-time communication

NewCloud Functions · HTTP Gateway← Changelog

HTTP Cloud Functions now support single-instance multi-concurrency mode and WebSocket/SSE real-time communication. Development Documentation

Multi-concurrency reduces cold starts​

A single function instance can handle multiple requests simultaneously, removing the need to start a new instance for every request. Compared to the "single instance single request" mode of regular cloud functions, it significantly reduces cold start frequency and resource consumption.

Bidirectional WebSocket communication​

Native support for WebSocket protocol provides full-duplex communication. This is ideal for scenarios requiring bidirectional communication, such as real-time chat, collaborative editing, and game servers. WebSocket Usage Guide