Cloud Cron: Using Function as a Service to Control Costs

F5 Ecosystem | February 11, 2019

Function as a Service (FaaS) is quickly finding use in a variety of operational and development contexts.

While the rising star of cloud computing is often mentioned in conjunction with APIs and IoT and mobile apps, there is significant use outside development for the technology. In the "Guide to Serverless" report from The New Stack, we find that the technical use cases for serverless span a robust set of uses:

Technical Use Cases for Serverless

  • 73% HTTP REST APIs and web apps
  • 68% Batch jobs or scheduled tasks
  • 60% Business logic
  • 34% Continuous integration pipeline

As expected, applications rule the roost with nearly three-quarters of respondents making use of serverless for REST APIs and web applications. But after that it gets more interesting. Batch jobs and scheduled tasks, as well as the nebulous "business logic" still garner greater than half of respondents' use cases.

Falling into the "scheduled tasks" arena is the use of cloud functions to manage cloud assets. One of the capabilities cloud and containers give enterprises is the means to optimize the use of resources. Usually we think of this in terms of scalability - especially when paired with containers and microservices. By only scaling those pieces of an application that require scaling, you save compute resources (and therefore costs).

But the other side of that equation is the ability to shut down resources when they aren't in use. The appeal, in part, of function as a service and serverless (no, they aren't the same thing necessarily) is the true utility pricing model. You really do only pay for what you use. Because ideally there are no idle resources in a serverless/FaaS environment, you aren't paying for them. In the cloud, however, you may be paying for idle resources at the same cost as if those resources were executing some app or service. It's a minor nit, but one that can add up if you have a lot of downtime for an application.

Here's where cloud functions can help. By taking advantage of the function as a service capabilities of the cloud you're running in, you can schedule a task to shut down instances when they aren't in use and restart them later. This assumes a fairly static schedule, like an application that's only used during a well-defined workday. Such applications are often traditional "business" applications that are used by employees but only during the day - and the work week. Shutting down the instances that comprise a business app on the weekend can save considerable costs over time.

Using your cloud provider's function as a service offering may provide you a route to cutting the cost of keeping those applications "warm" overnight and during the weekend. Even if you're looking at a twelve-hour work day, you could cut your costs in half by shutting them down during the other twelve hours.

If you're curious about how to go about implementing what sounds to me like a cloudy version of cron, check out these resources:

Share
Tags: 2019

About the Author

Related Blog Posts

F5 accelerates and secures AI inference at scale with NVIDIA Cloud Partner reference architecture
F5 Ecosystem | 10/28/2025

F5 accelerates and secures AI inference at scale with NVIDIA Cloud Partner reference architecture

F5’s inclusion within the NVIDIA Cloud Partner (NCP) reference architecture enables secure, high-performance AI infrastructure that scales efficiently to support advanced AI workloads.

F5 Silverline Mitigates Record-Breaking DDoS Attacks
F5 Ecosystem | 08/26/2021

F5 Silverline Mitigates Record-Breaking DDoS Attacks

Malicious attacks are increasing in scale and complexity, threatening to overwhelm and breach the internal resources of businesses globally. Often, these attacks combine high-volume traffic with stealthy, low-and-slow, application-targeted attack techniques, powered by either automated botnets or human-driven tools.

F5 Silverline: Our Data Centers are your Data Centers
F5 Ecosystem | 06/22/2021

F5 Silverline: Our Data Centers are your Data Centers

Customers count on F5 Silverline Managed Security Services to secure their digital assets, and in order for us to deliver a highly dependable service at global scale we host our infrastructure in the most reliable and well-connected locations in the world. And when F5 needs reliable and well-connected locations, we turn to Equinix, a leading provider of digital infrastructure.

Volterra and the Power of the Distributed Cloud (Video)
F5 Ecosystem | 04/15/2021

Volterra and the Power of the Distributed Cloud (Video)

How can organizations fully harness the power of multi-cloud and edge computing? VPs Mark Weiner and James Feger join the DevCentral team for a video discussion on how F5 and Volterra can help.

Phishing Attacks Soar 220% During COVID-19 Peak as Cybercriminal Opportunism Intensifies
F5 Ecosystem | 12/08/2020

Phishing Attacks Soar 220% During COVID-19 Peak as Cybercriminal Opportunism Intensifies

David Warburton, author of the F5 Labs 2020 Phishing and Fraud Report, describes how fraudsters are adapting to the pandemic and maps out the trends ahead in this video, with summary comments.

The Internet of (Increasingly Scary) Things
F5 Ecosystem | 12/16/2015

The Internet of (Increasingly Scary) Things

There is a lot of FUD (Fear, Uncertainty, and Doubt) that gets attached to any emerging technology trend, particularly when it involves vast legions of consumers eager to participate. And while it’s easy enough to shrug off the paranoia that bots...

Deliver and Secure Every App
F5 application delivery and security solutions are built to ensure that every app and API deployed anywhere is fast, available, and secure. Learn how we can partner to deliver exceptional experiences every time.
Connect With Us
Cloud Cron: Using Function as a Service to Control Costs | F5