Serverless Computing
A Modern Approach to Application Development
Serverless computing is an application development and execution model that allows developers to build and run application code without having to manage the underlying servers or back-end infrastructure. While the term “serverless” might suggest a lack of servers, it actually means that the cloud service provider (CSP) manages the servers, making them invisible to the developer. This approach enables developers to focus on writing the best front-end application code and business logic without worrying about server maintenance, provisioning, or scaling.
How Serverless Computing Works
In a serverless computing model, developers write their application code and deploy it to containers managed by a CSP. The cloud provider handles all the necessary infrastructure to run the code, scaling resources up and down based on demand. This includes routine tasks like operating system updates, security management, capacity planning, and system monitoring.
Key Benefits of Serverless Computing
- Focus on Code: Developers can concentrate on writing application code and business logic without worrying about server management.
- Automatic Scaling: The cloud provider automatically scales the infrastructure based on demand, ensuring optimal performance and cost-efficiency.
- Cost Efficiency: Developers only pay for the compute resources used during code execution. When the code is not running, there are no charges, a concept known as “scaling to zero.”
Examples of Serverless Computing Platforms
Several leading cloud service providers offer serverless platforms, including:
- Amazon Web Services (AWS Lambda): Allows developers to run code in response to events without provisioning servers.
- Microsoft Azure (Azure Functions): Provides an event-driven, compute-on-demand experience.
- Google Cloud (Google Cloud Functions): Enables the execution of code in response to cloud events.
- IBM Cloud (IBM Cloud Code Engine): Offers serverless compute for containerized workloads.
Get Deshan Senarathna’s stories in your inbox
Join Medium for free to get updates from this writer.
Practical Examples of Serverless Computing
Image Processing
Imagine you have a web application where users can upload images. You want to process these images (resize, apply filters, etc.) before storing them. Using serverless computing, you can write a function to handle the image processing and deploy it to a serverless platform like AWS Lambda.
- Develop the Function: Write the image processing code.
- Deploy to AWS Lambda: Deploy the function to AWS Lambda.
- Trigger the Function: Configure the function to trigger when an image is uploaded to an S3 bucket.
- Automatic Scaling: AWS Lambda automatically scales to handle any number of image uploads, processing each image as it arrives.
RESTful API
Suppose you’re building a RESTful API for a web application. Using serverless computing, you can deploy each API endpoint as a separate function.
- Develop API Functions: Write the functions for each endpoint (e.g., GET, POST, DELETE).
- Deploy to Google Cloud Functions: Deploy the functions to Google Cloud Functions.
- API Gateway: Use Google Cloud’s API Gateway to route requests to the appropriate functions.
- Cost Efficiency: You only pay for the execution time of each function, not for idle server time.
The Role of Serverless Computing in Cloud-Native Development
Serverless computing, along with microservices and containers, forms the core of cloud-native application development. Microservices break applications into small, independent services, while containers provide a consistent environment for these services. Serverless computing further enhances this model by removing the need to manage the underlying infrastructure.
Market Growth and Adoption
According to a report from SkyQuest Technology, the global serverless architecture market was valued at USD 8.01 billion in 2022 and is expected to grow to USD 50.86 billion by 2031.








