SlideShare uma empresa Scribd logo
1 de 33
Unconference Web 2017 – 28.01.2017
Introduction to
Azure Functions
Marco Parenzan
Microsoft MVP for Azure
@marco_parenzan
Unconference Web 2017 – 28.01.2017
@marco_parenzan
◇Microsoft MVP 2016 for Azure
◇Azure Trainer in Cloud Academy, Inc.
◇Community Lead per 1nn0va
Unconference Web 2017 – 28.01.2017
How we always explained cloud services
Unconference Web 2017 – 28.01.2017
Misundestanding on PaaS
◇You control only the application and data
◇No control over other tiers
ïż­No on underlying hardware
ïż­CPU and RAM
.hardware? 
◇Always example about our applications, web as an example
ïż­â€Šand we compare IaaS (IIS) with PaaS (App Services)
ïż­â€Šso we configure the CPU, the RAM, but nothing else

Unconference Web 2017 – 28.01.2017
Cortana
Management Suite
Media ServicesStorage
Traffic
Manager
Visual Studio
Services
OMS
Management SuitMachine LearningCDNDocument DB
Search
SchedulerActive Directory Key Vault App Insights Cognitive Services Embedded Power BI
Hockey AppStream AnalyticsNotification HubIoT Hub Service Bus
Logic App
Where you decide the CPU on these?
Unconference Web 2017 – 28.01.2017
Real World PaaS

◇Don’t decide on CPU and RAM
why?
ïż­Control vs Configure
◇You cannot plan your workload capacity
ïż­Only with testing
◇Infact Real World PaaS is about
.
ïż­IOPS (Azure Storage)
ïż­Streaming Units (Media Services)
ïż­Resource Units (DocumentDb)
ïż­Throughput Units (Event Hubs)
ïż­Streaming Unit (Stream Analytics)
ïż­Data Transaction Units (SQL Database)
Unconference Web 2017 – 28.01.2017
Find who is missing

