Serverless w Azure, czyli Azure Functions
-
Upload
lukasz-kaluzny -
Category
Technology
-
view
46 -
download
2
Transcript of Serverless w Azure, czyli Azure Functions
![Page 1: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/1.jpg)
Serverless w Azure, czyli Azure Functions
Łukasz KałużnyWarszawa, 12 Stycznia 2017IT Akademii j-labs
![Page 2: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/2.jpg)
Łukasz KałużnyCloud Architect w Lingaro
MVP: Microsoft Azurehttp://blog.kaluzny.pro | https://facebook.com/kaluznypro |
https://twitter.com/kaluzaaa
![Page 3: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/3.jpg)
http://www.hanselman.com/blog/WhatIsServerlessComputingExploringAzureFunctions.aspx
![Page 4: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/4.jpg)
![Page 5: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/5.jpg)
Przetwarzanie zdarzenia "bez serwerów”
Szybkie tworzenie natywnych aplikacji chmurowych
Łatwo zapanować nad uruchomieniem na podstawie zdarzeń w usługach
Funkcje mogą być opublikowane jako HTTP API
Funkcje mogą się skalować na podstawie obciążenia
![Page 6: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/6.jpg)
C#
F#
Node.js
Python
PowerShell
PHP
bash
![Page 7: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/7.jpg)
Czym jest "Funkcyjny" model programowania?Funkcja jest jednostką pracy
Funkcje są wykonywane; mają swój początek i koniec
Funkcje mają wejścia i wyjścia
a.k.a. "Nano Services"
![Page 8: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/8.jpg)
Jaka jest architektura "funkcji”?
Pomaga rozdzielić logikę biznesową
Wspiera takie wzorce jak CQRS
Łatwiejsze do aktualizacji, skalowania, czy schowania za load balancerem
Nie ma serwera do zarządzania !
![Page 9: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/9.jpg)
Benefity
Nie tylko sprzętowe "serwery", ale również oprogramowanie jest zarządzane zaCiebie
Skupienie się na logice biznesowej, a nie rozwiązywaniu problemów technicznych
Szybki start dla nauki, Proof of concept (boty, AI etc.)
![Page 10: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/10.jpg)
Event Drive Model
“When ___, get ___, do ___, and output ___”
![Page 11: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/11.jpg)
![Page 12: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/12.jpg)
![Page 13: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/13.jpg)
![Page 14: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/14.jpg)
![Page 15: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/15.jpg)
DEMO - create thumbnail
![Page 16: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/16.jpg)
![Page 17: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/17.jpg)
DEMO - IoT - Device-to-Cloud
![Page 18: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/18.jpg)
DEMO - IoT - Cloud-to-Device
![Page 19: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/19.jpg)
DEMO - proxy for cognitive services
![Page 20: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/20.jpg)
DEMO - powershell
![Page 21: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/21.jpg)
DEMO - HTTP API
![Page 22: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/22.jpg)
Troy Hunt - Have I been pwned
https://www.troyhunt.com/azure-functions-in-practice/
Przed
Po
![Page 23: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/23.jpg)
Pytania?
![Page 24: Serverless w Azure, czyli Azure Functions](https://reader033.fdocuments.net/reader033/viewer/2022052705/58e9edbb1a28ab9c208b5393/html5/thumbnails/24.jpg)
Jak zacząć?
Try Azure -> https://azure.microsoft.com/en-us/free/
Try Functions –> https://functions.azure.com
Try App Service –> https://tryappservice.azure.com
Kod źródłowy funkcji -> https://github.com/kaluzaaa/azure-functions-examples