SlideShare a Scribd company logo
Build efficient and scalable
applications using Azure Functions
About Mayur
• Technology Solutions Professional
• App Innovation, Global Black Belt
• Program Manager | Xamarin Developer Evangelist
Mobile Dev Tools: Azure + Xamarin
• Microsoft MVP (Alumni)
Windows Phone Dev
Windows Platform Dev
Visual Studio Technologies
• Microsoft Student Partner (Alumni)
• Xamarin Certified Mobile Developer
• Blog: mayurtendulkar.com | blog.xamarin.com
• Twitter: @mayur_tendulkar
© Microsoft Corporation
The “evolution” of
application platforms
On-Premises
IaaSOn-Premises
ManagedIaaSOn-Premises
ManagedIaaSOn-Premises Serverless
PaaS
© Microsoft Corporation
Let’s talk Serverless
© Microsoft Corporation
What are the benefits?
Azure
best cloud for serverless
Azure serverless application platform
© Microsoft Corporation
The Use Case
© Microsoft Corporation
Serverless is good for…
Web application backends
Mobile application backends
IoT-connected backends
Real-time file processing
Real-time stream processing
Automation of scheduled tasks
Extending SaaS Applications
Conversational bot processing
© Microsoft Corporation
Web application backends
Request made
in a web app
Request queued
in Service Bus
A function processes the
request…
..sends output to
Cosmos DB
Retail
Online orders are picked up from a queue, processed and
the resulting data is stored in a database
Scenario Example: Retail
© Microsoft Corporation
Mobile application backends
Call processed by
a function
Output data stored
in Cosmos DB
Data transfer
triggers second
function…
…which sends
notifications using
Notifications Hub
HTTP API call
from a mobile app
Scenario Example
Financial Services
Colleagues use mobile
banking to reimburse
each other for lunch:
the person who paid
for lunch requests
payment through his
mobile app, triggering
a notification on his
colleagues’ phones.
Colleagues use mobile banking to reimburse each other for lunch: the
person who paid for lunch requests payment through his mobile app,
triggering a notification on his colleagues’ phones.
Scenario Example: Final Services
© Microsoft Corporation
IoT-connected backends
Scenario Example
Financial Services
Colleagues use mobile
banking to reimburse
each other for lunch:
the person who paid
for lunch requests
payment through his
mobile app, triggering
a notification on his
colleagues’ phones.
A manufacturing company uses IoT to monitor its machines. Functions detects anomalous data
and triggers a message to Service department when repair is required.
Scenario Example: Manufacturing
Connected IoT devices
producing data
Data sent to
IoT Hub
Data with special
condition routed to
a function
A function
processes
message...
..which invokes
Zendesk…
…and calls Logic
Apps
…to request
device repair
© Microsoft Corporation
Conversational bot processing
Scenario Example
Financial Services
Colleagues use mobile
banking to reimburse
each other for lunch:
the person who paid
for lunch requests
payment through his
mobile app, triggering
a notification on his
colleagues’ phones.
Customer asks for available vacation accommodations on her smartphone. A serverless bot
deciphers the request and returns vacation options.
Scenario Example: Hospitality
User request through
conversational
interface
Bot running in a function
deciphers request using
language understanding
Another function
processes the request
…and sends response to
original requester
? ? ?
© Microsoft Corporation
Real-time file processing
Scenario Example
Financial Services
Colleagues use mobile
banking to reimburse
each other for lunch:
the person who paid
for lunch requests
payment through his
mobile app, triggering
a notification on his
colleagues’ phones.
Patient records are securely uploaded as PDF files. That data is then decomposed, processed
using OCR detection, and added to a database for easy queries.
Scenario Example: Healthcare
Structured data from file
sent to SQL DB
PDF file added to Blob
Storage
A function decomposes
PDF file…
…and sends it to
Cognitive Services for
OCR detection
© Microsoft Corporation
Real-time stream processing
Scenario Example
Financial Services
Colleagues use mobile
banking to reimburse
each other for lunch:
the person who paid
for lunch requests
payment through his
mobile app, triggering
a notification on his
colleagues’ phones.
Huge amounts of telemetry data is collected from a massive cloud app. That data is processed
in near real-time and stored in a DB for use in an analytics dashboard.
Scenario Example: ISV
App or device
producing data
Event Hubs ingests
telemetry data
…and sends it to
Cosmos DB
A function processes
the data…
Data used for dashboard
visualizations
© Microsoft Corporation
Automation of scheduled tasks
Scenario Example
Financial Services
Colleagues use mobile
banking to reimburse
each other for lunch:
the person who paid
for lunch requests
payment through his
mobile app, triggering
a notification on his
colleagues’ phones.
A customer database is analyzed for duplicate entries every 15 minutes, to avoid multiple
communications being sent out to same customers.
Scenario Example: Financial Services
A function cleans a database
every 15 minutes…
…deduplicating entries
based on business logic
© Microsoft Corporation
Extending SaaS Applications
Scenario Example
Financial Services
Colleagues use mobile
banking to reimburse
each other for lunch:
the person who paid
for lunch requests
payment through his
mobile app, triggering
a notification on his
colleagues’ phones.
A SaaS solution provides extensibility through webhooks, which can be implemented through
Functions, to automate certain workflows
Scenario Example: Professional Services
Issue created in
GitHub…
…which is
processed by a
function…
…by posting the
issue details to
Slack
…which triggers a
webhook call
© Microsoft Corporation
Tech Use Case Details
Build efficient and scalable applications using azure functions
Build efficient and scalable applications using azure functions
Local
debugging
Build efficient and scalable applications using azure functions
Build efficient and scalable applications using azure functions
Azure Functions is an open-source project
Functions runtime and all extensions are fully open source
https://github.com/Azure/Azure-Functions
© Microsoft Corporation
Demo
© Microsoft Corporation
• Avoid long running functions, write small functions
• Cross function communication
• Write stateless functions
• Be defensive
• Choose right hosting plan
Azure Functions : Best Practices
© Microsoft Corporation
• Avoid long running functions, write small functions
• Cross function communication
• Write stateless functions
• Be defensive
• Choose right hosting plan
Azure Functions : Best Practices
http://bit.ly/functions-best-practices
© Microsoft Corporation
• Azure Serverless Platform
• https://azure.microsoft.com/en-us/overview/serverless-computing/
• Build 2018 Session : Serverless in Action
• http://bit.ly/serverless-in-action
• Serverless ebook:
• http://bit.ly/serverless-ebook
Resources
Thank you!
It’s a Q&A time.
© Copyright Microsoft Corporation. All rights reserved.

