This topic describes the billable items and pricing of pay-as-you-go instances of Message Queue for MQTT.

Billable items

The following table lists the billable items of pay-as-you-go instances of Message Queue for MQTT.

Item Definition Description Example
Number of concurrent connections The number of client connections over TCP on a single instance at any time. The number of concurrent connections is a transient value. It is updated every minute. The billing cycle is one day. The maximum number of concurrent connections within the 24 hours starting from 00:00 in the previous day is counted in each daily bill. Assume that the number of concurrent connections of instance_a was 1,000 at 10:00 on August 8, 2017 and was 2,000 at 11:00 on August 8, 2017. In addition, the number did not reach 2,000 afterward on that day. In this case, the maximum number of concurrent connections of instance_a was 2,000 on August 8, 2017. Therefore, the number for which you were charged was 2,000.
Number of sent and received messages The maximum number of messages that are sent and received by using protocols supported by Message Queue for MQTT.
Notice If you use the global acceleration feature, a message that is first sent to a content delivery network (CDN) node and then sent to the central node is counted 10 times of a normal message.
  • The billing cycle is one day. The total number of messages that are sent and received within the 24 hours starting from 00:00 in the previous day is counted in each daily bill.
  • These messages include only the messages that are sent and received by using Message Queue for MQTT, but do not include the messages that are sent and received by using Message Queue for Apache RocketMQ.
  • Both received messages and sent messages are counted.
  • If the system fails to push a message with QoS set to 1 and cleanSession set to false, the system store the message as an offline message for retrying. Storing an offline message is also counted as one push call.
  • The system charges you by multiplying a specified ratio by the total number of messages requested in calls to the client API and the cloud API. The ratio corresponds to the level of transmission quality in the specified protocol. For more information, see Calculation ratios.
Assume that instance_a is connected to 100 clients with cleanSession set to true. Each client sends one QoS0 message, two QoS1 messages, and three QoS2 messages, and receives one QoS0 message, one QoS1 message, and one QoS2 message. In this case, the total number of sent and received messages of instance_a is calculated by using the following formula:
  • 100 × (1 + 2 × 2 + 3 × 5) + 100 × (1 + 1 × 2 + 1 × 5) = 2800. The number for which you are charged is 2,800.
  • If the global acceleration feature is enabled for instance_a and all messages are first sent to CDN nodes and then to the central nodes, the number of sent and received messages is counted 10 times in billing. This means that the number for which you are charged is (2800 × 10) = 28000.
Number of subscriptions The number of subscriptions that a user registers with the Message Queue for MQTT broker. The billing cycle is one day. The maximum number of subscriptions within the 24 hours starting from 00:00 in the previous day is counted in each daily bill. Assume that the number of subscriptions in instance_a was 1,000 at 10:00 on August 8, 2017 and was 500 at 11:00 on August 8, 2017. In addition, the number did not reach 1,000 afterward on that day. In this case, the maximum number of subscriptions in instance_a was 1,000 on August 8, 2017. Therefore, the number for which you were charged was 1,000.

Pricing

The following table lists the billing rules for the number of concurrent connections of pay-as-you-go instances of Message Queue for MQTT.

Number of concurrent connections Price (USD)
[1,100] 0.07
>100 Number of concurrent connections × 0.0007

The following table lists the billing rules for the number of sent and received messages of pay-as-you-go instances of Message Queue for MQTT.

Number of sent and received messages (million) Price (USD)
>0 Number of sent and received messages × 0.91

The following table lists the billing rules for the number of subscriptions of pay-as-you-go instances of Message Queue for MQTT.

Number of subscriptions Price (USD)
[1,100] 0.01
>100 Number of subscriptions × 0.0001