Serverless Applications Flashcards
Benefits of Azure Functions
- Use preferred language
- Automate deployments
- Troubleshoot issues with monitoring and testing tools
- Flexible pricing options (Consumption and App Plans)
- Additional => Integration with Application Insights
- No infrasture to manage
- Auto Scaling
What are Azure Functions?
- Is a cloud-based compute service. Functions provide event-driven and scalable serverless for Azure. In some cases, you only get billed for the time your function runs
- Can respond to events or time-based
Examples of trigger types
- HTTP
- Storage events
- Events (Event hub etc)
- Queue messages
What are bindings?
- Allow you to bind data to your app function or send data to.
What are the two binding types?
Input
Output
Features of Azure Functions
- Flexible Pricing Plans
- Scalability
- Event based architecture
Contrast the pricing options in Azure Functions
Consumption
* True serverless option
* Auto scaling
Premium
* Good for functions that are long running
* Functions are kept initialized
* Can scale faster
* Best for underutilized App Service Plans
Dedicated
* Scale based on load and will scale down automatically
All functions in a Function App share the same resources and connections?
True
Identity the Key Components of Azure Functions
- Function Triggers
- Function Bindings
- Function Runtime
- API Management
- Deployment Slots
- Function App Configurations
Briefly explain Function Triggers?
- Only one trigger per Function App
- Triggers start the Function App to execute
- Triggers define HOW and Function App is invoked
Briefly explain Function Bindings
Allow data to be bound to the App Functions for both inputs and outputs. Input bindings can be access via parameters to the function call.
You can also use client libraries to access data if you don’t want to use bindings.
You can have 0, 1, or more bindings.
Briefly explain Function Runtimes
Azure Functions allow for various programming languages to implement your function. Besides C#, there is Node.js, JAVA, and Python.
Briefly explain API Management in Azure Functions
AIPM Managment service provides security and routing to your App Functions’ API as a way to expose them as TRUE REST endpoints.
Briefly explain Deployment Slots in Azure Functions
Deployment slots are additional instances with it’s own endpoint that can be used to test new versions of your function app and can easily be swap to production
Briefly explain App Function Configurations
Each function app will have it’s own configuration parameters such as connection strings as well as any variables that can be accessed by environment variables.