What is serverless computing

DevOpsNinjaHub
2 min readFeb 16, 2024

Serverless computing is a cloud computing model where cloud providers dynamically manage the allocation and provisioning of servers to execute code in response to events or requests. In a serverless architecture, developers write and deploy code in the form of functions (also known as serverless functions or lambda functions) without needing to manage the underlying infrastructure.

Key characteristics of serverless computing include:

  1. Event-driven execution: Serverless functions are triggered by events, such as HTTP requests, database changes, file uploads, or scheduled events. The cloud provider automatically scales the execution environment up or down based on the number of incoming events.
  2. Pay-per-use pricing: With serverless computing, users are charged based on the actual resources consumed by their functions, typically measured in terms of memory usage and execution time. Users are not charged for idle resources, which makes serverless computing cost-effective for workloads with unpredictable or sporadic traffic patterns.
  3. Automatic scaling: Cloud providers handle the scaling of serverless functions automatically, provisioning resources as needed to handle incoming requests or events. This eliminates the need for capacity planning and allows applications to scale seamlessly without manual intervention.
  4. Statelessness: Serverless functions are designed to be stateless, meaning they do not maintain any persistent state between invocations. Any required state…

--

--