2.2.6 Describe Azure Functions
Description of Azure functions.
Azure functions is an event-driven, serverless compute option. With Functions, an event wakes the Function, alleviating the need to keep resources provisioned when there are no events.
Benefits of Azure Functions
Commonly used when you are working in response to an event (often via a REST request) timer, or message from another Azure service, and when that work can be completed within seconds or less. Functions scale automatically based on demand.
Azure Functions run code when triggered, and automatically deallocated resources when complete. Azure only charges you for CPU time used while your function runs. Functions can be stateless or stateful:
Stateless (Default): behave as if they restart each time they respond to an event.
Stateful (Durable Function): context is passed to function to track prior activity