Azure Functions - Serverless Compute

Rating: 5
  
 
10260
  1. Share:
Microsoft Azure Articles

Microsoft Azure is an open, flexible and enterprise-grade cloud offering of a computing platform for various ranges of customers. It is a growing collection of cloud services for building, deploying and testing your applications. It also provides you with the freedom to build and deploy your applications wherever you want on the Azure cloud for your usage.

If you would like to become a Microsoft Azure certified professional, then visit Mindmajix - A Global online training platform: “Azure Certification Course”  This course will help you to achieve excellence in this domain.

Azure Functions

Azure Functions

Before understanding what Azure Functions are, we will try to clear the confusion around the terms that frequently roundabout in the Cloud space which aren’t that cloudy though.

  • IaaS (Infrastructure as a Service) – It is the provision of Virtual Machines and related infrastructure on demand.

  • PaaS (Platform as a Service)       – You develop your applications and deploy it on a platform where you are not really bothered about the Virtual Machines on which they are deployed. We pay for the service users and pretend not to worry about it as it is covered by Microsoft Azure’s offerings.

  • SaaS (Software as a Service)        – Softwares like Microsoft Office 365 and the like, you pay a specific subscription and use the service to whatever time your subscription is alive.

With the necessary background on what various kinds of services are available on the Cloud platform, let us discuss a little bit on the “Serverless Computing”.

By name, it is very evident that few would be considering that there is no Server used for the required computing – to break the jinx, it is just that the Server exists but we don’t bother about it (as it is part of PaaS offering from Microsoft Azure).

With the required information on the Cloud services provided and also having a good understanding of what “Serverless Computing” is, it is the exact time for us to explore Microsoft Azure Functions.

To put forward, Microsoft Azure Functions are an event-driven, on-demand computation experience that builds on the Azure’s best offering (PaaS platform).

Azure Function is an extension of the already available WebJobs infrastructure to enable you implementing code from a variety of choices of programming languages that act on the events generated by the Azure services.

Microsoft Azure Tutorials

 

Building your own Azure Functions (in JavaScript, C#, Python or PHP) is as easy as building a codebase using Azure provided intuitive browser-based UI to events provided by Table Storage, Azure Queues, Service Bus, Events Hubs, and all the underlying Azure-based SaaS or PaaS offerings).

This is the same when we use any of the other options available that compete with Azure offerings like the Amazon Lambda (just like Azure Functions) which allows you to upload some code and no time later, it starts running.

Alongside that, you can have configured continuous Jenkins jobs, functions that can run on any of the triggered events, etc.

If you want to try your hands on Azure Functions then you just can create a new account for yourself at the Azure site and create a new function.

Azure Functions - Guidance For Developing

In the earlier section, what we have seen is the basic introduction to Azure Functions.

Timer-based processing:

Azure Functions provides support to events based on a timer using a Cron job syntax. For example, to execute code which runs every 60 minutes to clean up an audit table based on custom business requirements.

→ Preparing for Azure Interview? Here’s Mindmajix's Azure Interview Questions and Answers

Azure Functions Timer Based Processing:

Azure Functions provides its support in triggering an event based on any activity that starts from an underlying Azure service. For example, execute a serverless code that reads all the newly created test log files in an Azure Blob storage container and transforms these records into a row, inserts into an Azure SQL Database table.

SaaS Event Processing:

Azure Functions provides support in triggering events based on activity in a SaaS service (just like any other underlying Azure service). For example, to save an excel file in OneDrive, this triggers a function that invokes a Microsoft Graph API to modify the spreadsheet and then to create an additional chart.

 MindMajix YouTube Channel

Serverless Web Application Architectures:

Azure Functions has its ability, capability to power a single-page app. The app that we create using AngularJS or NodeJS calls Azure Functions using the WebHook URL to save the user data and decides what to display. Or, do simpler customizations, such as targeted ads by calling a function and passing the user profile information to it.

Also Read : Azure Logic Apps - The Lego Bricks to Serverless Architechture

Real-Time Stream Processing:

For example, the Internet of Things (IoT) devices sends messages to Azure Stream Analytics, which then calls an Azure Function to transform the message. This function processes the data and creates a new record in an Azure SQL database.

Real-Time Bot Messaging:

We can use Azure Functions to customize any specific behavior of a bot using a WebHook URL. For example, we can create an Azure Function that processes a message using the Cortana Analytics and calls this function using the Microsoft Bot Framework.

[Also Read: Azure Arc]

Conclusion:

In this article, we have introduced the readers to Microsoft Azure and then with the necessary background also discussed in detail about Azure Functions. We have also listed out some of the things that can be easily done using Azure Functions. Hope the article is crisp and clear in providing the required information about Azure Functions.

If you are interested to learn Azure and build a career in Cloud Computing? Then check out our Microsoft Azure Certification Training Course at your near Cities

Microsoft Azure Course BangaloreMicrosoft Azure Course HyderabadMicrosoft Azure Course PuneMicrosoft Azure Course DelhiMicrosoft Azure Course ChennaiMicrosoft Azure Course NewyorkMicrosoft Azure Course WashingtonMicrosoft Azure Course DallasMicrosoft Azure Course Maryland, Microsoft Azure Training VirginaMicrosoft Azure Training Pennsylveina

These courses are incorporated with Live instructor-led training, Industry Use cases, and hands-on live projects. This training program will make you an expert in Microsoft Azure and help you to achieve your dream job.

Explore Microsoft Azure Sample Resumes! Download & Edit, Get Noticed by Employers!Download Now!
 

 

Join our newsletter
inbox

Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!

Course Schedule
NameDates
Azure TrainingMar 23 to Apr 07View Details
Azure TrainingMar 26 to Apr 10View Details
Azure TrainingMar 30 to Apr 14View Details
Azure TrainingApr 02 to Apr 17View Details
Last updated: 03 Apr 2023
About Author

Anji Velagana is working as a Digital Marketing Analyst and Content Contributor for Mindmajix. He writes about various platforms like Servicenow, Business analysis,  Performance testing, Mulesoft, Oracle Exadata, Azure, and few other courses. Contact him via anjivelagana@gmail.com and LinkedIn.

read more
Recommended Courses

1 / 15