Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Azure Functions

Introduction to Azure Functions

You may have a small bit of processing that needs to be done. You write the code, it's simple enough, but your big problem now is where to run the code? You consider the cloud but why spin up an entire VM just to run your small bit of code? There should be a way to just run your code and just be charged when its running and not when it's idol. Azure Functions was created just for this scenario. With a wide range of languages, including C#, you can quickly develop code that runs in the cloud that is triggered by an event or a scheduler.

In this session, I'll give a brief overview of Azure Functions and the new severless model. I'll show you how to create your own functions and I'll demo a function that parses web logs and outputs them to an Azure SQL Database.

Avatar for Richie Rump

Richie Rump

March 17, 2017

More Decks by Richie Rump

Other Decks in Programming

Transcript

  1. Agenda • What is Serverless? • What are Azure Functions?

    • What can you do with Azure Functions? • WHAT’S THE COST BRO?
  2. What is Serverless? A cloud computing execution model where the

    cloud provider fully manages (virtual) servers behind the scenes.
  3. What is Serverless? • No servers to configure • No

    VMs to spin up • Reduced cost • Slave to the service
  4. Serverless in Amazon Web Services • Storage: S3 • Function:

    Lambda • API: API Gateway • Database: • Aurora (Relational) • DynamoDB (NoSQL)
  5. Serverless in Microsoft Azure • Storage: Blob Storage • Function:

    Azure Functions • API: Azure Functions • Database: • SQL Database (Relational) • DocumentDB (NoSQL)
  6. Azure Functions • Simple way to run code in the

    cloud. • No need for infrastructure. • No need for an application.
  7. Azure Functions - Languages • C# • Node.js • F#

    • Python • PHP • Bash • Batch • PowerShell
  8. Azure Functions - Triggers • Blob • Webhook (GitHub!) •

    HTTP • Queue • Timer • Service Bus • Event Hub
  9. Azure Functions - Integrations • DocumentDB • Storage (blob, queues,

    topics) • Event Hubs • Mobile Apps (tables) • Notification Hubs • Service Bus (queues, topics) • GitHub • On-premises (using Service Bus)
  10. What does this all cost? Charged by • Execution Time

    • Number of Executions You get the first 400,000 GB-s and 1,000,000 executions free!