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

“良い開発者体験” にむけた海外アーキテクチャトレンド / Findy Event - Architecture on AWS

“良い開発者体験” にむけた海外アーキテクチャトレンド / Findy Event - Architecture on AWS

Yoshitaka Haribara

March 09, 2023
Tweet

More Decks by Yoshitaka Haribara

Other Decks in Technology

Transcript

  1. 海外アーキテクチャトレンド
    © 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

  2. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    針原 佳貴 (Yoshitaka Haribara, Ph.D.)
    Senior ML/Quantum
    Startup Solutions Architect
    ⽇本のスタートアップ企業の
    クラウド利⽤を中⼼に、
    機械学習プロジェクトや
    量⼦コンピューティング案件も担当。
    好きな AWS のサービス:
    Amazon SageMaker, Amazon Braket

    View Slide

  3. 海外アーキテクチャトレンド
    © 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 AWS
    6. クラウドアーキテクトのためのツール
    (可視化・カオステスト・コミュニティ Q&A)
    7. AWS Well-Architected Framework Updates (含サステナビリティの柱)
    8. マルチリージョンでのアプリケーション管理とモニタリング
    9. 回復力のある (resilient) アーキテクチャ
    10. サーバーレスアプリケーションのデプロイ自動化
    5

    View Slide

  4. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    アーキテクチャトレンドを理解するためのキーワード
    • 「可⽤性」モデル (99.999%) 再考
    § 「セルアーキテクチャ」
    § 「進化を前提とした」アーキテクチャ
    § 「デプロイの安全性」
    • 「サーバーレス」デザインパターン
    § ⾮同期な「イベントドリブン」で疎結合に
    • 「サステナビリティ」と「コスト最適化」

    View Slide

  5. 海外アーキテクチャトレンド
    © 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

    View Slide

  6. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    9s よりも設計上重要な指標
    1. 影響がどれだけの間継続するか
    2. どれくらいの頻度で起こるか
    • Rate and Expected Duration (RED)
    8
    0.1
    1
    10
    1 minute 5 minutes 15 minutes 30 minutes 1 hour 2 hours 4 hours 8 hours
    Rate per year by expected duration
    impact

    View Slide

  7. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    リージョン・AZ単位の分離
    9

    View Slide

  8. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    セルアーキテクチャとシャッフルシャーディング
    • 手前に薄いルーティングレイヤーを置き Cell という単位で分割す
    ることで、影響範囲を狭める
    • 更に、複数 (以下の例: 2つ) Cells に分散させることで、両方が落ち
    た時にのみその顧客は影響を受ける (組合せの数だけ確率が下がる)
    11
    Cell Cell Cell Cell Cell Cell Cell Cell

    View Slide

  9. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    AWS re:Invent 2022 session by DoorDash
    12

    View Slide

  10. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    AWS re:Invent 2022 session by DoorDash アーキテクチャ
    13

    View Slide

  11. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    進化を前提とした (Evolvable) アーキテクチャ
    • 現在のビジネスフェーズ・規模に合わせたアーキテクチャを選択
    • 参考: Amazon の例
    from AWS re:Invent 2022 Keynote with Dr. Werner Vogels
    15

    View Slide

  12. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    非同期なイベントドリブンなアーキテクチャで疎結合に
    16
    Client
    Mobile
    IoT
    Amazon
    Kinesis
    Amazon
    DynamoDB
    Events AWS Step
    Functions
    Amazon
    SQS
    Amazon
    SNS
    Messaging
    AWS Step
    Functions
    AWS Step
    Functions
    AWS Lambda AWS Lambda

    View Slide

  13. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    サーバーレスアーキテクチャパターン
    • Serverless Land > Serverless Patterns Collection
    17

    View Slide

  14. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    デプロイの安全性
    • 変更差分を小さく
    • タイムトラベルデータでのテスト
    • ステージごとのデプロイ
    § Staging, Pre-production, …
    • まず自動化を考える
    § E.g. ロールバック自動化
    § 自動化することにより、
    失敗からの学びをコードで表現
    18

    View Slide

  15. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    AWS re:Invent 2022 session by AWS
    19

    View Slide

  16. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    サステナビリティ
    • 責任共有モデル
    • AWS Well-Architected Framework 持続可能性の柱
    20

    View Slide

  17. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    © 2023, Amazon Web Services, Inc. or its affiliates.
    Thank you!
    Yoshitaka Haribara
    [email protected]
    Twitter: @_hariby

    View Slide

  18. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    © 2023, Amazon Web Services, Inc. or its affiliates.
    Appendix
    24

    View Slide

  19. 海外アーキテクチャトレンド
    © 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 Blog
    25

    View Slide

  20. 海外アーキテクチャトレンド
    © 2023, Amazon Web Services, Inc. or its affiliates.
    日本語オススメコンテンツ
    • レジリエンス: AWS Summit Online 2022 「Design for Resilience
    - 如何にしてクラウドアプリケーションの耐久力を高めるか」
    • セルアーキテクチャ: AWS Summit Online 2020 「Amazon
    Simple Storage Service (Amazon S3) を開発・運用する方法」
    • サーバーレス・イベントドリブン: ServerlessDays Tokyo 2022
    Virtual「見せてやるよ、 EventBridge の本気ってやつをな」
    • デプロイ安全性: AWS Dev Day Japan 2022「Blue / Green デプロ
    イと安全性と複雑性と」
    26

    View Slide