### FaaS Functions as a service is another compute platform for [[Serverless Architecture]]s where you run your functions (single unit of deployment of your code) called by events (user actions). FaaS lets developers execute small pieces of code in the cloud and on stateless containers ([[Containerize]]) which do their job and then disappear. Compared to alternatives like IaaS (Infrastructure as a Service) or PaaS (Platform as a Service), FaaS provides a more granular, event-driven, and resource-efficient approach, which can be advantageous for applications built using microservices architecture . **Attributes:** - Encourages Event Driven Architecture (EDA) - Good for microservices architecture - Pros: No idle time (you pay for execution), auto scaling, fastest time-to-market, polyglot environment (support multiple languages), highly available. - drawbacks include: app failure due to timeouts **Examples:** - [[AWS Lambda]] - [[Google Cloud Functions]] - [[Azure Functions]] - [[Vercel]] - [[Netlify]]