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

Advanced Serverless Azure: Extending Azure Func...

Advanced Serverless Azure: Extending Azure Functions to meet your Runtime Infrastructure Needs

Bindings and runtime extensions are the engines of Azure Functions that fuel Azure-based Serverless architectures. In this short talk, Christian Weyer will show you in a live coding session how you can build and use your own custom bindings and extensions. Based on a real project’s requirements, he will walk you through the internals of Azure Functions and create a fully functional custom binding that implements patterns for reusing custom infrastructure needs.

Christian Weyer

April 09, 2019
Tweet

More Decks by Christian Weyer

Other Decks in Programming

Transcript

  1. Advanced Serverless Azure: Extending Azure Functions to meet your Runtime

    Infrastructure Needs Christian Weyer @christianweyer CTO
  2. 2 § Founder & CTO at Thinktecture AG § Personal

    focus on § Mobile & web-based application architectures § Interoperability, cross-device § Pragmatic end-to-end solutions § Cloud-native & serverless architectures § Independent Microsoft Regional Director § Microsoft MVP for ASP.NET (Architecture) ASPInsider, AzureInsider § Google GDE for Web Technologies [email protected] @christianweyer https://www.thinktecture.com Christian Weyer Advanced Serverless Azure Extending Azure Functions to meet your Runtime Infrastructure Needs
  3. 3 § Goal: integrate & abstract existing infrastructure to lift

    productivity § Azure Functions 101 - FaaS in Azure § Existing bindings & triggers § Extensibility scenario: Integrating with SQL Server / Azure SQL (when not using existing code) § Let's build an extension: Input binding for SQL Server queries § Code walkthrough § User: Surfacing in code § Extension : Hooking it up § Extension: Registering the internal logic § Extension: Sanitizing input § Extension: Querying & handling the data Extending Azure Functions to meet your Runtime Infrastructure Needs Advanced Serverless Azure Our little journey
  4. Surfacing in user code SqlServerAttribute Advanced Serverless Azure Extending Azure

    Functions to meet your Runtime Infrastructure Needs 4
  5. Hooking it up AddSqlServer(this IWebJobsBuilder builder) Advanced Serverless Azure Extending

    Azure Functions to meet your Runtime Infrastructure Needs 5
  6. Querying & handling the data SqlServerBuilder<T> Advanced Serverless Azure Extending

    Azure Functions to meet your Runtime Infrastructure Needs 8