Function Compute offers a variety of billing methods, competitive pricing, and fine-grained resource usage monitoring. These features can help you manage resources for serverless applications and reduce resource costs.
Billing methods for Function Compute
Applications have different types of load and require different resource configurations and levels of scalability. Function Compute supports the following billing methods: subscription and pay-as-you-go. You can choose appropriate billing methods to minimize costs in different scenarios.
Choose a suitable billing method for your application
Choose a billing method that fits how your application uses resources. For example, if your online application in the production environment is latency-sensitive, you must reserve resources to ensure low latency for the application. In this case, you can use the subscription billing method to reduce costs. In contrast, tests and offline data processing tasks are latency-insensitive but require high throughput. If a large number of tasks must be complete within a specified amount of time, a large amount of resources is temporarily required. In this case, you can use the pay-as-you-go billing method to achieve a balance between resource utilization and costs.
Release idle reserved resources
Function Compute provides fine-grained and multi-dimensional information about resource usage. You can view the information about reserved resources and consumed resources for each function. To reduce costs, you can release idle reserved resources.
Shift loads and reduce bursts
Use resources during off-peak hours
Some tasks such as regression tests can be run with flexible timelines. You can run these tasks during off-peak hours. For example, you can run regression tests between 21:00 of the current day and 09:00 of the next day. Function Compute provides triggers for you to run your tasks at scheduled points in time. This way, you can use subscription resources to run tasks at a low cost.