Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serverless PHPの中身に迫る Brefの中身を覗いてみよう / A look inside Serverless PHP Take a peek inside Bref

shiro seike
September 16, 2023

Serverless PHPの中身に迫る Brefの中身を覗いてみよう / A look inside Serverless PHP Take a peek inside Bref

PHPカンファレンス沖縄2023
https://phpcon.okinawa.jp/

shiro seike

September 16, 2023
Tweet

More Decks by shiro seike

Other Decks in Programming

Transcript

  1. @seike 46 0 - - @seike 46 0 - AWS

    Community Builder Serverless - Fusic - / - / - - PHP - PHP - PHP - - 055538A - B 2 2
  2. 
 
 
 Cloud Native Computing Foundation CNCF Serverless Whitepaper

    v 1 . 0 https://github.com/cncf/wg-serverless/tree/master/whitepapers/serverless-overview 5
  3. FaaS 6 FaaS(Function as a Service) AWS AWS Lambda Azure

    Azure Functions 
 GCP Google Cloud Functions Google Cloud Run AWS Lamnda PHP
  4. Bref Bref PHP OSS AWS Lambda PHP AWS Lambda PHP

    PHP 
 PHP Bref PHP 
 PHP AWS Lambda Laravel Symfony PHP CLI 8
  5. 
 
 Developer Community AWS Lambda 
 PHP PHP Deploy

    
 PHPer 
 Bref 9 service: app-phpcon-okinawa provider: name: aws region: ap-northeast- 1 plugins: - ./vendor/bref/bref functions: api: handler: index.php description: '' runtime: php- 8 2 -fpm timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds) events: - httpApi: '*' # Exclude files from deployment package: patterns: - '!node_modules/**' - '!tests/**' $ composer require bref/bref $ vendor/bin/bref init
  6. 26 Bref AWS Lambda API Gateway 
 
 Bref AWS

    Lambda 
 AWS APIGatewayV 2 HTTPEvent Bref Lambda
  7. 04