A savings plan is a discount plan that provides savings over pay-as-you-go rates in exchange for a commitment to use a consistent amount of resources for a specific period of time.
Service purchase
Billing rules
Item | Description |
Billing method | Subscription. You need to pay the full amount when you purchase a savings plan. |
Committed consumption amount |
|
Subscription duration | The validity period of a savings plan. Savings plans provide discounted pay-as-you-go rates in exchange for committing to a specific spending amount within the validity period. Only 1 year is supported. For example, you purchased a one-year savings plan at 13:45:00 of October 29, 2024. The savings plan takes effect at 13:00:00 of October 29, 2024 and expires at 13:00:00 of October 29, 2025. |
Unsubscription | Not supported. Select a committed consumption amount based on your business requirements. For more information about how to calculate the amount, see the Calculate committed consumption amount section of this topic. |
Discounts
If the existing discount in your account is larger than the discount that is provided by the savings plan, the quota that is used to offset fees is calculated based on the larger discount. The two discounts cannot be combined for use at the same time.
Committed consumption amount (USD) | Discount on topic or queue request fee | Discount on topic or queue resource occupation fee |
[10, 800] | 0.95 | 0.8 |
(800, 3,000] | 0.9 | 0.6 |
(3,000, 100,000] | 0.85 | 0.4 |
Offset rules
When you use SMQ resources, you can enjoy discounts on different billable items based on the committed consumption amount included in the savings plan that you have purchased. 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, fees are offset by the purchased savings plan first. Offset amount = Bill amount × Corresponding discount.
Example 1: You do not receive a discount before you purchase a savings plan.
For example, if you purchase a savings plan with a quota of USD 10,000, a discount of 15% off is provided for the request fee and 60% off for the resource occupation fee.
Bill amount | Discount | Offset amount |
USD 1,000 charged for the request fee | 0.85 | USD 1,000 × 0.85 = USD 850 |
USD 10 charged for the resource occupation fee | 0.4 | USD 10 × 0.4 = USD 4 |
In this case, USD 9,146 is left in the savings plan, which is calculated by using the following formula: USD 10,000 - USD 850 - USD 4 = USD 9,146.
Example 2: You have received a discount before you purchase a savings plan.
For example, if your account has already enjoyed a discount of 25% off before you purchase a savings plan and you purchase a savings plan with a quota of USD 10,000, a discount of 15% off is provided for the request fee and 60% off for the resource occupation fee. In this case, the larger discount is used.
Bill amount | Discount | Offset amount |
USD 1,000 charged for the request fee | Compare the existing discount in your account, which is 25% off, and the discount provided by the savings plan, which is 15% off, and then apply the larger discount, 25% off. | USD 1,000 × 0.75 = USD 750 |
USD 10 charged for the resource occupation fee | Compare the existing discount in your account, which is 25% off, and the discount provided by the savings plan, which is 60% off, and then apply the larger discount, 60% off. | USD 10 × 0.4 = USD 4 |
In this case, USD 9,246 is left in the savings plan, which is calculated by using the following formula: USD 10,000 - USD 750 - USD 4 = USD 9,246.
Calculate committed consumption amount
For example, if the request fee is USD X, the resource occupation fee is USD Y, and the committed consumption amount is USD Z, the committed consumption amount is calculated based on the following formula: Z = X × Discount on request fee + Y × Discount on resource occupation fee.
Multiply X and Y by discounts of three different tiers to calculate three different values of Z, and select the Z value that falls into the corresponding amount interval as the quota of committed consumption amount that you can purchase.
For example, if your request fee is estimated to be USD 1,000 and the resource occupation fee is estimated to be USD 10, you can calculate the Z value to obtain an appropriate committed consumption amount.
Committed consumption amount (USD) | Discount on topic or queue request fee | Discount on topic or queue resource occupation fee | Z value |
[10, 800] | 0.95 | 0.8 | Z1 = USD 1,000 × 0.95 + USD 10 × 0.8 = USD 958 Z1 does not fall into the [10, 800] interval. |
(800, 3,000] | 0.9 | 0.6 | Z2 = USD 1,000 × 0.9 + USD 10 × 0.6 = USD 906 Z2 falls into the (800, 3,000] interval and can be selected as an appropriate committed consumption amount. |
(3,000, 100,000] | 0.85 | 0.4 | Z3 = USD 1,000 × 0.85 + USD 10 × 0.4 = USD 854 Z3 does not fall into the (3,000, 100,000] interval. |
Therefore, if the request fee is estimated to be USD 1,000 and the resource occupation fee is estimated to be USD 10, the appropriate committed consumption amount is estimated to be USD 906.