More Related Content

PPT
Data Storage Innovation Conference: Whoever Owns the Data Owns the Customer
PDF
3 Computing Paradigms as Enablers of Smart Applications of The Future
PPT
Building Enterprise Ready Mobile Apps: A Developer Deep Dive
PDF
Artificial Intelligent: Intelligent Bot With Microsoft Bot Framework & Azure
PPTX
Monolens: Cloud-based printed character recognition system
PPTX
Things to think about while architecting azure solutions
DOC
Cloud computing charecteristics and types altanai bisht , 2nd year, part iii
DOC
Mayank_Gupta
Data Storage Innovation Conference: Whoever Owns the Data Owns the Customer
3 Computing Paradigms as Enablers of Smart Applications of The Future
Building Enterprise Ready Mobile Apps: A Developer Deep Dive
Artificial Intelligent: Intelligent Bot With Microsoft Bot Framework & Azure
Monolens: Cloud-based printed character recognition system
Things to think about while architecting azure solutions
Cloud computing charecteristics and types altanai bisht , 2nd year, part iii
Mayank_Gupta

What's hot (6)

PDF
SharePoint in the clouds, on earth, in the subway, and in a fruit salad (mang...
PPTX
IBM Bluemix Presentation.pptx
PPTX
Cloud computing
PPT
NC State Undergraduate Research and Creativity Symposium
PDF
The Significant role of event driven apps in software development
PPTX
Integration in the Enterprise Mobile World
SharePoint in the clouds, on earth, in the subway, and in a fruit salad (mang...
IBM Bluemix Presentation.pptx
Cloud computing
NC State Undergraduate Research and Creativity Symposium
The Significant role of event driven apps in software development
Integration in the Enterprise Mobile World
Ad

Similar to Build efficient and scalable applications using azure functions (20)

PPTX
Serverless design and adoption
PPTX
Azure Functions Real World Examples
PPTX
ServerLess by usama Azure fuctions.pptx
PPTX
Azure full
PPTX
Go Serverless with Cosmos DB, Azure Functions and Blazor
PDF
Working with data using Azure Functions.pdf
PPTX
Introduction to serverless compute with azure functions
PPTX
What's new for Serverless Computing in Azure
PPTX
From Zero to Serverless (CoderCruise 2018)
PPTX
Building microservices with azure functions
PPTX
slides.pptx
PPTX
Azure Functions & Serverless Computing
PPTX
Build with Serverless Applications with azure functions By usama wahab Khan
PDF
Download full ebook of Azure Functions With C Marto Torres instant download pdf
PPTX
From Zero to Serverless (DogFoodCon 2018)
PPTX
Azure functions: Build apps faster with serverless architecture (March 2018)
PPTX
From Zero to Serverless
PPTX
Serverless Application Development with Azure
PPTX
Scalable APIs with Azure Functions
PPTX
Serverless: The future of application delivery
Serverless design and adoption
Azure Functions Real World Examples
ServerLess by usama Azure fuctions.pptx
Azure full
Go Serverless with Cosmos DB, Azure Functions and Blazor
Working with data using Azure Functions.pdf
Introduction to serverless compute with azure functions
What's new for Serverless Computing in Azure
From Zero to Serverless (CoderCruise 2018)
Building microservices with azure functions
slides.pptx
Azure Functions & Serverless Computing
Build with Serverless Applications with azure functions By usama wahab Khan
Download full ebook of Azure Functions With C Marto Torres instant download pdf
From Zero to Serverless (DogFoodCon 2018)
Azure functions: Build apps faster with serverless architecture (March 2018)
From Zero to Serverless
Serverless Application Development with Azure
Scalable APIs with Azure Functions
Serverless: The future of application delivery
Ad

More from Mayur Tendulkar (9)

PPTX
Microsoft Innovation Summit
PPTX
Microsoft Graph: The API for Microsoft 365
PPTX
Microsoft Azure - The Best Platform for AI
PPTX
Mobile DevOps - Get faster release cycles & higher quality android & ios apps
PPTX
Adding Intelligence To Your Mobile Apps
PPTX
Developing Imaging Apps Using Nokia Imaging SDK v1.1
PPTX
Implementing Good Design
PPTX
Building Store Ready Application for Windows Phone
PPTX
Office 365 SharePoint Browser For Windows 8
Microsoft Innovation Summit
Microsoft Graph: The API for Microsoft 365
Microsoft Azure - The Best Platform for AI
Mobile DevOps - Get faster release cycles & higher quality android & ios apps
Adding Intelligence To Your Mobile Apps
Developing Imaging Apps Using Nokia Imaging SDK v1.1
Implementing Good Design
Building Store Ready Application for Windows Phone
Office 365 SharePoint Browser For Windows 8

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Electronic commerce courselecture one. Pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Machine learning based COVID-19 study performance prediction
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Programs and apps: productivity, graphics, security and other tools
Chapter 3 Spatial Domain Image Processing.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Electronic commerce courselecture one. Pdf
MYSQL Presentation for SQL database connectivity
Review of recent advances in non-invasive hemoglobin estimation
NewMind AI Weekly Chronicles - August'25 Week I
Machine learning based COVID-19 study performance prediction
Reach Out and Touch Someone: Haptics and Empathic Computing
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding

Build efficient and scalable applications using azure functions

  • 1. Build efficient and scalable applications using Azure Functions
  • 2. About Mayur • Technology Solutions Professional • App Innovation, Global Black Belt • Program Manager | Xamarin Developer Evangelist Mobile Dev Tools: Azure + Xamarin • Microsoft MVP (Alumni) Windows Phone Dev Windows Platform Dev Visual Studio Technologies • Microsoft Student Partner (Alumni) • Xamarin Certified Mobile Developer • Blog: mayurtendulkar.com | blog.xamarin.com • Twitter: @mayur_tendulkar
  • 3. © Microsoft Corporation The “evolution” of application platforms
  • 10. What are the benefits?
  • 11. Azure best cloud for serverless
  • 14. © Microsoft Corporation Serverless is good for… Web application backends Mobile application backends IoT-connected backends Real-time file processing Real-time stream processing Automation of scheduled tasks Extending SaaS Applications Conversational bot processing
  • 15. © Microsoft Corporation Web application backends Request made in a web app Request queued in Service Bus A function processes the request… ..sends output to Cosmos DB Retail Online orders are picked up from a queue, processed and the resulting data is stored in a database Scenario Example: Retail
  • 16. © Microsoft Corporation Mobile application backends Call processed by a function Output data stored in Cosmos DB Data transfer triggers second function… …which sends notifications using Notifications Hub HTTP API call from a mobile app Scenario Example Financial Services Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. Scenario Example: Final Services
  • 17. © Microsoft Corporation IoT-connected backends Scenario Example Financial Services Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. A manufacturing company uses IoT to monitor its machines. Functions detects anomalous data and triggers a message to Service department when repair is required. Scenario Example: Manufacturing Connected IoT devices producing data Data sent to IoT Hub Data with special condition routed to a function A function processes message... ..which invokes Zendesk… …and calls Logic Apps …to request device repair
  • 18. © Microsoft Corporation Conversational bot processing Scenario Example Financial Services Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. Customer asks for available vacation accommodations on her smartphone. A serverless bot deciphers the request and returns vacation options. Scenario Example: Hospitality User request through conversational interface Bot running in a function deciphers request using language understanding Another function processes the request …and sends response to original requester ? ? ?
  • 19. © Microsoft Corporation Real-time file processing Scenario Example Financial Services Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. Patient records are securely uploaded as PDF files. That data is then decomposed, processed using OCR detection, and added to a database for easy queries. Scenario Example: Healthcare Structured data from file sent to SQL DB PDF file added to Blob Storage A function decomposes PDF file… …and sends it to Cognitive Services for OCR detection
  • 20. © Microsoft Corporation Real-time stream processing Scenario Example Financial Services Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. Huge amounts of telemetry data is collected from a massive cloud app. That data is processed in near real-time and stored in a DB for use in an analytics dashboard. Scenario Example: ISV App or device producing data Event Hubs ingests telemetry data …and sends it to Cosmos DB A function processes the data… Data used for dashboard visualizations
  • 21. © Microsoft Corporation Automation of scheduled tasks Scenario Example Financial Services Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. A customer database is analyzed for duplicate entries every 15 minutes, to avoid multiple communications being sent out to same customers. Scenario Example: Financial Services A function cleans a database every 15 minutes… …deduplicating entries based on business logic
  • 22. © Microsoft Corporation Extending SaaS Applications Scenario Example Financial Services Colleagues use mobile banking to reimburse each other for lunch: the person who paid for lunch requests payment through his mobile app, triggering a notification on his colleagues’ phones. A SaaS solution provides extensibility through webhooks, which can be implemented through Functions, to automate certain workflows Scenario Example: Professional Services Issue created in GitHub… …which is processed by a function… …by posting the issue details to Slack …which triggers a webhook call
  • 23. © Microsoft Corporation Tech Use Case Details
  • 29. Azure Functions is an open-source project Functions runtime and all extensions are fully open source https://github.com/Azure/Azure-Functions
  • 31. © Microsoft Corporation • Avoid long running functions, write small functions • Cross function communication • Write stateless functions • Be defensive • Choose right hosting plan Azure Functions : Best Practices
  • 32. © Microsoft Corporation • Avoid long running functions, write small functions • Cross function communication • Write stateless functions • Be defensive • Choose right hosting plan Azure Functions : Best Practices http://bit.ly/functions-best-practices
  • 33. © Microsoft Corporation • Azure Serverless Platform • https://azure.microsoft.com/en-us/overview/serverless-computing/ • Build 2018 Session : Serverless in Action • http://bit.ly/serverless-in-action • Serverless ebook: • http://bit.ly/serverless-ebook Resources
  • 34. Thank you! It’s a Q&A time.
  • 35. © Copyright Microsoft Corporation. All rights reserved.

Editor's Notes

  • #2: Hello friends and welcome to this webinar: Build efficient and scalable applications using Azure Functions.
  • #3: But before we starts, let me introduce myself. My name is Mayur Tendulkar and I’m a Technology Solutions Professional at Microsoft in Singapore. Before this role, I was a Program manager and Developer Evangelist with Xamarin in India. I’ve been awarded as Microsoft Most Valuable Professional in different categories since 2013. I frequently write blog posts at mayurtendulkar.com and blog.xamarin.com i.e. official xamarin blog. I’m active on social media including Twitter and you can find my twitter handle on the screen. If you’ve any questions, you can ask those in the Q&A window or you can reach out to me on Twitter. So, let’s get started with this webinar: build efficient and scalable applications using Azure Functions.
  • #4: Before we jump into the discussion of Azure Functions, lets talk about the evolution of application platforms. Let’s discuss how the application platform has evolved over the years.
  • #5: When I started building applications it was all on-premise. And before even starting to write the code, we had to answer many questions. For example how many users will be hitting my servers? Accordingly how many servers I’ll need? Who is going to monitor, patch, update these servers and maintain the software installed on it. At the end of the day, we had to answer lot many questions related to technology rather than focusing on the business problems.
  • #6: And then came Infrastructure as a Service. In this case we didn’t have to bother about buying the server or software. Many of the questions were answered. Yet, there were still few questions that needed to be answered like: what will be the size of my virtual machines, how many of those I’ll need and how the infrastructure will scale. In this model, still most the control and management was our headache.
  • #7: With the advancement in cloud, now most of the part is managed by platform vendor. This is also called as Platform as a Service which further simplified our life. PaaS allows you to just worry about your app, and let the cloud vendor (in this case Microsoft Azure) take care of not only the physical hardware, but also the ongoing management of the operating environment like Operating Systems, Virtual Machines or Containers, as well as the various application runtimes, whether it is Java Runtime, .NET, Node.js, and so on. You are not completely free from thinking about servers however, since you still have to worry about how to scale your app and accordingly specify the number and size of the various compute resources your apps would need at various times.
  • #8: The latest in this series of evolution is Serverless – which further abstracts the underlying infrastructure from you, and allows you to focus only on a single question – how are you going to build your app to achieve the best results for your business, or whatever it is that you are trying to do with your apps. Whether it is the code to delight your customers through a great experience, or the logic to communicate securely with a business partner, that is where most organization want to spend their creative energies on. And serverless allows you to do just that, focus on your code and forget about the infrastructure. This is why we believe it is the platform for next generation of apps.
  • #9: So. What is serverless? Let’s talk about it.
  • #10: The advantage being there is no infrastructure management. For example, teams will not need to care about sizing or how much servers the app will need to execute. Because resources are provisioned as and when required. That means the app will auto scale based on the workload. This further helps in reducing cost as there are no wasted resources and you pay only for the resources which are being used.
  • #11: This gives us lot of benefits. First of all developers can focus on solving business problems and they don’t need to worry about the technology problems like how many servers are required, what should be the capacity etc. It helps them to increase their efficiency and helps to build apps faster taking lesser time to market And finally it gives the flexibility to easily change the functionalities if required and do experiments.
  • #12: In this case Azure helps to build serverless applications by providing tools, framework and support for serverless computing Azure provides innovative programing model and services to integrate with. Developers can build the apps within Azure portal or use Visual Studio IDE family. Lastly, Azure also gives flexibility in terms of pricing. There is consumption based as well as dedicated plans available .
  • #13: We provide not just a single service but a full platform that you can use to construct cloud native applications.  At the core are three main services: - Functions: Event-driven serverless compute experience - Event Grid: Intelligent event routing service that bring both 1st party and 3rd party events to serverless compute to act upon. - Logic Apps: Ability to create workflows and orchestrate processes in a rich designer experience. Along side these core services, we provide a host of other managed building block services – like Database (Cosmos DB), Storage, Cognitive Services, IoT services etc.  These services can be utilized by developers to build fully serverless applications which don’t require any infrastructure management
  • #14: Now let’s talk about the use cases where serverless makes sense.
  • #15: Serverless computing finds use in many scenarios.  This is not a comprehensive list but does list some of the key themes. Let’s talk about these scenarios
  • #16: Serverless can be used in application backened. An example could be a web app adding incoming orders to a queue and then Functions automatically picking up those orders to process and adding the output to a Cosmos DB.
  • #17: In case of a mobile app When app makes an API call to a Function, which does some processing and stores the data in Cosmos DB.  This in turn again triggers another function which calls Notification Hub to send notifications out to multiple mobile devices.
  • #18: IoT is an important workload for serverless because of inherently spiky workloads associated with IoT.  Processing huge amount of incoming data and doing some processing on that data in real time is a common serverless scenario
  • #19: Bot processing can be a perfect example for going serverless as the bot is short lived for that particular execution. So whenever customer checks for lets say room availability at hotels, the bot will execute the function on serverless platform and return the results.
  • #20: Data transofrmation in real-time for use between different applications is a common scenario.
  • #21: In real-time stream processing: -----
  • #22: Automating tasks that need to happen at regular intervals can be easily achieved using Functions.  Whether it is for infra ops scenarios or just application architecture maintenance, Functions are a good fit.
  • #23: And finally Azure Functions provides a very natural way of responding to webhook requests which makes it an excellent choice for extending any SaaS applications providing webhook extensibility. For example here: whenever issue is created on Github a webhook is triggers which is internally processed by Azure Function and issue details are posted on Slack or Teams channels where developers are focusing on.
  • #25: These scenarios we just saw takes us to Functions As A Service which is at the center of serverless. This programming model emphasize on: Single responsibility i.e. functions have single purpose in their life and they just process the input and return the output. These functions are short lived i.e. they are not good candidates for continues background processing. They die as soon as the execution is over. This also means, that functions are stateless i.e. they cannot hold any data or state after execution is over. And finally functions are great because they can be executed depending on events or triggers and they are scalable.
  • #26: Building on top of the FaaS programming model, Azure Functions keep all the mentioned features and extend your possibilities with additional capabilities that help to reduce your development time and boost productivity, while using best in class tools. Azure functions provides integrated programming model with built-in triggers and bindings. That means they execute whenever there is http request or a blob is added to the storage. They Have enhanced dev experience providing support for your favorite code editor. You can code/test and debug your apps locally. And finally you can deploy these functions as you want depending on your requirement.
  • #27: Additional information Triggers and bindings – https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings Monitoring—https://azure.microsoft.com/en-us/services/application-insights/ Local debugging—https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local#run-functions-locally CI/CD—https://docs.microsoft.com/en-us/azure/azure-functions/functions-continuous-deployment Run locally—https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local Proxies—https://docs.microsoft.com/en-us/azure/azure-functions/functions-proxies
  • #28: Additional information Languages—https://docs.microsoft.com/en-us/azure/azure-functions/supported-languages Dev options— Azure Functions portal—https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function Visual Studio—https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs Visual Studio Code—https://code.visualstudio.com/docs CLI—https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function-azure-cli Java/Maven—https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-java-maven Hosting options—https://azure.microsoft.com/en-us/pricing/details/functions/ Durable Functions—https://docs.microsoft.com/en-us/azure/azure-functions/durable-functions-overview
  • #30: Azure Functions spans in about 10 separate projects on GitHub About 60 contributors from the community across hundreds of commits All issues and sprints are triaged and tracked fully in the open, anyone can see exactly what code is running in the cloud and what is being worked on next More info in - https://github.com/Azure/Azure-Functions
  • #33: As Azure Serverless platform makes it easy to write serverless applications using Azure Logic Apps and Azure Functions, it can be tricky to write scalable efficient apps. So, let me share some best practices with you. First of all, avoid long running functions. Try to write short and sweet functions with single responsibility this will allow you to avoid unnecessary timeouts to execute the function. Also when you’ve long running functions, there is a chance that it may have too many dependencies. Look for dependencies and try to minimize as many of them as possible. Because whenever the function starts for the 1st time, all those dependencies are downloaded and lot of time can be wasted to download these dependencies. Next, if you’ve multiple functions communicating with each other or you want to store state between function calls, prefer Logic Apps or Durable functions. These are specifically built for such scenarios. If it is not possible to use either of them, in that case use storage ques for communication. Also, functions are meant to be stateless and idempotent. If it is must to store the state, in that case store that state with the data itself. As it is advised, if you have function that needs to be executed once in a day, write it so that every time it executes, it gives same results. One of the programming rules applies here as well. Write your code defensively. That means consider that your function may throw exception anywhere in the code it should log the exception and continue from that fail point. Get the big picture of your architecture and write defensive code at each level to make sure function executes without any issues. And finally, choose the right hosting plan. There are two hosting plans available at this moment: consumption plan and dedicated plan. Consumption plan will execute your function only when required and resources will be allocated as and when required. It will be auto scaled. If you know the usage of your application, go ahead and choose dedicated plan as it will give you a performance increase because resources are pre-allocated for your function app. I’ve created this short link for you from where you can find all the best practices required which are required for writing scalable and efficient serverless apps using azure functions.
  • #34: Before concluding this webinar, let me share some resources where you can find more information about Azure Serverless Platform. First of all, our Azure Serverless Computing page is a great resource with wealth of information about documentation, learning videos and events near you. Visit the link for more information. There is also a great video about Serverless platform from Build 2018 titled ‘Serverless in Action’, note the short bit link to watch the video. And finally, our friend Jeremy has written a fantastic ebook on Serverless app which is free and available on Microsoft documentation site. Visit the short link mentioned here to download this ebook or browse through it.
  • #35: Finally, I would like to Thank you all for attending this webinar build efficient and scalable applications using Azure Functions. It’s time for Questions and Answers. Feel free to ask questions in the window.