Azure Web PubSub 预览定价
使用 Websocket 和发布-订阅模式轻松生成实时消息传送 Web 应用程序
Azure Web PubSub service is a fully-managed service that allows developers to focus on building real-time web experiences without worrying about capacity provisioning, reliable connections, scaling, encryption or authentication. The service makes it easier to deliver experiences such as chat, live broadcasting, and IoT dashboards.
Web PubSub service is currently available in Free and Standard tiers. These tiers are differentiated by the number of concurrent connections, messages and maximum units allowed.
The following table summarizes the difference between the two tiers:
|Concurrent Connections per Unit||20||1,000|
|Messages / Unit / Day||20,000||unlimited (free for the first 1,000,000 messages)|
|Price / Unit / Day||Free||$-|
Additional messages may be purchased for the Standard tier.
|Messages||$- per million messages|
The instance usage for billing depends on the actual time (seconds) the instance is used per day. For example, if the instance is created and used 12 hours in a specific day, the billing will be $0.805 (1* $1.61 Unit/Day * 12 hours / 24 hours) in this day.
For billing purpose, only outbound messages from Azure Web PubSub service are counted. Ping messages between clients and servers are ignored. Message sent into the service is inbound message. Message sent out of the service is outbound message. Traffic is calculated in bytes.
For billing purpose, the messages larger than 2 KB are counted as multiple messages of 2 KB each, and the messages less than 2KB are accumulated together. For example, imagine that there are 100 million outbound messages and 0.1 KB each. In this case, the billing will be $10 (100 million * 0.1KB / 2KB * $1 per million messages).
There are server connections and client connections with Azure Web PubSub service. By default, each application server starts with five initial connections per hub, and each client has one client connection.