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

Future of Serverless

kensh
August 31, 2023

Future of Serverless

近年、サーバーレスアーキテクチャが注目されています。サーバー管理やスケーリングが柔軟に行えることでアプリケーションのコア開発により注力でき、外部のFaaSを利用するためサーバー管理の人員を最適化できる等、開発における資源の効率化が可能となる効果に関心が集まっています。

今回は、サーバーレスアーキテクチャを導入し、コストを抑え、スピード感のあるサービス開発を行っている現場の方々にお話を伺い、その有用性や成功や失敗、工夫点等などについて、LTにて登壇者の方々に事例をお話しいただきます。

kensh

August 31, 2023
Tweet

More Decks by kensh

Other Decks in Technology

Transcript

  1. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Kensuke Shimokawa
    Snr. Serverless Specialist
    Amazon Web Services Japan
    Serverless の未来と AWS Lambda

    View Slide

  2. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2
    Kensuke Shimokawa
    Amazon Web Services Japan
    Snr. Serverless Specialist
    Slides https://speakerdeck.com/_kensh
    Qiita https://qiita.com/_kensh

    View Slide

  3. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3

    View Slide

  4. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 4
    13th Nov 2014

    View Slide

  5. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Serverless
    Serverless Application とは、
    “誰も使用していないときは、
    データ ストレージのコストを除いて、
    実行に費用がかからない.”
    5

    View Slide

  6. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6

    View Slide

  7. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7
    静的コンテンツ
    動的データ
    記事/試合状況
    フォロー状況管理
    認可
    (フェデレーション)
    ログの保存
    ETL処理
    ログ収集 データ分析
    クローリング
    記事に対する処理
    (タグ付けなど)
    変更通知
    画像に対する処理
    (顔座標の検出)
    コードで実現 インテグレーションで実現

    View Slide

  8. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8

    View Slide

  9. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9

    View Slide

  10. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10
    Services Services
    Integration
    Event Driven

    View Slide

  11. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11
    Integration
    API
    Destination
    API
    Gateway
    Lambda Batch
    CloudWatch
    ECS
    EventBridge
    Bus
    Kinesis
    Data Firehose
    Inspector
    Kinesis
    Data Streams
    Redshift
    SageMaker
    pipeline
    SNS SQS
    Step
    Functions
    Event Driven

    View Slide

  12. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12
    Integration
    API
    Destination
    API
    Gateway
    Lambda Batch
    CloudWatch
    ECS
    EventBridge
    Bus
    Kinesis
    Data Firehose
    Inspector
    Kinesis
    Data Streams
    Redshift
    SageMaker
    pipeline
    SNS SQS
    Step
    Functions
    EventBridge Pipes
    Event Driven

    View Slide

  13. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13
    サーバーレス のサイズ感と組み立て

    View Slide

  14. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14
    VM
    Container Function

    View Slide

  15. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 15
    VM
    Container Function
    たくさんのことを
    一つのインスタンスで
    まぁまぁのことを
    複数のインスタンスで
    ちょっとのことを
    たくさんのインスタンスで

    View Slide

  16. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16
    Function
    ちょっとのことを
    たくさんのインスタンスで
    たくさんの処理を
    ワークフローで

    View Slide

  17. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17
    Function
    ちょっとのことを
    たくさんのインスタンスで
    たくさんの処理を
    ワークフローで
    AWS Step Functions

    View Slide

  18. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 18
    6 5 4 3 2 1
    7
    Array
    56
    6 5 4 3 2 1
    7
    MAP
    f (a) = 2 × a
    12 10 8 6 4 2
    14
    Reduce
    g (b, c) = b + c

    View Slide

  19. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19
    Dec 2022

    View Slide

  20. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 20
    6 5 4 3 2 1
    7
    Distibuted MAP
    f (a) = 2 × a
    12 10 8 6 4 2
    14
    最大 10,000 の並列同時実行をサポート

    View Slide

  21. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21
    AI Chat と Lambda

    View Slide

  22. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22
    URL
    Mobile
    client
    AI Chat
    Chunked
    Chunked
    AWS Lambda response streaming

    View Slide

  23. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 23
    Java と Lambda

    View Slide

  24. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    Java 11, Java 17 の Corretto ランタイム
    24
    Init
    Encrypted snapshot
    stored
    Tiered low-
    latency
    cache
    Invoke
    Resume
    Invoke
    Resume
    Invoke
    Resume

    View Slide

  25. © 2023, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
    Java 開発者に捧ぐ、
    使える「Java on Serverless」
    15:00 - 15:30 サーバーレスの今
    15:30 - 16:15 Java on Lambda
    16:15 - 16:55 Java によるサーバーレス開発
    16:55 – 17:25 PowerTools for Java
    申込サイト
    https://pages.awscloud.com/eib-java-on-serverless-230907-reg.html
    15:00から
    好評につき、追加情報を⼊れて再演!

    View Slide

  26. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26
    Serverless の未来とは?

    View Slide

  27. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
    未来がどうなるかはわからないけど、、
    • Serverless が担うビジネスロジック、ワークロードは広がる
    • Lambda が担ってきた “糊付け” としての役割は EventBridge や
    Step Functions に多く譲っていくことになりそう
    27
    今後の期待は、、
    • 今は想像もしていないようなワークロードで Lambda が使われて
    いくのではないか?
    • 面白いユースケースがあれば、@_kensh まで DM ください

    View Slide

  28. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 28

    View Slide