Looking to build intelligent apps that will get to market faster or create apps by stitching together valuable and complementary functionality from various sources?
Azure serverless helps you quickly build and deploy cloud-scale enterprise applications in Azure leveraging Azure’s key serverless offerings – Functions, Logic Apps, and Event Grid.
Serverless computing is the abstraction of servers, infrastructure, and operating systems. Azure Serverless allows you to focus on building and deploying your code without worrying about managing servers. Once deployed, you can trust Azure to scale your code in real-time as per need, and you pay for only the resources you use.
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Azure Serverless with Functions, Logic Apps, and Event Grid
1. Azure Serverless with Functions,
Logic Apps, and Event Grid
Notes:
• If you experience audio issues during the webinar, you can dial in through telephone details provided to you in
your registration confirmation email.
• Please feel free to post questions in the questions dialog & we will try to answer as many as we can at the end.
• Recording of this session will be shared in next 24-48 hours.
• You can also write to us at marketing@winwire.com for any clarifications or information.
4. Evolution of Cloud Computing
Data Centres
Infrastructure as a
Service (IaaS)
Platform as a Service
(PaaS)
Container as a
Service (CaaS)
Serverless
(FaaS)
Software as a
Service (SaaS)
5. Serverless Computing
An abstraction of servers, infrastructure and operating
systems
Dynamic allocation of resources, driven by
events/triggers in near real-time
Pricing based on actual consumption of resources
Servers still required!
6. Azure Serverless
Fully managed services ranging from compute, storage, database, orchestration, monitoring,
analytics, and intelligence to help construct serverless applications for any kind of scenario
Azure Functions Azure Storage Azure Cosmos DB Azure Active Directory
Logic Apps
Service Bus
Event Grid API Management Event Hubs
Azure Bot Service Cognitive Services
Azure Stream Analytics
Application Insights
8. Azure Functions
• Run small pieces of code in Azure, without
worrying about a whole application or the
infrastructure to run it
• Use your development language of choice
• Pay only for the time your code runs
and trust Azure to scale as needed
• Open-source, available on GitHub
9. Azure Functions - Integrations
Azure StorageAzure Cosmos DB
Azure Service Bus
Azure Event GridAzure Event Hubs
Azure Mobile Apps Azure Notification Hubs GitHub
On-premises Twilio
10. Developing a Function
Go to Azure
Portal
Choose a
trigger
Choose
language
Code
Add I/O
bindings
Save, test
Monitor at
runtime
Compute -> Function
App *
(HTTP, Timer, Blob,
Queue, Event Hub,
Service Bus, etc.)
(C#, F#, Node.js,
Java, or PHP)
To connect to
data from
within code
* Functions can also be created using Visual Studio or Azure CLI
11. Hosting Functions
Consumption Plan App Service Plan
• Serverless
• Automatically allocates compute
power
• Scales out and down as per load
• No resources reserved in advance
• Functions run on dedicated VMs
like Web/API/Mobile Apps
• Go for it if you:
• Have underutilized VMs in other
App Service Plans
• Expect functions to run
continuously
• Need high CPU or memory
• Expect functions to run longer
than 10 minutes
• Want to run functions on Linux
13. Functions – Use Cases
1
Order processing – scale per high/low
loads (Black Friday, Super Bowl)
2 Send emails or text messages
3 Threshold alerts
4 Execute scheduled tasks
5
Process messages, documents, files
when added
6
Respond to events in GitHub
repository
15. Logic Apps
• Build, schedule, and automate
processes as workflows to integrate
apps, data, systems, and services
across enterprises or organizations
• Connect and integrate data within
the cloud, on-premises, or both
• Visual workflows, easy to use • Pay for what you use
17. Creating a Logic App
Go to Azure
Portal
Choose a
template
Choose a
trigger
Add steps
Save, run
manually
Monitor at
runtime
Enterprise Integration
-> Logic App *
(polling / push)
* Logic apps and custom templates can be created using Visual Studio
• Action
• Condition
• Switch
• Loop
• Scope
• Debatch
• Recurrence
• Request
• HTTP
• API
• WebHook
18. Logic App – Use Cases
1 EAI/B2B Integration
2
Complex workflows involving SaaS
solutions
3
Automatically respond to text
messages or emails
4 Send/receive messages in a batch
5
Take action on negative tweets
(sentiment analysis)
6 Exception Handling or Logging
20. Azure Event Grid
Fully-managed intelligent event routing service that
allows building serverless, event-based applications
Listens and reacts to events, instead of polling
Allows massive scaling, dynamically
Pay per operation
22. Event Grid vs Event Hubs vs Service Bus
Service Bus
High-value, secure enterprise
messaging
Event Hubs
Big data pipeline
Event Grid
Event-driven, reactive
Asynchronous message delivery
Captures, retains, replays event
stream data
Does not deliver data
Allows batching, filtering, detecting
duplicates, etc.
Low latency, millions of events per
second
Serverless, dynamically scalable
23. Event Grid – Use Cases
1
Process images added to a blob
storage container
2
Manage Azure subscription and
resources
3 Stream big data to a data warehouse
4 Trigger Automation Runbook
5
Integrate application with other
services
24. Serverless – Pros and Cons
Pros
• Reduced time to market
• Lower operational and development
costs
• Near instant scalability without
configuration
• Increased developer productivity
Cons
• Lack of control
• Security and performance issues due to
Multitenancy
• Not efficient for long-running
applications
• “Cold start” issues