Azure Functions
Overview:
Business processes which modeled into the software are called as workflows Azure have four different technologies to build and implement the workflows,
1) Logic App
2) Microsoft Power Automate
3) WebJobs
4) Azure Functions
These four workflows have some similarities as listed below,
Inputs: An input is a piece of data or file passed to the workflow.
Action: Simple operation that workflow executes or does some modification and performs some other action.
Condition: Condition mostly executed against the input which decides what action to perform.
Output: An output is again a piece of data of file created by the workflow.
These listed workflows divided into two types design first technologies and code first technologies.
1) Design first technology: Logic app, Microsoft power automate
2) Code first technology: Webjobs, Azure Functions
Which workflow to select is totally depends on the use case and problem on which you are working but the important point to note here is design first approach is used when the business analyst is defining and working on the workflow and code first approach is used when the developer is working on workflow.
Introduction:
Azure function is a solution for easily running small pieces of code, or ‘functions’ in the cloud. You can write just the code you need for the problem at hand without worrying about the whole application or infrastructure to run it. So there may be a question on how the written code will be executing and the answer is serverless computing. Microsoft Azure function acts as modern serverless architecture delivering event-driven cloud computing. This way function as a service becomes a common term for serverless and eliminates infrastructure consideration for developers, of course, servers are there but the user doesn’t have to bother about managing and provisioning them.
Key features of azure function:
1) Multiple language support-: C# (.net or .net core), java, Python, JavaScript, F#, Powershell
2) Pay per use model
3) You can bring your own dependencies (using npm or NuGet)
4) Integrated security
5) Simplified integration
6) Flexible development (you can develop using the portal, visual studio code or any other tool)
7) Open Source
How the Function App Works?
You need to trigger to run a piece of code which further produces some output.
Trigger -> Code -> Output
Example:
You can trigger the code whenever the file is available in blob storage process that file and store in another blob.
Blob Storage -> trigger -> code -> output -> blob storage
Let’s look into example to build the http trigger,
Step 1: Go to Azure Portal -> All Services -> Function App -> Create Function app
Step 2: Select HttpTrigger Template option while creating new function app
Step 3: Test Created Function app
Thank You, See you in the next article !!
You can reach out to me here,
LinkedIn: https://www.linkedin.com/in/vaibhav-bhapkar
Email: vaibhavbhapkar.medium@gmail.com