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

400超Lambda構成アプリケーションの漸進的リアーキテクチャ

Shodai Suzuki
March 07, 2025
1.4k

 400超Lambda構成アプリケーションの漸進的リアーキテクチャ

2025-03-07「事業成長を加速する技術基盤 5社が語るリプレイス・リアーキテクチャの最前線」のLT資料です。

Shodai Suzuki

March 07, 2025

Transcript

40 slides
  1. 既存アーキテクチャ Amazon Cognitoで認証 API Gawatewayと組み合わせ認可 APIのエンドポイント毎にlambda 関数を管理 e.g. GET /users,

    POST /users API Gateawayが複数 severless(CloudFormation) でリソース管理している CloudFormationの定義リソー ス数に上限(500/stack)がある API Gawateway + Lambdaを 特定のまとまりでスタック分割
  2. Lambda-lithの選定 AWSのDeveloper Guide※1 では イベントドリブンのAnti-patterns として紹介 AWS Compute Blog※2 ではサー

    バーレスマイクロサービスの設計 アプローチの1つとして紹介 ECS/EKSへの移行を予定している ためステップを踏むために採用 まずは「FastAPIが動いている Dockerイメージ」を目指す シンプルな構成でLambdaで動 かした後ECS/EKSへ移行する Anti-patterns in Lambda-based event-driven applications 「Understanding events and event-driven architectures」※1 ※1 引用文献: https://docs.aws.amazon.com/lambda/latest/dg/concepts-event-driven-architectures.html#monolith ※2 引用文献: https://aws.amazon.com/jp/blogs/compute/comparing-design-approaches-for-building-serverless-microservices/ many development teams move in the opposite direction, aggregating all code related to an API inside the same Lambda function. 「Comparing design approaches for building serverless microservices」※2

More Decks by Shodai Suzuki