Pre-check Browser Font Size Visual Studio Font Size Start Cosmos DB local storage browser
Infrastructure OS and Framework There is zero administrative tasks You just deploy your code (function) and it runs
Serverless compute scales quickly (almost instantly) and vastly Automatically scales within seconds
Difference between PaaS(Platform as a Service) With PaaS, you still need to select the OS, VM Size, Scaling and pay for that even it’s not being utilized
Simplified integration Azure Cosmos DB, Storage, Service Bus, Notification Hubs, SendGrid, Twillio etc.
Triggers: A function must have exactly one trigger Bindings provide a declarative way to connect to data from within your code. Bindings are optional and a function can have multiple input and output bindings.
Authorization Types Anonymous Function Admin – Host Keys -> _master
OAuth Providers: Azure Active Directory, Facebook, Google, Twitter, and Microsoft Account
Multiple Azure functions as a Single API Surface
Avoid long running functions Default 5 minutes, Max 10 minutes Cross function communication Use storage queues for cross function communication Write functions to be stateless Functions should be stateless and idempotent if possible Explain: Idempotent
Write defensive functions Query for 10,000 rows in a db Create a queue message for each of those rows to process further down the line What if breaks at 5000 Answer: Track items in a set that you’ve completed.
Use async code but avoid blocking calls Avoid getting Result
Serverless Computing With Azure Functions
Serverless Computing with
Microsoft MVP (Visual Studio & Development