Cloud Computing 9 min read

How Reserved Instances and Idle Billing Slash Serverless Costs by 30%

This article walks through a developer's journey from traditional and Kubernetes architectures to Alibaba Cloud Function Compute, explaining how reserved instances, pre‑warming, and the new idle‑billing feature together deliver high elasticity, zero‑maintenance operation, and up to 30% cost reduction for latency‑sensitive online services.

Alibaba Cloud Developer
Alibaba Cloud Developer
Alibaba Cloud Developer
How Reserved Instances and Idle Billing Slash Serverless Costs by 30%

Technical Selection Scenario

Wang, a programmer managing on‑premise servers, faces high operational overhead and idle capacity costs. For two new online applications with strict latency, variable traffic, clear low‑traffic periods, and long startup times, he seeks a cloud solution that offers high elasticity, low cost, and minimal ops effort.

Three Architecture Options

Traditional : SLB + ECS + Auto Scaling requires manual load balancer setup, scaling policy tuning, and custom logging/monitoring, resulting in considerable deployment and maintenance effort.

Kubernetes : Offers Services, Ingress, and HPA for scaling, but HPA reacts on a minute‑scale, causing delayed scaling during traffic spikes; also demands extensive knowledge and ongoing ops for logging and monitoring.

Function Compute (FC) : Provides pre‑reserved mode with rapid auto‑scaling, built‑in HTTP triggers, comprehensive observability, and pay‑per‑use billing (no charge when idle), addressing all three of Wang’s requirements.

Reserved Mode and Cold‑Start Mitigation

FC supports both pay‑as‑you‑go and reserved modes. In reserved mode, a configured number of instances stay warm, eliminating cold‑start latency for long‑startup applications. When reserved instances are fully utilized, additional on‑demand instances are provisioned.

Idle Billing – The Cost‑Saving Weapon

Idle billing distinguishes between active and idle reserved instances, charging only 20% of the normal rate for idle CPU. This reduces costs by about 32% when utilization is 60% (e.g., 0.68 × original cost).

Enabling idle billing freezes CPU on idle instances, ensuring they only consume resources when handling requests.

Configuration Methods

Users can configure reserved instances and idle billing via the FC console’s Elastic Management page or through SDKs (Java, Go, Node.js) using the provided API.

Conclusion

Function Compute delivers a fully managed, high‑elasticity, low‑maintenance, and cost‑effective solution. The new idle‑billing feature further lowers expenses by charging only for truly used resources, reinforcing serverless as a powerful option for modern cloud workloads.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Serverlesselastic scalingreserved instancesIdle Billing
Alibaba Cloud Developer
Written by

Alibaba Cloud Developer

Alibaba's official tech channel, featuring all of its technology innovations.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.