Cortana
Management Suite
Media ServicesStorage
Traffic
Manager
Visual Studio
Services
OMS
Management SuitMachine LearningCDNDocument DB
Search
SchedulerActive Directory Key Vault App Insights Cognitive Services Embedded Power BI
Hockey AppStream AnalyticsNotification HubIoT Hub Service Bus
Logic App
Unconference Web 2017 – 28.01.2017
Yes it is!
Azure App Service
“PaaS that developers love and businesses can trust”
Unconference Web 2017 – 28.01.2017
Ship.
Acct. Mang.
Hist.
Database
Client
Ship.
DB
Client
Hist.
DB
Mang.
DB
Acct.
DB
POST
GET
UPDATE
Monolithic Microservices
Application’s evolution
Unconference Web 2017 – 28.01.2017
Ship.
Acct. Mang.
Hist.
Database
Client
Monolithic
Ship.
DB
Client
Hist.
DB
Mang.
DB
Acct.
DB
POST
GET
UPDATE
Microservices
Application’s evolution
Unconference Web 2017 – 28.01.2017
Serverless manifesto
◇Function are the unit of deployment and scaling.
◇No machines, VMs, or containers visible in the programming model.
◇Permanent storage lives elsewhere.
◇Scales per request; Users cannot over- or under-provision capacity.
◇Never pay for idle (no cold servers/containers or their costs).
◇Implicitly fault-tolerant because functions can run anywhere.
◇BYOC - Bring Your Own Code.
◇Metrics and logging are a universal right.
P.S. Home not found!
Unconference Web 2017 – 28.01.2017
Serverless origins
◇https://martinfowler.com/articles/serverless.html#origin
◇Why The Future Of Software And Apps Is Serverless
ïż­2012 KEN FROMM
ïż­ http://readwrite.com/2012/10/15/why-the-future-of-software-and-apps-is-serverless/
ïż­https://medium.com/@ken_fromm/thinking-serverless-how-new-approaches-address-modern-data-
processing-needs-part-1-af6a158a3af1#.iqlx5xky9
◇Lambda
ïż­AWS, 2014
ïż­[Google Cloud Function, 2016]
Unconference Web 2017 – 28.01.2017
Ship.
DB
Client
Hist.
DB
Mang.
DB
Acct.
DB
POST
GET
UPDATE
Microservices
Application’s evolution
Unconference Web 2017 – 28.01.2017
Client
Mang.
DB
Microservices
POST
Users
Users/Id
Users/Id
Users/Id
CreatUser
GetUser
UpdateUser
DeleteUser
GET
UPDATE
DELETE
Serverless
Application’s evolution
Unconference Web 2017 – 28.01.2017
Serverless Principles
Unconference Web 2017 – 28.01.2017
Code Events + data
Azure Functions
Azure Functions
◇Process events with Serverless code.
◇Make composing Cloud Apps insanely easy
◇Develop Functions in C#, Node.js, Python, PHP, Batch and more
◇Easily schedule event-driven tasks across services
◇Expose Functions as HTTP API endpoints
◇Scale Functions based on customer demand
◇Easily integrate with Logic Apps
Unconference Web 2017 – 28.01.2017
Now complete Serverless
Cortana
Management Suite
Media ServicesStorage
Traffic
Manager
Visual Studio
Services
OMS
Management SuitMachine LearningCDNDocument DB
Search
SchedulerActive Directory Key Vault App Insights Cognitive Services Embedded Power BI
Hockey AppStream AnalyticsNotification HubIoT Hub Service Bus
Functions Logic App
Unconference Web 2017 – 28.01.2017
Serverless Humor
Unconference Web 2017 – 28.01.2017
Azure
Functions
APIM
Notification Hubs
Web Apps
Mobile Apps
API Apps
Logic Apps
Custom AppseCommerce Digital Global Presence LOB
Apps
Services
App Service
Developer Experience
‱ Languages and Frameworks
‱ Superior DevOps
‱ Self service supportability
Fully Managed Platform
‱ Auto scale
‱ OS and Framework patching
‱ Load balancing
Enterprise Grade
‱ Enterprise grade SLA
‱ Security and
Compliance
‱ On-Premise Connectivity
Platform
API / Services / ISV
Unconference Web 2017 – 28.01.2017
Platform and scaling
◇App Service offers dedicated and consumption tiers.
◇Dedicated is the existing App Service plan tiers
ïż­Basic, Standard, Premium
ïż­Pay based on # of reserved VMs
ïż­You’re responsible for scale
◇Consumption (Dynamic)
ïż­Pay on number of executions
ïż­Platform responsible for scale
Unconference Web 2017 – 28.01.2017
Dynamic tier pricing
◇Pay per execution model - two meters, three units
‱ Number of executions
‱ Duration of execution x reserved memory
Unconference Web 2017 – 28.01.2017
Dual abstraction
◇Serverless compute abstracts away the compute
◇Azure Functions Bindings abstract away the services
you interact with
Unconference Web 2017 – 28.01.2017
Supported bindings
Type Service Trigger Input Output
Schedule Azure Functions ✔
HTTP (REST or
WebHook)
Azure Functions ✔ ✔
Blob Storage Azure Storage ✔ ✔ ✔
Queues Azure Storage ✔ ✔
Tables Azure Storage ✔ ✔
Tables
Azure Mobile Apps Easy
Tables
✔ ✔
No-SQL DB Azure DocumentDB ✔ ✔
Streams Azure Event Hubs ✔ ✔
Push Notifications Azure Notification Hubs ✔
Unconference Web 2017 – 28.01.2017
Azure Functions architecture
◇Azure Functions is built around the WebJobs SDK runtime. The WebJobs SDK makes it easy to react
to events and work with data in a consistent abstracted fashion.
Unconference Web 2017 – 28.01.2017
Supported Languages
◇1st class support
ïż­Node/JavaScript
ïż­C#
◇Experimental support
ïż­F#
ïż­Python
ïż­PHP
ïż­Batch
ïż­Bash
ïż­PowerShell
Unconference Web 2017 – 28.01.2017
Trigger
(data) Input Input
code
Output
Output
Input
Functions Programming Model
◇Function as a single unit of work
◇Functions are executed per trigger
◇Functions have inputs and outputs
Unconference Web 2017 – 28.01.2017
Demo
Unconference Web 2017 – 28.01.2017
Conclusions
Unconference Web 2017 – 28.01.2017
Focus on
Business
Logic
Reduced
Time To
Market
Reduced
DevOps
Benefits of Serverless?
Unconference Web 2017 – 28.01.2017
Functions Programming Model - Best Practices
◇Functions should “do one thing”
◇Functions should be stateless
◇Functions should be idempotent
◇Functions should finish as quickly as possible
1
Unconference Web 2017 – 28.01.2017
General practices for serverless
◇Thick clients; thin & stateless backends
ïż­SPAs like Angular/React are your friend
ïż­Be sure to enable CORS 
◇Sync is nice, but Async is nicer
ïż­Async, queue based systems are more resilient
ïż­Read and internalize the reactive manifesto - http://www.reactivemanifesto.org/
ïż­While synchronous work will happen, minimize the work done in a sync function and kick off to a
queue based async process (HTTP status code 202, not 201 )
◇Live and die by the cloud
ïż­Like never before, develop on the cloud, test on the cloud, ship on the cloud
ïż­Not just FaaS, but use other serverless tech that best solves the problem (like Logic Apps)
Unconference Web 2017 – 28.01.2017
Azure Functions is open sourced
◇The runtime, “portal”, and templates are all on GitHub
ïż­https://github.com/Azure/azure-webjobs-sdk
ïż­https://github.com/Azure/azure-webjobs-sdk-extensions
ïż­https://github.com/Azure/azure-webjobs-sdk-script
ïż­https://github.com/Azure/azure-webjobs-sdk-templates
ïż­https://github.com/ProjectKudu/WebJobsPortal
◇Open roadmap
ïż­Use the cutting edge features
ïż­Transparency into priorities and velocity
ïż­Influence the direction of the project
◇Runtime is intended to be portable
ïż­MIT License
Unconference Web 2017 – 28.01.2017
Any questions?
You can find me at: marco [dot] parenzan [at] 1nn0va [dot] it
Thanks!

