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

AWSの「今」 - PHPのコードを素早く動かすための サービスのご紹介 / PHPCon2022 AWS Japan Session

Yuichiro SAITO
September 24, 2022

AWSの「今」 - PHPのコードを素早く動かすための サービスのご紹介 / PHPCon2022 AWS Japan Session

PHP で書いたコードをいち早く世に送り出すために、 AWS では昨年から次々と新しいサービスをリリースしています。その中から、フルマネージドのコンテナ実行基盤 AWS App Runner と、自動でデータベースがスケールできる Amazon Aurora Serverless v2 をご紹介します。

Yuichiro SAITO

September 24, 2022
Tweet

More Decks by Yuichiro SAITO

Other Decks in Technology

Transcript

  1. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    AWS
    PHP
    2022/09/24
    (@koemu)

    View full-size slide

  2. (@koemu)
    20
    2020 FinTech

    View full-size slide

  3. • AWS
    • AWS
    • AWS App Runner
    • Amazon Aurora Serverless v2



    View full-size slide

  4. z


    (RDBMS)
    • Writer
    • Reader

    View full-size slide

  5. AWS
    AWS App Runner
    • 1

    Amazon Aurora Serverless v2


    View full-size slide

  6. Amazon EC2
    AWS Cloud
    VPC
    Availability Zone 1
    Availability Zone 2
    Auto Scaling Group Auto Scaling Group
    Amazon EC2 Amazon Aurora
    AWS CodePipeline
    AWS CodeBuild AWS CodeDeploy
    OS
    Availability
    Zone

    View full-size slide

  7. AWS Cloud
    VPC
    Availability Zone 1
    Availability Zone 2
    Auto Scaling Group Auto Scaling Group
    AWS Fargate Amazon Aurora
    AWS CodePipeline
    AWS CodeBuild AWS CodeDeploy Amazon ECR
    OS

    View full-size slide

  8. AWS Cloud
    VPC
    Availability Zone 1
    Availability Zone 2
    Amazon Aurora Serverless v2
    AWS CodePipeline
    AWS CodeBuild AWS CodeDeploy Amazon ECR
    AWS App Runner
    RDB

    View full-size slide

  9. AWS App Runner

    View full-size slide

  10. AWS サービスを組み合わせてインフラを構築
    柔軟性が⾼い
    VPC (ネットワーク)
    Fargate (コンピュート)
    ECS (オーケストレーション)
    ALB (ロードバランサー)
    AWS Auto Scaling (オートスケール)
    CodeBuild (CI/CD)
    ⼿間がかかる

    View full-size slide

  11. AWS App Runner

    View full-size slide

  12. App Runner
    AWS
    API
    AWS

    View full-size slide

  13. AWS App Runner

    View full-size slide

  14. App Runner
    App Runner
    Amazon ECR
    Image Repo

    View full-size slide

  15. App Runner
    App Runner
    (VPC)
    App Runner
    Amazon ECR
    Image Repo

    View full-size slide

  16. App Runner
    (VPC)
    App Runner
    https://xxxxxxxx..awsapprunner.com

    View full-size slide

  17. AWS App Runner

    View full-size slide

  18. App Runner -

    View full-size slide

  19. (VPC)
    App Runner

    View full-size slide

  20. (VPC)
    App Runner

    View full-size slide

  21. AWS App Runner

    View full-size slide

  22. App Runner App Runner
    App Runner

    View full-size slide

  23. App Runner - Console

    View full-size slide

  24. App Runner - Console
    HTTP 2XX 4XX 5XX
    App Runner

    View full-size slide

  25. AWS App Runner
    https://docs.aws.amazon.com/apprunner/latest/dg/what-is-apprunner.html
    https://aws.amazon.com/jp/blogs/news/introducing-aws-app-runner/
    https://aws.amazon.com/jp/blogs/news/new-for-app-runner-vpc-support/
    https://www.apprunnerworkshop.com/
    https://github.com/aws/apprunner-roadmap/projects/1
    https://aws.amazon.com/jp/apprunner/pricing/

    View full-size slide

  26. Amazon Aurora Serverless v2

    View full-size slide

  27. Amazon Aurora Serverless v2

    View full-size slide

  28. Storage fleet
    Amazon Aurora Serverless v2

    View full-size slide

  29. Storage fleet
    Compute fleet
    Amazon Aurora Serverless v2

    View full-size slide

  30. Storage fleet
    Compute fleet
    ⾃動スケール
    ⾃動スケール
    Amazon Aurora Serverless v2
    • CPU
    1

    https://aws.amazon.com/jp/blogs/news/amazon-aurora-serverless-v2-is-
    generally-available-instant-scaling-for-demanding-workloads/

    View full-size slide

  31. 0.5ACU 0.5
    128ACU 0.5
    “ACU”
    1ACU=RAM 2GiB
    CPU

    View full-size slide

  32. Aurora Serverless v2 のシームレスなスケーリング
    Aurora Serverless v2 ( OLTP )
    同時実⾏数
    が増加
    同時実⾏数
    が増加
    同時実⾏数
    が増加
    処理終了
    Aurora Serverless v2
    ( )
    ( CommitThroughput)
    ( )

    View full-size slide

  33. もっと Amazon Aurora Serverless v2 を知りたい⽅へ
    https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html
    https://aws.amazon.com/jp/blogs/news/amazon-aurora-serverless-v2-is-generally-available-
    instant-scaling-for-demanding-workloads/
    https://www.youtube.com/watch?time_continue=350&v=b2Tl6SsWC-M&feature=emb_title
    https://aws.amazon.com/jp/rds/aurora/pricing/

    View full-size slide

  34. AWS App Runner
    • ( )

    • 25
    Amazon Aurora Serverless v2
    • MySQL 8.0, PostgreSQL 13
    • Reserved Instance, Savings Plans
    (2022 9 )

    View full-size slide

  35. AWS Cloud
    VPC
    Amazon Aurora Serverless v2
    AWS CodePipeline
    AWS CodeBuild AWS CodeDeploy Amazon ECR
    AWS App Runner
    AWS Fargate
    Amazon EventBridge
    RDB

    View full-size slide

  36. • Amazon App Runner
    • Amazon Aurora Serverless v2 RDBMS
    • AWS
    • AWS SA

    View full-size slide

  37. AWS AWS Japan


    • AWS OK

    View full-size slide

  38. AWS App Runner PHP
    ( node.js, Java(Amazon Corretto) Python )
    GitHub
    Issue 👍
    https://github.com/aws/apprunner-roadmap/issues/31

    View full-size slide

  39. Thank you
    © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

    View full-size slide