Download presentation
Presentation is loading. Please wait.
Published byChester Hawkins Modified over 6 years ago
1
@marco_parenzan Azure Functions e Logic Apps I tuoi coltellini svizzeri per gestire i tuoi dati in un SQL Database
3
@marco_parenzan .NET, IoT and Azure Developer, Trainer and Consultant Microsoft MVP 2017 for Azure Book Packt, LSWR Community Lead per 1nn0va
4
What SQL Database needs
5
What SQL Database needs
SQL Database is Database as a Service It is only the database Vs. SQL20xx Almost language syntax aligned Deprecated features Migrate features to External/Other Azure Services Overlapping features (ex. JSON)
6
Serverless as glue
7
Choose your abstraction
8
Serverless manifesto Function are the unit of deployment and scaling. Scales per request Users cannot over- or under-provision capacity. Never pay for idle (no cold servers/containers or their costs) Trigger-based invocation code run because of an event happened and has to be handled
9
Serverless as a bridge for SQL Databases
Import/Export Other data formats Data manipulations Schedules Other Azure services bridges
10
What is Azure Serverless
A serverless nirvana? Microsoft Azure CTO Mark Russinovich on the future of the cloud
11
Functions
12
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
13
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. App Service Dynamic Runtime WebJobs Core SDK WebJobs Extensions WebJobs Script Runtime Triggers Inputs/ Outputs Language Abstraction Code Config
14
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 per execution model - two meters, three units Number of executions Duration of execution x reserved memory
15
Supported bindings Type Service Trigger Input Output Schedule
Azure Functions ✔ HTTP (REST or WebHook) Blob Storage Azure Storage Queues Tables No-SQL DB Azure CosmosDB Streams Azure Event Hubs Push Notifications Azure Notification Hubs IoT Azure IoT Hub
16
Supported Languages 1st class support Experimental support
Node/JavaScript C# (.NET Framework 4.7.x) F# Experimental support .NET Core Linux Containers Java Python PHP Batch Bash PowerShell
17
Developing Functions Portal Local runtime Visual Studio 2017 Visual Studio Code Windows (.NET 4.6.1) 1.0 Windows/Linux (.NET Core 2.0) 2.0
18
Functions Programming Model
Trigger (data) Input Input Input Output code Function as a single unit of work Functions are executed per trigger Functions have inputs and outputs Output
19
Durable Functions Enable “long running” functions while maintaining local state. Simplify complex Function coordination (chaining, etc.) Easily call a Function from another Function All of the above using code-only
20
Functions and Logic Apps
Functions and Logic Apps work great together and that integration will only get better. You can orchestrate Functions using Logic Apps today. Durable Functions overlaps with Logic Apps, one function calling another, but: Offers advance ‘code only’ orchestration ‘like’ capabilities to function Enables "long running" functions Enables "advance" scenarios/patterns which are difficult otherwise: async HTTP, map reduce, actors, etc.
21
Logic Apps
22
Shared with Functions Serverless App Service based Triggers (templated)
23
Unique for Logic Apps «Older»/Mature(?)
Implement and orchestrate visually designed integration workflows Orchestrate distributed microservices Or Functions Every action is a an http endpoint Connectors Declarative No code designer for rapid creation (mostly?)
24
Logic Apps Connectors (120+)
25
Concepts Simple-to-advanced flow control like conditions, loops, exception handling, and parallel Multiple Patterns Manual Invocation Event Based Scheduled Workflows Triggers Actions Managed APIs Flow structures
26
Workflow Definition Language
“Code Behind” Basic Structure
27
Pricing Different billing model from Function App No App Service Plan Per action (each step in a Workflow is an action, also a trigger) More details ACTIONS EXECUTED PER MONTH PRICE PER ACTION EXECUTION First 250K actions € /action 250K–1M actions € /action 1M–50M actions € /action 50M–100M actions € /action 100M+ actions € /action
28
Scale & Performance Different billing model from Function App
100MB message size 90 days run duration 1 sec to 500 days recurrence interval 100’000 ForEach items 10’000 actions executions per 5 minutes Request Timeout 120 Seconds Run duration 90 days ForEach items 100,000 Actions executions per 5 minutes Actions per workflow 250 Allowed action nesting depth 5 Triggers per workflow 10
29
Why do we need “Durable Functions”
Enable “long running” functions while maintaining local state. Simplify complex Function coordination (chaining, etc.) Easily call a Function from another Function All of the above using code-only
30
Cognitive Services
31
Cognitive Services Search Vision Speech Language Knowledge
Microsoft Build 2016 9/18/2018 3:33 AM Cognitive Services Search Access billions of web pages, images, videos, and news with the power of Bing APIs Vision From faces to feelings, allow your apps to understand images and video Speech Hear and speak to your users by filtering noise, identifying speakers, and understanding intent Language Process text and learn how to recognize what users want Knowledge Tap into rich knowledge amassed from the web, academia, or your own data © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
32
microsoft.com/cognitive
Microsoft Build 2016 Search 9/18/2018 3:33 AM Vision Speech Language Knowledge Bing Web Search Bing Web Search Computer Vision Bing Speech Bing Spell Check Bing Spell Check Academic Knowledge Bing Custom Search Bing Custom Search Custom Vision Service Custom Speech Service Linguistic Analysis Custom Decision Service Bing Image Search Bing Image Search Emotion Speaker Recognition Language Understanding Knowledge Exploration Bing Video Search Bing Video Search Face Translator Text Analytics QnA Maker Bing News Search Bing News Search Video WebLM Recommendations Bing Autosuggest Bing Autosuggest Video Indexer Entity Linking Content Moderator microsoft.com/cognitive © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
33
Conclusions
34
Conclusions Function Logic Apps fast and easy tool to start
Great growth potential Lot of investments by Microsoft and the entire Cloud world Bot Framework (and potentially others tools) bonus Logic Apps «Biztalk restart» Declarative/visual advantage Connectors growth
35
Thanks You can find me at: marco [dot] parenzan [at] 1nn0va [dot] it
@marco_parenzan Code at: Thanks
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.