Mais conteĂșdo relacionado

Mais procurados

Mais procurados (20)

Building microservices with azure functions
Building microservices with azure functionsBuilding microservices with azure functions
Building microservices with azure functions
 
Azure Service Fabric - Hamida Rebai - CCDays
Azure Service Fabric - Hamida Rebai - CCDaysAzure Service Fabric - Hamida Rebai - CCDays
Azure Service Fabric - Hamida Rebai - CCDays
 
Serverless CQRS in Azure!
Serverless CQRS in Azure!Serverless CQRS in Azure!
Serverless CQRS in Azure!
 
Azure logic app
Azure logic appAzure logic app
Azure logic app
 
CREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNER
CREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNERCREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNER
CREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNER
 
Serverless Architecture - Azure Logic apps
Serverless Architecture - Azure Logic appsServerless Architecture - Azure Logic apps
Serverless Architecture - Azure Logic apps
 
BUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPS
BUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPSBUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPS
BUILD, TEST & DEPLOY .NET CORE APPS IN AZURE DEVOPS
 
GAB 2017 - Logic Apps and Azure Functions
GAB 2017 - Logic Apps and Azure FunctionsGAB 2017 - Logic Apps and Azure Functions
GAB 2017 - Logic Apps and Azure Functions
 
Logic Apps – Deployments
Logic Apps – DeploymentsLogic Apps – Deployments
Logic Apps – Deployments
 
Integrating SaaS application using Microsoft’s Azure App Service Platform
Integrating SaaS application using Microsoft’s Azure App Service PlatformIntegrating SaaS application using Microsoft’s Azure App Service Platform
Integrating SaaS application using Microsoft’s Azure App Service Platform
 
WRITE SCALABLE COMMUNICATION APPLICATION WITH POWER OF SERVERLESS
WRITE SCALABLE COMMUNICATION APPLICATION WITH POWER OF SERVERLESSWRITE SCALABLE COMMUNICATION APPLICATION WITH POWER OF SERVERLESS
WRITE SCALABLE COMMUNICATION APPLICATION WITH POWER OF SERVERLESS
 
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
Deploy Microservices To Kubernetes Without Secrets by Reenu SalujaDeploy Microservices To Kubernetes Without Secrets by Reenu Saluja
Deploy Microservices To Kubernetes Without Secrets by Reenu Saluja
 
Azure Integration in Production with Logic Apps and more
Azure Integration in Production with Logic Apps and moreAzure Integration in Production with Logic Apps and more
Azure Integration in Production with Logic Apps and more
 
Building Azure Logic Apps
Building Azure Logic AppsBuilding Azure Logic Apps
Building Azure Logic Apps
 
API Management and Hybrid Integration
API Management and Hybrid IntegrationAPI Management and Hybrid Integration
API Management and Hybrid Integration
 
Connect the Impossible with Azure Logic App
Connect the Impossible with Azure Logic AppConnect the Impossible with Azure Logic App
Connect the Impossible with Azure Logic App
 
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
2015-12-02 - WebCamp - Microsoft Azure Logic Apps2015-12-02 - WebCamp - Microsoft Azure Logic Apps
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
 
