Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

0

Share

Download to read offline

Building serverless applications on azure

Download to read offline

Functions17 Talk

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Building serverless applications on azure

  1. 1. Joe Raio Senior Technical Evangelist Commercial Software Engineering joe.raio@microsoft.com @joescars github.com/joescars Based in Miami, FL United States. Proud father. Passions are Music, Space, Aviation & all things Technology
  2. 2. { "bindings": [ { "name": "myQueueItem", "type": "queueTrigger", "direction": "in", “queueName": "outputqueue", "connection": "AzureWebJobsStorage" }, { "type": "blob", "name": "outputBlob", "path": "outblob/{rand-guid}.txt", "connection": "AzureWebJobsStorage", "direction": "out" } ] } module.exports = function (context, myQueueItem, myOutputBlob) { context.log('JavaScript queue trigger function ', myQueueItem); //validate if (myQueueItem.apiId && myQueueItem.method && myQueueItem.body) { const value = DoWork(myQueueItem); if(value) { context.bindings.myOutputBlob = JSON.stringify(value); //myOutputBlob = JSON.stringify(value); } } else { //handle error queue item missing params context.log('invalid queue item ', myQueueItem); } context.done(); }
  3. 3. public static void Run(byte[] image, string filename, Stream outputBlob, TraceWriter log) { log.Info($"Processing image: {filename}"); var imageBuilder = ImageResizer.ImageBuilder.Current; imageBuilder.Build( image, outputBlob, new ResizeSettings(640, 400, FitMode.Max, null), false); } { "bindings": [ { "name": "image", "type": "blobTrigger", "direction": "in", "path": "card-input/{filename}.jpg", "connection": "AzureWebJobsStorage" }, { "type": "blob", "name": "outputBlob", "path": "card-output/{filename}.jpg", "connection": "AzureWebJobsStorage", "direction": "out" } ] }
  4. 4. ….and more!
  5. 5. Demo: Building Serverless Applications
  6. 6. https://www.npmjs.com/package/azur e-functions-core-tools
  7. 7. https://aka.ms/2017functiontools
  8. 8. https://aka.ms/azureeventgrid https://aka.ms/durablefunctions
  9. 9. https://github.com/Azure/Azure-Functions Azure WebJobs SDK script Azure WebJobs SDK Azure WebJobs SDK extensions Azure Functions CLI Azure Functions Portal Azure Functions templates Azure Functions samples
  10. 10. https://aka.ms/TryAppService https://aka.ms/func-github
  11. 11. Joe.Raio@Microsoft.com Download this presentation: slideshare.net/joeraio

Functions17 Talk

Views

Total views

401

On Slideshare

0

From embeds

0

Number of embeds

27

Actions

Downloads

16

Shares

0

Comments

0

Likes

0

×