8
ODSERVERUJTE SE S LAMBDOU PETR FERSCHMANN

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

  • Upload
    develcz

  • View
    23

  • Download
    7

Embed Size (px)

Citation preview

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