Go Serverless with Cosmos DB, Azure Functions and Blazor
Go Serverless with Cosmos DB, Azure Functions and BlazorGo Serverless with Cosmos DB, Azure Functions and Blazor
Go Serverless with Cosmos DB, Azure Functions and Blazor
 
Workflow All the Things with Azure Logic Apps
Workflow All the Things with Azure Logic AppsWorkflow All the Things with Azure Logic Apps
Workflow All the Things with Azure Logic Apps
 
Microsoft Flow in Real World Projects: 2 Years later & What's next
Microsoft Flow in Real World Projects: 2 Years later & What's nextMicrosoft Flow in Real World Projects: 2 Years later & What's next
Microsoft Flow in Real World Projects: 2 Years later & What's next
 

Destaque

Facebook for Business
Facebook for BusinessFacebook for Business
Facebook for Business
Jobin George
 

Destaque (20)

Azure Functions
Azure FunctionsAzure Functions
Azure Functions
 
MS Cloud Summit Paris 2017 - Azure Stack
MS Cloud Summit Paris 2017 - Azure StackMS Cloud Summit Paris 2017 - Azure Stack
MS Cloud Summit Paris 2017 - Azure Stack
 
Windows 10 for fun - Building an Arcade BarTop
Windows 10 for fun - Building an Arcade BarTopWindows 10 for fun - Building an Arcade BarTop
Windows 10 for fun - Building an Arcade BarTop
 
State of Azure Sql Database
State of Azure Sql DatabaseState of Azure Sql Database
State of Azure Sql Database
 
Inside Logic Apps
Inside Logic AppsInside Logic Apps
Inside Logic Apps
 
What's new with Azure Sql Database
What's new with Azure Sql DatabaseWhat's new with Azure Sql Database
What's new with Azure Sql Database
 
Azure Cloud PPT
Azure Cloud PPTAzure Cloud PPT
Azure Cloud PPT
 
From CRUD to Commands: a path to CQRS architectures
From CRUD to Commands: a path to CQRS  architecturesFrom CRUD to Commands: a path to CQRS  architectures
From CRUD to Commands: a path to CQRS architectures
 
Informatica - Excel Intermedio
Informatica - Excel IntermedioInformatica - Excel Intermedio
Informatica - Excel Intermedio
 
What's new in C# 6.0
What's new in C# 6.0What's new in C# 6.0
What's new in C# 6.0
 
L’azienda controllata da Excel
 L’azienda controllata da Excel L’azienda controllata da Excel
L’azienda controllata da Excel
 
Fondamenti di Excel
Fondamenti di ExcelFondamenti di Excel
Fondamenti di Excel
 
2015.01.09 - Principi del Cloud Computing e migrazione delle applicazioni mod...
2015.01.09 - Principi del Cloud Computing e migrazione delle applicazioni mod...2015.01.09 - Principi del Cloud Computing e migrazione delle applicazioni mod...
2015.01.09 - Principi del Cloud Computing e migrazione delle applicazioni mod...
 
Azure for Game Developers
Azure for Game DevelopersAzure for Game Developers
Azure for Game Developers
 
Azure - The Good Parts
Azure - The Good PartsAzure - The Good Parts
Azure - The Good Parts
 
Facebook for Business
Facebook for BusinessFacebook for Business
Facebook for Business
 
AWS User Group Sydney - Atlassian 5-10-16
AWS User Group Sydney - Atlassian 5-10-16AWS User Group Sydney - Atlassian 5-10-16
AWS User Group Sydney - Atlassian 5-10-16
 
Informatica Base Excel
Informatica Base   ExcelInformatica Base   Excel
Informatica Base Excel
 
ćș”ç”šćŒ€ć‘ćˆ©ć™š IBM Bluemixćčłć°äș‘介绍
ćș”ç”šćŒ€ć‘ćˆ©ć™š IBM Bluemixćčłć°äș‘介绍ćș”ç”šćŒ€ć‘ćˆ©ć™š IBM Bluemixćčłć°äș‘介绍
ćș”ç”šćŒ€ć‘ćˆ©ć™š IBM Bluemixćčłć°äș‘介绍
 
Azure DocumentDb
Azure DocumentDbAzure DocumentDb
Azure DocumentDb
 

Semelhante a Introduction to Azure Functions

