A-204 Flashcards
What is an azure function
Serverless solution that allows you to write less code, maintain less infrastructure and save on costs.
what is the difference between azure functions and azure logic apps
azure functions: serverless compute
azure logic apps: serverless workflow integration platform
what is orchestration
Orchestration is a collection of functions or steps, called actions in Logic Apps, that are executed to accomplish a complex task
how you develop orchestration for azure functions?
By writing code and using the Durable Function Extension
how you develop orchestration for azure logic apps?
you create orchestration by using a GUI or editing configuration files.
what are durable functions?
Durable functions are an extension of Azure functions that lets you write stateful functions in a serverless compute environment. Behind the scenes, the extension manages state, checkpoints and restarts for you, allowing you to focus on your business logic.
How does durable functions allow you to define stateful workflows and stateful entities?
The extension lets you define stateful workflows by writing orchestrator functions and stateful entities by writing entity functions.
what hosting plans are available for functions in azure?
- Consumption plan
- premium plan
- dedicated (app service)
What are the benefits of a consumption plan?
- Default.
- Scales automatically
- only pay for compute when functions are running
- Instances are dynamically added and removed based on the number of incoming events.
what are the benefits of the premium plan?
- automatically scales based on demand (no delays)
- runs on more powerful instances
- connects to virtual networks
What are the benefits from the dedicated plan?
- Run within an App Service plan at regular app service plan rates.
- Best for long-running scenarios where durable functions cant be used
Maximum scale out instances
A single function app only scales out to a maximum of 200 instances. A single instance may process more than one message or request at a time though, so there isn’t a set limit on number f concurrent executions.
New instance rate
For HTTP triggers, new instances are allocated, at most, once per second. For non-HTTP triggers, new instances are allocated, at most, once every 30 seconds.
What are the two important pieces that a function contains?
- your code, which can be written in various languages,
- some config, the function.json file.
For compiled languages, this config file is generated automatically from annotations in your code. For scripting languages, you must provide the config file yourself.
What does the fucntion.json configuration file defines?
- function’s triggers
- function’s binding
- other configuration settings