Successfully reported this slideshow.
Your SlideShare is downloading. ×

Serverless architecture in Python with Azure Functions, Benjamin Talmard

Ad

Complex
Framework
Micro serviceLogic in the
Cloud
Logic inside
the client
Monolithic
applications
Loosely
coupled
componen...

Ad

Event-driven
scale
Sub-second
billing
Abstraction
of servers

Ad

Infrastructure as a Service
Batch
Application
Logic Apps
Turnkey managed services
SQL
Database
Redis
Cache
NoSQL
Search
HD...

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Loading in …3
×

Check these out next

1 of 36 Ad
1 of 36 Ad

More Related Content

Slideshows for you (18)

More from Pôle Systematic Paris-Region (20)

Serverless architecture in Python with Azure Functions, Benjamin Talmard

  1. 1. Complex Framework Micro serviceLogic in the Cloud Logic inside the client Monolithic applications Loosely coupled components
  2. 2. Event-driven scale Sub-second billing Abstraction of servers
  3. 3. Infrastructure as a Service Batch Application Logic Apps Turnkey managed services SQL Database Redis Cache NoSQL Search HDInsight Stream Analytics Machine Learning Event Hubs Marketplace Active Directory ... Cognitive Services Power BI Embedded API Management Media Services Key Vault Platform as a Service App Service Service Fabric Functions Logic Apps Serverless
  4. 4. Every 15 minutes Clean tableFind and clean invalid data
  5. 5. File added to Blob Storage Transform CSV to data rows CSV Power BI Chart graphic
  6. 6. Loaded web page calls WebHook Completed pageCreate ad based on user p rofile
  7. 7. Photo taken and WebHook called Stores in blob storage Produces scaled images
  8. 8. ? ... Cortana Analytics answers questionsMessage sent to Chatbot Chatbot sends response
  9. 9. Stream Analytics Event Hubs Azure SQL database Job Azure Functions Twillio phAlerts phAlert message Hub #1 Adafruit Feather Mo Wifi Arduino phProbe Wifi Phone IoT Hub Resource group Continuous Monitoring
  10. 10. https://functions.azure.com/try http://azure.com/ https://docs.microsoft.com/en-us/azure/azure- functions/ https://github.com/Azure/Azure-Functions @AzureFunctions @lindydonna @crandycodes @yochayk @benjiiim

Editor's Notes

  • Mono-lithic application -> loosely coupled components
    Events happening async outside client application
    Build/use micro-functionality to react to a single event
  • Abstraction of servers, infrastructure and configuration of operating system
    “Serverless Computing” doesn’t mean that there is no server.
    But it means that as an user of the service, you don’t have to know that they are some, which characteristics they have, what is the configuration and so on.
    You don’t have to handle all the technical and administrative aspects of managing servers (high availability, backup, monitoring, scaling, …) and you care only about the service.
    Event-driven scale
    Sacling of the service is done transparently for the developer, based on the real usage of it.
    If your company is broadcasted on a TV show, it will scale up to serve the requests. If the day before, you need to call the function once, it will scale down without any configuration.
    Sub-second billing
    Obviously, as a cloud service, you only pay for what you use, but the granularity is so small that we can talk about sub-second billing. I’m sure you’ve already seen some servers used at 10%, 1% or even less of their capacity. With serverless, that’s over.
  • Already deployed function app. This is the Function App portal, inside the Azure portal.
    Create a new function, custom, python HttpTrigger
    Run a show the log
    Copy the URL, paste it on PostMan, with a POST and paste the Json payload before modifying it and send

    In the Integrate tab, explain the notions of Triggers, Inputs and Outputs
    Triggers are the one which trigger the function but does not always bring data. (http brings data through the querystring and the body but a timer won’t bring anything useful)
    Input can be used to configure connectors to Azure services or external services to grab data when a trigger has triggered the function
    Outputs can be used to configure connectors that will be used for your code to output data easily, without writting all the code needed to connect to the service

    Show the Advanced editor in the integrate tab and the files in the code editor to tell people that everything can be done in plain files and deployed through Git for example.
  • Picture of a flower farm.
    When growing flowers at high scale like this one, you have to monitor a few things, and to be proactive to detect any problem a flower can have.
    One way to do that is to check the PH, the acidity of the water you bring to the flowers and the acidity of the water coming out. And if there is a difference, that might mean that you have a problem.
  • A ph sensor sending data to Azure :
    Azure IoT Hub for bi-derectional communication,
    Then Azure Stream Analytics to do some calculation
    Azure SQL database to Store
    Power BI to display the data on a dashboard
    And if the calculation shows a problem, an item is sent to a queue with Azure Event Hubs
    This queue is used a a trigger to begin a Azure Functions, which has the code needed to send an alert to an operator on his phone

×