Data Design for Microservices - DevDay Austin 2017 Day 2
Data Design for Microservices - DevDay Austin 2017 Day 2Data Design for Microservices - DevDay Austin 2017 Day 2
Data Design for Microservices - DevDay Austin 2017 Day 2
Amazon Web Services
 
How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless Applications
Amazon Web Services
 
A Modern Data Architecture for Microservices
A Modern Data Architecture for MicroservicesA Modern Data Architecture for Microservices
A Modern Data Architecture for Microservices
Amazon Web Services
 
èŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèž
èŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèžèŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèž
èŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèž
Amazon Web Services
 

Semelhante a Introduction to Azure Functions (20)

Servereless Jobs with AWS Lambda
Servereless Jobs with AWS LambdaServereless Jobs with AWS Lambda
Servereless Jobs with AWS Lambda
 
GPSWKS404-GPS Game Changing C2S Services To Transform Your Customers Speed To...
GPSWKS404-GPS Game Changing C2S Services To Transform Your Customers Speed To...GPSWKS404-GPS Game Changing C2S Services To Transform Your Customers Speed To...
GPSWKS404-GPS Game Changing C2S Services To Transform Your Customers Speed To...
 
Best of re:Invent 2016 meetup presentation
Best of re:Invent 2016 meetup presentationBest of re:Invent 2016 meetup presentation
Best of re:Invent 2016 meetup presentation
 
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWSGPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
 
Data Design for Microservices - DevDay Austin 2017 Day 2
Data Design for Microservices - DevDay Austin 2017 Day 2Data Design for Microservices - DevDay Austin 2017 Day 2
Data Design for Microservices - DevDay Austin 2017 Day 2
 
Webinar unlock the power of adc management and automation AppViewX
Webinar unlock the power of adc management and automation AppViewXWebinar unlock the power of adc management and automation AppViewX
Webinar unlock the power of adc management and automation AppViewX
 
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
 
Exposing Business Functionalities with SOA, Integration and API Management
Exposing Business Functionalities with SOA, Integration and API ManagementExposing Business Functionalities with SOA, Integration and API Management
Exposing Business Functionalities with SOA, Integration and API Management
 
Dive deep into technical enhancements - re:Invent Come to London 2.0
Dive deep into technical enhancements - re:Invent Come to London 2.0Dive deep into technical enhancements - re:Invent Come to London 2.0
Dive deep into technical enhancements - re:Invent Come to London 2.0
 
Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...
Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...
Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...
 
How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless Applications
 
Machine learning in the physical world by Kip Larson from AWS IoT
Machine learning in the physical world by  Kip Larson from AWS IoTMachine learning in the physical world by  Kip Larson from AWS IoT
Machine learning in the physical world by Kip Larson from AWS IoT
 
Azure Functions
Azure FunctionsAzure Functions
Azure Functions
 
A Modern Data Architecture for Microservices
A Modern Data Architecture for MicroservicesA Modern Data Architecture for Microservices
A Modern Data Architecture for Microservices
 
IBM Cloud University 2017-IDPA009-IBM BPM Upgrade and Migration Made Easy
IBM Cloud University 2017-IDPA009-IBM BPM Upgrade and Migration Made EasyIBM Cloud University 2017-IDPA009-IBM BPM Upgrade and Migration Made Easy
IBM Cloud University 2017-IDPA009-IBM BPM Upgrade and Migration Made Easy
 
DAT317_Migrating Databases and Data Warehouses to the Cloud
DAT317_Migrating Databases and Data Warehouses to the CloudDAT317_Migrating Databases and Data Warehouses to the Cloud
DAT317_Migrating Databases and Data Warehouses to the Cloud
 
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
 
èŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèž
èŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèžèŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèž
èŠćŠƒć€§èŠæšĄé·ç§»ćˆ° AWS çš„æœ€äœłćŻŠèž
 
Serverless introduction - AWS IL Beer Sheva meetup
Serverless introduction - AWS IL Beer Sheva meetupServerless introduction - AWS IL Beer Sheva meetup
Serverless introduction - AWS IL Beer Sheva meetup
 
IBM BPM Updates - BPM 8.5.7 and BPM 8.6
IBM BPM Updates - BPM 8.5.7 and BPM 8.6IBM BPM Updates - BPM 8.5.7 and BPM 8.6
IBM BPM Updates - BPM 8.5.7 and BPM 8.6
 

Mais de Marco Parenzan

Mais de Marco Parenzan (20)

Azure IoT Central per lo SCADA engineer
Azure IoT Central per lo SCADA engineerAzure IoT Central per lo SCADA engineer
Azure IoT Central per lo SCADA engineer
 
