## Serverless Architecture Serverless architecture, often associated with [[BaaS]] and driven by events, enables developers to build applications without managing the underlying infrastructure, as this responsibility, along with server allocation and scaling, is handled by the cloud provider. Compared to alternatives like traditional server setups or Kubernetes, this requires less infrastructure management. Integrating serverless architecture can streamline the deployment and scaling of both frontend (e.g., [[React.js]]) and backend (e.g., [[Django]]) components of a web application, making the entire web development process more efficient and cost-effective. It's a misnomer used to describe servers in the cloud that requires zero configuration or maintenance from the developer. In a serverless model, developers write code that is triggered by specific events and then executed by cloud functions. Code structure: 1. 1 file per function, same name as function 2. function belongs in resful or reactive folder 3. split backend into resource groups ``` /project /functions payments reactive resful users ... ```