Azure Functions 2.0 - serverless architecture with real world example
1. What is serverless?
2. Why it matters?
3. What is Azure Functions?
4. Features
5. Triggers & Bindings
6. Development
7. Business case
8. CI Setup
9. Monitoring
10. Costs
allows you to set up a piece of code to be executed as a reaction to an event. Gojko Adzic There are ideas to stop talking about serverless and start talking about servicefull, then there’s also a half-serious proposal to rename the whole thing to Jeff. Paul Johnston https://serverless.zone/serverless-is-just-a-name-we-could-have-called-it-jeff-1958dd4c63d7
financial benefits for good design and you get financial penalty for bad design • Promotes better engineering practices • You can focus on writing modular apps, made of really small autonomous components without worrying about: deployment, scaling, monitoring etc.
F#, JavaScript (Node 8 & 10), Java 8 • Pay-per-use pricing model - Pay only for the time spent running your code. See the Consumption hosting plan option in the pricing section. • Bring your own dependencies - Functions supports NuGet and NPM, so you can use your favorite libraries. • Integrated security - Protect HTTP-triggered functions with OAuth providers such as Azure Active Directory, Facebook, Google, Twitter, and Microsoft Account. • Simplified integration - Easily leverage Azure services and software-as-a- service (SaaS) offerings: SendGrid, Twilio • Flexible development - Code your functions right in the portal or set up continuous integration and deploy your code through GitHub, local Git and other supported development tools. • Open-source - The Functions runtime is open-source and available on GitHub. https://docs.microsoft.com/en-gb/azure/azure-functions/functions-overview
Azure provides all of the necessary computational resources. You don't have to worry about resource management, and you only pay for the time that your code runs. • App Service plan - Run your functions just like your web, mobile, and API apps. When you are already using App Service for your other applications, you can run your functions on the same plan at no additional cost.
pay for gigabyte seconds (GB-s) resources that are actually used • Functions pricing includes a monthly free grant of 400,000 GB-s • Time limit max. 10 minutes (default set to 5 minutes) • Max 1,5GB RAM is allocated per function instance • Autoscaling provided out of the box by Azure Runtime: different heuristics for different triggers (for example Queue trigger heuristic is based on queue length and oldest message date). Scales up and down automatically.
– VNet connectivity – Always on cores (so you don’t hit cold start) – Unlimited execution duration – Same rapid scale out and scale in of consumption – REQUIREMENT: Pay for 1 core 24/7
support with support for integration with various OAuth providers • In HTTP triggered functions we have access to HTTP request so all kinds of HTTP Auth can be implemented – for example JWT token validation