Azure Hybrid @ Home
Azure Hybrid @ HomeAzure Hybrid @ Home
Azure Hybrid @ Home
 
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptxStatic abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
 
Azure Synapse Analytics for your IoT Solutions
Azure Synapse Analytics for your IoT SolutionsAzure Synapse Analytics for your IoT Solutions
Azure Synapse Analytics for your IoT Solutions
 
Power BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT Central Power BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT Central
 
Power BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT CentralPower BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT Central
 
Power BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT CentralPower BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT Central
 
Developing Actors in Azure with .net
Developing Actors in Azure with .netDeveloping Actors in Azure with .net
Developing Actors in Azure with .net
 
Math with .NET for you and Azure
Math with .NET for you and AzureMath with .NET for you and Azure
Math with .NET for you and Azure
 
Power BI data flow and Azure IoT Central
Power BI data flow and Azure IoT CentralPower BI data flow and Azure IoT Central
Power BI data flow and Azure IoT Central
 
.net for fun: write a Christmas videogame
.net for fun: write a Christmas videogame.net for fun: write a Christmas videogame
.net for fun: write a Christmas videogame
 
Building IoT infrastructure on edge with .net, Raspberry PI and ESP32 to conn...
Building IoT infrastructure on edge with .net, Raspberry PI and ESP32 to conn...Building IoT infrastructure on edge with .net, Raspberry PI and ESP32 to conn...
Building IoT infrastructure on edge with .net, Raspberry PI and ESP32 to conn...
 
Anomaly Detection with Azure and .NET
Anomaly Detection with Azure and .NETAnomaly Detection with Azure and .NET
Anomaly Detection with Azure and .NET
 
Deploy Microsoft Azure Data Solutions
Deploy Microsoft Azure Data SolutionsDeploy Microsoft Azure Data Solutions
Deploy Microsoft Azure Data Solutions
 
Deep Dive Time Series Anomaly Detection in Azure with dotnet
Deep Dive Time Series Anomaly Detection in Azure with dotnetDeep Dive Time Series Anomaly Detection in Azure with dotnet
Deep Dive Time Series Anomaly Detection in Azure with dotnet
 
Azure IoT Central
Azure IoT CentralAzure IoT Central
Azure IoT Central
 
Anomaly Detection with Azure and .net
Anomaly Detection with Azure and .netAnomaly Detection with Azure and .net
Anomaly Detection with Azure and .net
 
Code Generation for Azure with .net
Code Generation for Azure with .netCode Generation for Azure with .net
Code Generation for Azure with .net
 
Running Kafka and Spark on Raspberry PI with Azure and some .net magic
Running Kafka and Spark on Raspberry PI with Azure and some .net magicRunning Kafka and Spark on Raspberry PI with Azure and some .net magic
Running Kafka and Spark on Raspberry PI with Azure and some .net magic
 
Time Series Anomaly Detection with Azure and .NETT
Time Series Anomaly Detection with Azure and .NETTTime Series Anomaly Detection with Azure and .NETT
Time Series Anomaly Detection with Azure and .NETT
 

Último

Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Último (20)

Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] đŸ„ Women's Abortion Clinic in T...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 

Introduction to Azure Functions

  • 1. Unconference Web 2017 – 28.01.2017 Introduction to Azure Functions Marco Parenzan Microsoft MVP for Azure @marco_parenzan
  • 2. Unconference Web 2017 – 28.01.2017 @marco_parenzan ◇Microsoft MVP 2016 for Azure ◇Azure Trainer in Cloud Academy, Inc. ◇Community Lead per 1nn0va
  • 3. Unconference Web 2017 – 28.01.2017 How we always explained cloud services
  • 4. Unconference Web 2017 – 28.01.2017 Misundestanding on PaaS ◇You control only the application and data ◇No control over other tiers ïż­No on underlying hardware ïż­CPU and RAM
.hardware?  ◇Always example about our applications, web as an example ïż­â€Šand we compare IaaS (IIS) with PaaS (App Services) ïż­â€Šso we configure the CPU, the RAM, but nothing else

  • 5. Unconference Web 2017 – 28.01.2017 Cortana Management Suite Media ServicesStorage Traffic Manager Visual Studio Services OMS Management SuitMachine LearningCDNDocument DB Search SchedulerActive Directory Key Vault App Insights Cognitive Services Embedded Power BI Hockey AppStream AnalyticsNotification HubIoT Hub Service Bus Logic App Where you decide the CPU on these?
  • 6. Unconference Web 2017 – 28.01.2017 Real World PaaS
 ◇Don’t decide on CPU and RAM
