+ All Categories
Home > Internet > Petr Ferschmann: AWS Lambda aneb ať žije funkce jako služba

Petr Ferschmann: AWS Lambda aneb ať žije funkce jako služba

Date post: 12-Apr-2017
Category:
Upload: develcz
View: 23 times
Download: 7 times
Share this document with a friend
8
ODSERVERUJTE SE S LAMBDOU PETR FERSCHMANN
Transcript
Page 1: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

ODSERVERUJTE SE S LAMBDOU PETR FERSCHMANN

Page 2: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

VIDEOPODCASTnejen pro vývojáře

Page 3: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

Vysoká dostupnost

Page 4: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

AWS Lambda

export default function (event, context, callback) { console.log(event); const response = { statusCode: 200, headers: { "x-custom-header":"My Header Value” }, body: JSON.stringify({"message":"Hello World!"}) }; callback(null, response); };

Page 5: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

Cena

▸ $0.20 za 1 mil. spuštění

▸ 1000 ms x 1 GiB = $0.0000166760 * 60 * 24 s x 1 GiB = $1,44

Page 6: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

Typy událostí pro spuštění Lambda

1. HTTP Request / API Gateway2. Přímé zavolání 3. Události v platformě

Page 7: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

AWS Lambda

export default function (event, context, callback) { console.log(event); const response = { statusCode: 200, headers: { "x-custom-header":"My Header Value” }, body: JSON.stringify({"message":"Hello World!"}) }; callback(null, response); };

Page 8: Petr Ferschmann:  AWS Lambda aneb ať žije funkce jako služba

8

Petr Ferschmann

@fersman

[email protected]

www.ferschmann.cz


Recommended