ServerlessでPHP

 ServerlessでPHP

PHPカンファレンス2016 http://phpcon.php.gr.jp/2016/
LTで発表した資料

E8c021e729dd97bba16bf37a9e7c755b?s=128

Yoshihiro Ohsuka

November 03, 2016
Tweet

Transcript

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

  2. $ whoami େਢլ ٛߒ Twitter: @oh_sky झຯ ཱྀߦɾϚϥιϯɾμϜݟֶ ৬ۀ PHPϓϩάϥϚ

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

  4. Serverlessք۾Ͱͷਓؾݴޠ

  5. ୅දతFaaSͷରԠݴޠ AWS Lambda Google Cloud Functions Azure Functions Node.js
 Java


    Python Node.js Node.js
 C#
 F#
 Python
 PHP
 Bash
 PowerShell Batch
  6. Azure FunctionsͰPHP → →

  7. Azure FunctionsͰPHP

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

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

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

  11. AWS Lambdaͷಛ௃ • AWS Lambda͸Amazon Linux 2016.03 • Lambdaؔ਺͔Β೚ҙͷίϚϯυΛ࣮ߦͰ͖Δ •

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

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

  14. ࠷ޙʹ

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