https://findy.connpass.com/event/274860/
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.© 2023, Amazon Web Services, Inc. or its affiliates.“良い開発者体験” にむけた海外アーキテクチャトレンド“ 良 い 開 発 者 体 験 ” に む け た 国 内 / 海 外 の ア ー キ テ ク チ ャ L T 会 A W S 編針原 佳貴Amazon Web Services Japan G.K.Sr. ML/Quantum Startup Solutions Architect
View Slide
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.針原 佳貴 (Yoshitaka Haribara, Ph.D.)Senior ML/QuantumStartup Solutions Architect⽇本のスタートアップ企業のクラウド利⽤を中⼼に、機械学習プロジェクトや量⼦コンピューティング案件も担当。好きな AWS のサービス:Amazon SageMaker, Amazon Braket
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.AWS Architecture Blog 2022 の Top10 記事1. マルチリージョンアプリケーションでのデータレプリケーション2. Amazon VPC Endpoints でコスト最適化・セキュリティ向上3. AWS Application Migration Service でマルチリージョン移行4. サステナビリティのためのアーキテクチャ5. サーバーレスアーキテクチャ on AWS6. クラウドアーキテクトのためのツール(可視化・カオステスト・コミュニティ Q&A)7. AWS Well-Architected Framework Updates (含サステナビリティの柱)8. マルチリージョンでのアプリケーション管理とモニタリング9. 回復力のある (resilient) アーキテクチャ10. サーバーレスアプリケーションのデプロイ自動化5
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.アーキテクチャトレンドを理解するためのキーワード• 「可⽤性」モデル (99.999%) 再考§ 「セルアーキテクチャ」§ 「進化を前提とした」アーキテクチャ§ 「デプロイの安全性」• 「サーバーレス」デザインパターン§ ⾮同期な「イベントドリブン」で疎結合に• 「サステナビリティ」と「コスト最適化」
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.「可用性」モデル (9s) 再考• あなたのシステムの可用性は?§ 99% = 3.65 日/年 の影響§ 99.9% = 8.77 時間/年 の影響§ 99.99% = 52.6 分/年 の影響§ 99.999% = 5.26 分/年 の影響• ビジネスインパクトを測り SLA の定義などには良いが、システム設計にはより適した方法がある。§ Mean Time Between Failure (MTBF) と Mean Time to Recover (MTTR)参考: Well-Architected Framework 信頼性の柱7
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.9s よりも設計上重要な指標1. 影響がどれだけの間継続するか2. どれくらいの頻度で起こるか• Rate and Expected Duration (RED)80.11101 minute 5 minutes 15 minutes 30 minutes 1 hour 2 hours 4 hours 8 hoursRate per year by expected durationimpact
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.リージョン・AZ単位の分離9
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.セルアーキテクチャとシャッフルシャーディング• 手前に薄いルーティングレイヤーを置き Cell という単位で分割することで、影響範囲を狭める• 更に、複数 (以下の例: 2つ) Cells に分散させることで、両方が落ちた時にのみその顧客は影響を受ける (組合せの数だけ確率が下がる)11Cell Cell Cell Cell Cell Cell Cell Cell
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.AWS re:Invent 2022 session by DoorDash12
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.AWS re:Invent 2022 session by DoorDash アーキテクチャ13
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.進化を前提とした (Evolvable) アーキテクチャ• 現在のビジネスフェーズ・規模に合わせたアーキテクチャを選択• 参考: Amazon の例from AWS re:Invent 2022 Keynote with Dr. Werner Vogels15
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.非同期なイベントドリブンなアーキテクチャで疎結合に16ClientMobileIoTAmazonKinesisAmazonDynamoDBEvents AWS StepFunctionsAmazonSQSAmazonSNSMessagingAWS StepFunctionsAWS StepFunctionsAWS Lambda AWS Lambda
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.サーバーレスアーキテクチャパターン• Serverless Land > Serverless Patterns Collection17
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.デプロイの安全性• 変更差分を小さく• タイムトラベルデータでのテスト• ステージごとのデプロイ§ Staging, Pre-production, …• まず自動化を考える§ E.g. ロールバック自動化§ 自動化することにより、失敗からの学びをコードで表現18
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.AWS re:Invent 2022 session by AWS19
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.サステナビリティ• 責任共有モデル• AWS Well-Architected Framework 持続可能性の柱20
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.© 2023, Amazon Web Services, Inc. or its affiliates.Thank you!Yoshitaka Haribara[email protected]Twitter: @_hariby
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.© 2023, Amazon Web Services, Inc. or its affiliates.Appendix24
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.今回内容を考えるにあたって参考にしたもの• AWS re:Invent 2022• Keynote with Dr. Werner Vogels• Architecture (ARC) Sessions• Beyond five 9s: Lessons from our highest available data planes (ARC310)• Journey to cell-based microservices architecture on AWS for hyperscale (ARC312)• AWS Architecture Blog• Top 10 AWS Architecture Blog posts of 2022• AWS Startups Blog25
海外アーキテクチャトレンド© 2023, Amazon Web Services, Inc. or its affiliates.日本語オススメコンテンツ• レジリエンス: AWS Summit Online 2022 「Design for Resilience- 如何にしてクラウドアプリケーションの耐久力を高めるか」• セルアーキテクチャ: AWS Summit Online 2020 「AmazonSimple Storage Service (Amazon S3) を開発・運用する方法」• サーバーレス・イベントドリブン: ServerlessDays Tokyo 2022Virtual「見せてやるよ、 EventBridge の本気ってやつをな」• デプロイ安全性: AWS Dev Day Japan 2022「Blue / Green デプロイと安全性と複雑性と」26