A savings plan is a discount plan for Simple Message Queue (SMQ, formerly MNS). You commit to spending a fixed amount over a set period and receive reduced pay-as-you-go rates. The higher your committed amount, the larger the discount.
Purchase
Billing rules
|
Item |
Description |
|
Billing method |
Subscription. Pay the full amount at purchase. |
|
Committed consumption amount |
The total amount you commit to spend during the subscription period. Valid values: 10 to 100,000 USD. A higher committed amount unlocks a larger discount. |
|
Subscription duration |
1 year only. The plan takes effect at the start of the hour of purchase and expires exactly one year later. For example, if you purchase a plan at 13:45:00 on October 29, 2024, the plan takes effect at 13:00:00 on October 29, 2024 and expires at 13:00:00 on October 29, 2025. |
|
Unsubscription |
Not supported. Before you purchase, calculate the appropriate committed amount. See Calculate committed consumption amount. |
Discounts
Three discount tiers are available based on your committed consumption amount. Discounts apply separately to request fees and resource occupation fees.
|
Committed consumption amount (USD) |
Discount on topic or queue request fee |
Discount on topic or queue resource occupation fee |
|
[10, 800] |
0.95 (5% off) |
0.8 (20% off) |
|
(800, 3,000] |
0.9 (10% off) |
0.6 (40% off) |
|
(3,000, 100,000] |
0.85 (15% off) |
0.4 (60% off) |
Note: A lower value represents a larger discount. If your account already has a discount larger than the savings plan discount, the larger discount applies. The two discounts cannot be combined.
Offset rules
SMQ supports only the pay-as-you-go billing method. Fees are calculated every hour, and a bill is generated at an interval of 24 hours. After a bill is generated, the savings plan balance offsets fees first.
Offset formula:
Offset amount = Bill amount x Corresponding discount
Example 1: No existing discount
Assume you purchase a savings plan with a committed amount of USD 10,000. This falls in the (3,000, 100,000] tier, so the request fee discount is 0.85 (15% off) and the resource occupation fee discount is 0.4 (60% off).
|
Bill amount |
Discount |
Offset amount |
|
USD 1,000 for the request fee |
0.85 |
USD 1,000 x 0.85 = USD 850 |
|
USD 10 for the resource occupation fee |
0.4 |
USD 10 x 0.4 = USD 4 |
Remaining balance in the savings plan: USD 10,000 - USD 850 - USD 4 = USD 9,146.
Example 2: Existing 25% discount
Assume your account already has a 25% discount (0.75) and you purchase a savings plan with a committed amount of USD 10,000. For each fee type, the system applies whichever discount is larger, determined by the lower value.
|
Bill amount |
Discount applied |
Offset amount |
|
USD 1,000 for the request fee |
Existing discount: 0.75 (25% off). Savings plan: 0.85 (15% off). The existing discount is larger (lower value), so 0.75 applies. |
USD 1,000 x 0.75 = USD 750 |
|
USD 10 for the resource occupation fee |
Savings plan: 0.4 (60% off). Existing discount: 0.75 (25% off). The savings plan discount is larger (lower value), so 0.4 applies. |
USD 10 x 0.4 = USD 4 |
Remaining balance in the savings plan: USD 10,000 - USD 750 - USD 4 = USD 9,246.
Calculate committed consumption amount
Use the following formula to determine the appropriate committed amount before purchase:
Z = X x Discount on request fee + Y x Discount on resource occupation fee
Where:
-
X = estimated total request fee (USD)
-
Y = estimated total resource occupation fee (USD)
-
Z = committed consumption amount (USD)
Calculate Z for each of the three discount tiers. Select the Z value that falls within its corresponding tier interval.
Calculation example
Assume your estimated request fee is USD 1,000 and your estimated resource occupation fee is USD 10.
|
Committed consumption amount (USD) |
Discount on topic or queue request fee |
Discount on topic or queue resource occupation fee |
Z value |
Result |
|
[10, 800] |
0.95 |
0.8 |
Z1 = USD 1,000 x 0.95 + USD 10 x 0.8 = USD 958 |
Does not fall in [10, 800]. |
|
(800, 3,000] |
0.9 |
0.6 |
Z2 = USD 1,000 x 0.9 + USD 10 x 0.6 = USD 906 |
Falls in (800, 3,000]. Select this value. |
|
(3,000, 100,000] |
0.85 |
0.4 |
Z3 = USD 1,000 x 0.85 + USD 10 x 0.4 = USD 854 |
Does not fall in (3,000, 100,000]. |
The appropriate committed consumption amount is USD 906.