Slide 1

Slide 1 text

ServerlessͰPHP @PHPΧϯϑΝϨϯε2016 େਢլ ٛߒ (@oh_sky)

Slide 2

Slide 2 text

$ whoami େਢլ ٛߒ Twitter: @oh_sky झຯ ཱྀߦɾϚϥιϯɾμϜݟֶ ৬ۀ PHPϓϩάϥϚ @LocoPartners(http://loco-partners.com)

Slide 3

Slide 3 text

ͦ΋ͦ΋Serverlessͱ͸ • ϋʔυ΢ΣΞɾϛυϧ΢ΣΞͷ؅ཧΛશͯϓϩόΠ μଆʹ೚ͤΔ΋ͷ(PaaS/BaaS) • ͔ͭɺΠϕϯτͷൃੜͰτϦΨʔͷ͔͔Δ Ephemeralͳίϯςφ্Ͱ࣮ߦ͞ΕΔ΋ͷ(FaaS) • ͜͜Ͱ͸FaaSΛServerlessͱݺͿ

Slide 4

Slide 4 text

Serverlessք۾Ͱͷਓؾݴޠ

Slide 5

Slide 5 text

୅දతFaaSͷରԠݴޠ AWS Lambda Google Cloud Functions Azure Functions Node.js
 Java
 Python Node.js Node.js
 C#
 F#
 Python
 PHP
 Bash
 PowerShell Batch

Slide 6

Slide 6 text

Azure FunctionsͰPHP → →

Slide 7

Slide 7 text

Azure FunctionsͰPHP

Slide 8

Slide 8 text

Azure FunctionsͳΒ ServerlessͳΞϓϦέʔγϣϯΛ PHPͰ؆୯ʹ࡞੒Ͱ͖Δʂ

Slide 9

Slide 9 text

Ͱ΋΍ͬͺΓɺ AWS LambdaͰ PHPΛಈ͔͍ͨ͠

Slide 10

Slide 10 text

Q. AWS LambdaͰ PHP͸ಈ͔ͳ͍ͷ͔ʁ

Slide 11

Slide 11 text

AWS Lambdaͷಛ௃ • AWS Lambda͸Amazon Linux 2016.03 • Lambdaؔ਺͔Β೚ҙͷίϚϯυΛ࣮ߦͰ͖Δ • S3͔ΒϑΝΠϧΛΞοϓϩʔυͰ͖Δ

Slide 12

Slide 12 text

A. AWS LambdaͰPHP͸ಈ͘ɻ PHPͷ࣮ߦϑΝΠϧΛ Ξοϓϩʔυ͢Ε͹

Slide 13

Slide 13 text

AWS LambdaͰ PHPΞϓϦέʔγϣϯΛಈ͔͢ํ๏ http://qiita.com/oh-sky/items/646d326ee23ae640153f http://www.slideshare.net/oh-sky/php-55467177

Slide 14

Slide 14 text

࠷ޙʹ

Slide 15

Slide 15 text

PHPք۾Ͱ΋ServerlessΛ ੝Γ্͍͖͛ͯ·͠ΐ͏