why? ïż­Control vs Configure ◇You cannot plan your workload capacity ïż­Only with testing ◇Infact Real World PaaS is about
. ïż­IOPS (Azure Storage) ïż­Streaming Units (Media Services) ïż­Resource Units (DocumentDb) ïż­Throughput Units (Event Hubs) ïż­Streaming Unit (Stream Analytics) ïż­Data Transaction Units (SQL Database)
  • 7. Unconference Web 2017 – 28.01.2017 Find who is missing
 Cortana Management Suite Media ServicesStorage Traffic Manager Visual Studio Services OMS Management SuitMachine LearningCDNDocument DB Search SchedulerActive Directory Key Vault App Insights Cognitive Services Embedded Power BI Hockey AppStream AnalyticsNotification HubIoT Hub Service Bus Logic App
  • 8. Unconference Web 2017 – 28.01.2017 Yes it is! Azure App Service “PaaS that developers love and businesses can trust”
  • 9. Unconference Web 2017 – 28.01.2017 Ship. Acct. Mang. Hist. Database Client Ship. DB Client Hist. DB Mang. DB Acct. DB POST GET UPDATE Monolithic Microservices Application’s evolution
  • 10. Unconference Web 2017 – 28.01.2017 Ship. Acct. Mang. Hist. Database Client Monolithic Ship. DB Client Hist. DB Mang. DB Acct. DB POST GET UPDATE Microservices Application’s evolution
  • 11. Unconference Web 2017 – 28.01.2017 Serverless manifesto ◇Function are the unit of deployment and scaling. ◇No machines, VMs, or containers visible in the programming model. ◇Permanent storage lives elsewhere. ◇Scales per request; Users cannot over- or under-provision capacity. ◇Never pay for idle (no cold servers/containers or their costs). ◇Implicitly fault-tolerant because functions can run anywhere. ◇BYOC - Bring Your Own Code. ◇Metrics and logging are a universal right. P.S. Home not found!
  • 12. Unconference Web 2017 – 28.01.2017 Serverless origins ◇https://martinfowler.com/articles/serverless.html#origin ◇Why The Future Of Software And Apps Is Serverless ïż­2012 KEN FROMM ïż­ http://readwrite.com/2012/10/15/why-the-future-of-software-and-apps-is-serverless/ ïż­https://medium.com/@ken_fromm/thinking-serverless-how-new-approaches-address-modern-data- processing-needs-part-1-af6a158a3af1#.iqlx5xky9 ◇Lambda ïż­AWS, 2014 ïż­[Google Cloud Function, 2016]
  • 13. Unconference Web 2017 – 28.01.2017 Ship. DB Client Hist. DB Mang. DB Acct. DB POST GET UPDATE Microservices Application’s evolution
  • 14. Unconference Web 2017 – 28.01.2017 Client Mang. DB Microservices POST Users Users/Id Users/Id Users/Id CreatUser GetUser UpdateUser DeleteUser GET UPDATE DELETE Serverless Application’s evolution
  • 15. Unconference Web 2017 – 28.01.2017 Serverless Principles
  • 16. Unconference Web 2017 – 28.01.2017 Code Events + data Azure Functions Azure Functions ◇Process events with Serverless code. ◇Make composing Cloud Apps insanely easy ◇Develop Functions in C#, Node.js, Python, PHP, Batch and more ◇Easily schedule event-driven tasks across services ◇Expose Functions as HTTP API endpoints ◇Scale Functions based on customer demand ◇Easily integrate with Logic Apps
  • 17. Unconference Web 2017 – 28.01.2017 Now complete Serverless Cortana Management Suite Media ServicesStorage Traffic Manager Visual Studio Services OMS Management SuitMachine LearningCDNDocument DB Search SchedulerActive Directory Key Vault App Insights Cognitive Services Embedded Power BI Hockey AppStream AnalyticsNotification HubIoT Hub Service Bus Functions Logic App
  • 18. Unconference Web 2017 – 28.01.2017 Serverless Humor
  • 19. Unconference Web 2017 – 28.01.2017 Azure Functions APIM Notification Hubs Web Apps Mobile Apps API Apps Logic Apps Custom AppseCommerce Digital Global Presence LOB Apps Services App Service Developer Experience ‱ Languages and Frameworks ‱ Superior DevOps ‱ Self service supportability Fully Managed Platform ‱ Auto scale ‱ OS and Framework patching ‱ Load balancing Enterprise Grade ‱ Enterprise grade SLA ‱ Security and Compliance ‱ On-Premise Connectivity Platform API / Services / ISV
  • 20. Unconference Web 2017 – 28.01.2017 Platform and scaling ◇App Service offers dedicated and consumption tiers. ◇Dedicated is the existing App Service plan tiers ïż­Basic, Standard, Premium ïż­Pay based on # of reserved VMs ïż­You’re responsible for scale ◇Consumption (Dynamic) ïż­Pay on number of executions ïż­Platform responsible for scale
  • 21. Unconference Web 2017 – 28.01.2017 Dynamic tier pricing ◇Pay per execution model - two meters, three units ‱ Number of executions ‱ Duration of execution x reserved memory
  • 22. Unconference Web 2017 – 28.01.2017 Dual abstraction ◇Serverless compute abstracts away the compute ◇Azure Functions Bindings abstract away the services you interact with
  • 23. Unconference Web 2017 – 28.01.2017 Supported bindings Type Service Trigger Input Output Schedule Azure Functions ✔ HTTP (REST or WebHook) Azure Functions ✔ ✔ Blob Storage Azure Storage ✔ ✔ ✔ Queues Azure Storage ✔ ✔ Tables Azure Storage ✔ ✔ Tables Azure Mobile Apps Easy Tables ✔ ✔ No-SQL DB Azure DocumentDB ✔ ✔ Streams Azure Event Hubs ✔ ✔ Push Notifications Azure Notification Hubs ✔
  • 24. Unconference Web 2017 – 28.01.2017 Azure Functions architecture ◇Azure Functions is built around the WebJobs SDK runtime. The WebJobs SDK makes it easy to react to events and work with data in a consistent abstracted fashion.
  • 25. Unconference Web 2017 – 28.01.2017 Supported Languages ◇1st class support ïż­Node/JavaScript ïż­C# ◇Experimental support ïż­F# ïż­Python ïż­PHP ïż­Batch ïż­Bash ïż­PowerShell
  • 26. Unconference Web 2017 – 28.01.2017 Trigger (data) Input Input code Output Output Input Functions Programming Model ◇Function as a single unit of work ◇Functions are executed per trigger ◇Functions have inputs and outputs
  • 27. Unconference Web 2017 – 28.01.2017 Demo
  • 28. Unconference Web 2017 – 28.01.2017 Conclusions
  • 29. Unconference Web 2017 – 28.01.2017 Focus on Business Logic Reduced Time To Market Reduced DevOps Benefits of Serverless?
  • 30. Unconference Web 2017 – 28.01.2017 Functions Programming Model - Best Practices ◇Functions should “do one thing” ◇Functions should be stateless ◇Functions should be idempotent ◇Functions should finish as quickly as possible 1
  • 31. Unconference Web 2017 – 28.01.2017 General practices for serverless ◇Thick clients; thin & stateless backends ïż­SPAs like Angular/React are your friend ïż­Be sure to enable CORS  ◇Sync is nice, but Async is nicer ïż­Async, queue based systems are more resilient ïż­Read and internalize the reactive manifesto - http://www.reactivemanifesto.org/ ïż­While synchronous work will happen, minimize the work done in a sync function and kick off to a queue based async process (HTTP status code 202, not 201 ) ◇Live and die by the cloud ïż­Like never before, develop on the cloud, test on the cloud, ship on the cloud ïż­Not just FaaS, but use other serverless tech that best solves the problem (like Logic Apps)
  • 32. Unconference Web 2017 – 28.01.2017 Azure Functions is open sourced ◇The runtime, “portal”, and templates are all on GitHub ïż­https://github.com/Azure/azure-webjobs-sdk ïż­https://github.com/Azure/azure-webjobs-sdk-extensions ïż­https://github.com/Azure/azure-webjobs-sdk-script ïż­https://github.com/Azure/azure-webjobs-sdk-templates ïż­https://github.com/ProjectKudu/WebJobsPortal ◇Open roadmap ïż­Use the cutting edge features ïż­Transparency into priorities and velocity ïż­Influence the direction of the project ◇Runtime is intended to be portable ïż­MIT License
  • 33. Unconference Web 2017 – 28.01.2017 Any questions? You can find me at: marco [dot] parenzan [at] 1nn0va [dot] it Thanks!