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

サーバーフルコンピューティング?AWS Lambda

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
Avatar for TomoyaIwata TomoyaIwata
September 29, 2026

サーバーフルコンピューティング?AWS Lambda

2026/9/29に開催されたDevelopersIO 2026 Osakaの登壇資料です。
https://classmethod.connpass.com/event/401017/

Avatar for TomoyaIwata

TomoyaIwata

September 29, 2026

More Decks by TomoyaIwata

Other Decks in Technology

Transcript

  1. AWS Lambdaとは in 2015/5 AWS Lambda is a compute service

    that makes it easy for you to build applications that respond quickly to new information. AWS Lambda runs your code in response to events such as image uploads, in-app activity, website clicks, or outputs from connected devices. WebArchiveに保存されていたAWS Lambdaデベロッパーガイドより引用 https://web.archive.org/web/20150507135944/http://docs.aws.amazon.com/ja_jp/lambda/latest/dg/welcome.html 4
  2. AWS Lambdaとは in 2017/5 AWS Lambda はサーバーをプロビジョニングしたり管理しなくても コードを実行できるコンピューティングサービスです。 …略 イベントによってトリガーされる関数で構成され、AWS

    CodePipeline と AWS CodeBuild を使用して自動的にそれらをデプロ イするサーバーレスアプリケーションを構築することもできます。 WebArchiveに保存されていたAWS Lambdaデベロッパーガイドより引用 https://web.archive.org/web/20170519060225/http://docs.aws.amazon.com/ja_jp/lambda/latest/dg/welcome.html 5
  3. AWS Lambdaとは in 2026/9 AWS Lambda は、 サーバーレスコンピューティングサービス です。Lambda を使用すると、サーバーをプロビジョニングまたは管理しなくてもコ

    ードを実行できます。Lambda は、基盤となるインフラストラクチャ (サーバーメン テナンス、容量プロビジョニング、スケーリング、パッチ適用など) を自動的に管理 するので、ユーザーはアプリケーションロジックにフォーカスできます。 AWS Lambdaデベロッパーガイドより引用 https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/welcome.html 6
  4. Provisioned Concurrencyから見えるLambdaの設計思想 Provisioned Capacityではない Provisioned Rateでもない • キャパシティはハードウェア依存 • RPSという指標はバッチサイズを

    • 障害に備えた過剰プロビジョニン グが必要 • コード修正による影響 考慮しない • レイテンシも考慮しない • リソースの競合も考慮しない re:invent2019 A serverless journey: AWS Lambda under the hood より https://youtu.be/xmacMfbrG28?si=Ch0K6CqS2q6L69RM 10
  5. サーバーの存在が隠蔽されていることのデメリット 実行環境の基盤となるハードウェアを指定できないため 運次第でパフォーマンスがブレる可能性も • 「AWS LambdaのOS情報を色々見てみる 〜Lambdaのインスタンスガチャを検証する〜」 https://marcy.hatenablog.com/entry/2017/12/21/024523 • 「Fargate

    の CPU アーキテクチャと世代別のベンチマークで ECS の実行基盤を選ぶ」 https://developer.hatenastaff.com/entry/2026/07/15/120512 • 「FargateのCPU性能の違い」 https://speakerdeck.com/mokopoi/fargatenocpuxing-neng-nowei-i 11
  6. Lambda関連アップデート(re:Invent2025 ~ その1) 2025-11-26 AWS Lambda announces durable functions for

    multi-step applications and AI workflows 2025-11-30 Announcing AWS Lambda Managed Instances, a capability to run functions on your Amazon EC2 instances 2025-12-15 AWS Lambda adds support for .NET 10 2026-01-15 AWS Lambda announces cross-account access for DynamoDB Streams 2026-01-29 AWS Lambda launches enhanced observability for Kafka event source mappings 2026-02-11 AWS Lambda Durable Execution SDK for Java now available in Developer Preview 2026-02-27 Amazon CloudWatch Application Signals adds new SLO capabilities 2026-03-02 Accelerate Lambda durable functions development with new Kiro power 2026-03-12 AWS Lambda Managed Instances now supports Rust 2026-03-19 AWS Lambda now supports Availability Zone metadata 2026-03-20 AWS Lambda Durable Execution SDK for Java GA 2026-03-20 AWS Lambda increases the file descriptor limit to 4,096 for functions running on Lambda Managed Instances 2026-03-25 AWS Lambda adds support for Ruby 4.0 2026-03-26 AWS Lambda supports up to 32 GB of memory and 16 vCPUs for Lambda Managed Instances 2026-04-07 AWS Lambda expands response streaming support to all commercial AWS Regions 2026-04-20 AWS Lambda functions can now mount Amazon S3 buckets as file systems with S3 Files 2026-05-11 AWS Lambda supports scheduled scaling for functions on Lambda Managed Instances 2026-05-25 AWS Lambda announces self-managed code storage 2026-06-01 AWS Lambda Managed Instances now supports Tag Propagation for Managed Resources 2026-06-22 AWS Lambda now supports Java 8, 11, and 17 on Amazon Linux 2023 What‘s New with AWSからLambda関連のアップデートを抜粋 ※ただし、サポート対象リージョン追加系のアップデートは除く https://aws.amazon.com/new/ 13
  7. Lambda関連アップデート(re:Invent2025 ~ その2) 2026-06-22 AWS Lambda introduces managed runtimes in

    public preview for Node.js 26 and Python 3.15 2026-06-22 AWS introduces Lambda MicroVMs for isolated execution of user and AI-generated code 2026-07-02 AWS Lambda functions now support full IAM resource-based policies 2026-07-07 AWS Lambda now supports SnapStart for container image functions 2026-07-10 AWS Lambda Provisioned Mode for Amazon SQS event source mappings now supports up to 10,000 event pollers 2026-07-14 AWS Lambda console provides a one-click setup prompt for coding agents 2026-07-22 AWS Lambda now publishes logs for Lambda Managed Instances capacity providers 2026-07-22 AWS Lambda durable functions now supports customer managed key encryption 2026-07-23 AWS Lambda durable execution SDK for .NET is now generally available 2026-08-05 AWS Lambda announces scalable network bandwidth up to 3,000 Mbps for functions outside a VPC 2026-08-06 AWS Lambda console extends console-to-IDE integration to Kiro and Cursor 2026-08-14 AWS Lambda durable functions now supports custom Durable Execution SDK 2026-08-24 AWS Lambda MicroVMs now supports AWS PrivateLink 2026-08-31 AWS Lambda recursive loop detection is now available in all commercial AWS Regions 2026-09-04 AWS MCP Server adds a serverless capability for AWS Lambda functions 2026-09-09 AWS Lambda now supports 90-minute function timeout on Lambda Managed Instances 2026-09-09 AWS Lambda now supports Graviton5-powered EC2 instances on Lambda Managed Instances 2026-09-10 AWS Lambda durable functions integrates with Pydantic AI 2026-09-10 AWS Lambda recursive loop detection is now available in Europe Sovereign Cloud 2026-09-11 AWS Lambda now supports direct read configuration for Amazon S3 Files What‘s New with AWSからLambda関連のアップデートを抜粋 ※ただし、サポート対象リージョン追加系のアップデートは除く https://aws.amazon.com/new/ 14
  8. Lambda関連アップデートの個人的要約 • durable functions ※re:invent 2025 • Lambda Managed Instances

    ※re:invent 2025 • Lambda MicroVMs • その他の細かな機能追加/改善 15
  9. 利用例1. GitHub Actionsのセルフホステッドランナー セルフホステッドランナーを登録 Amazon DynamoDB 管理情報登録 ウェブフック Poll &

    Invoke AWS Lambda 検証 & SendMessage Amazon Simple Queue Service (Amazon SQS) AWS Lambda RunMicroVM https://github.com/schuettc/cdk-github-microvm-runners https://dev.classmethod.jp/articles/github-actions-self-hosted-runner-on-lambda-microvms/ 31
  10. S3Files関連のアップデート • S3 Filesをマウント可能に ◦ NFSファイルシステムに対する操作でS3バケットの操作が可能 に • S3 Filesマウントで読み取り経路を指定できるように

    ◦ S3 Filesサポート当初はメモリ512MB以上の関数のみ直接読み 取りを利用できた https://dev.classmethod.jp/articles/2026-04-13-s3-files-lambda/ https://dev.classmethod.jp/articles/lambda-s3files-direct-read/ 38