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

Amazon DynamoDB Deep Dive at AWS Loft Tokyo 2023/9/28

oranie
September 28, 2023

Amazon DynamoDB Deep Dive at AWS Loft Tokyo 2023/9/28

2023年 9月 28日にAWS Loft Tokyoにて実施したDeveloper x NoSQLのセッションの一つ、
DynamoDB Deep Diveのスライドです。 一部スライドは当日のみとさせて頂いています。

oranie

September 28, 2023
Tweet

More Decks by oranie

Other Decks in Technology

Transcript

  1. © 2023, Amazon Web Services, Inc. or its affiliates. ©

    2023, Amazon Web Services, Inc. or its affiliates. Takashi Narita Principal DynamoDB Specialist Solutions Architect Amazon Web Services Developer x NoSQL night at AWS Loft Tokyo
  2. © 2023, Amazon Web Services, Inc. or its affiliates. Agenda

    18:00開場 18:30 セッションタイトル:AWSにおけるマイクロサービスと NoSQLの活用- 福井 厚 19:15 セッションタイトル : Understanding & Using Amazon DynamoDB - Alex DeBrie 様 20:00 セッションタイトル : Amazon DynamoDB Deep Dive - Takashi Narita 20:30 Q&A + 歓談 21:00 Close お帰りの際は受付でゲストパスを必ず回収させてくださ い
  3. © 2023, Amazon Web Services, Inc. or its affiliates. ©

    2023, Amazon Web Services, Inc. or its affiliates. Takashi Narita Principal DynamoDB Specialist Solutions Architect Amazon Web Services Amazon DynamoDB Deep Dive
  4. © 2023, Amazon Web Services, Inc. or its affiliates. 自己紹介

    • 成田 俊 id:oranie • 経歴 § 前職のWeb系会社などでインフラエンジニアを担当、 主にMySQLやCassandra運用などに携わる • AWSでの担当 § NoSQLサービスを専門に支援するチームに所属、 DynamoDBをメイン担当 § 少し前ですがWEB+DB PRESS Vol 125のDynamoDB特 集に寄稿しました
  5. © 2023, Amazon Web Services, Inc. or its affiliates. Agenda

    Amazon DynamoDB サービス概要 直近のUpdate紹介 How to dive deep Amazon DynamoDB Under the hood Amazon DynamoDB Global Tables
  6. © 2023, Amazon Web Services, Inc. or its affiliates. はじめに

    皆様もう2時間近くセッションを聞いて疲れも出ていると思います。 このセッションは是非気楽に聞いてください 飲み物を取りたい、など自由に動いてOKです
  7. © 2023, Amazon Web Services, Inc. or its affiliates. ©

    2023, Amazon Web Services, Inc. or its affiliates. Amazon DynamoDB 概要
  8. © 2023, Amazon Web Services, Inc. or its affiliates. The

    Amazon NoSQL journey Dec 2004: データベースの 拡張性について チャレンジがス タート Oct 2007: Dynamo の 論文公開 Jan 2012: DynamoDB が 一般公開 Q3 2016: DynamoDB が Gartner MQ, Forrester Waveで リーダーとして評 価 July 2022: DynamoD B の論文公 開 Today: 重要なTier 0 サービスとし て Amazon/AW S内の様々な サービスで利 用
  9. © 2023, Amazon Web Services, Inc. or its affiliates. You

    build it, You run it. You build it, You run it.
  10. © 2023, Amazon Web Services, Inc. or its affiliates. ビジネスにとって貴重な時間を取り戻す

    サーバ管理の必要無し DynamoDBをはじめとした完全マネージド型データベースサービスは次のような重要な作業を サービス側が実施 セキュリティ • オペレーティング・システムのパッチ適用 • データベースパッチ適用 • アクセス制御 • 監査 • 暗号化 • コンプライアンス 耐久性 • サーバ、ラック、データセンターの停止を維持 • ハードウェア障害発生時にデータを迅速に再レプリケーション • バックアップと復元の管理 可用性 • 高可用性構成 • モニタリング • クロスリージョンレプリケーション パフォーマンス • パフォーマンスチューニング • インデックス作成 • インメモリキャッシュ スケーラビリティ • ホストのプロビジョニング • ホストの修理とリタイア
  11. © 2023, Amazon Web Services, Inc. or its affiliates. You

    build it, You run it. You build it, You run it.
  12. © 2023, Amazon Web Services, Inc. or its affiliates. AWS

    purpose-built databases 12 T I M E - S E R I E S K E Y - V A L U E L E D G E R R E L A T I O N A L W I D E C O L U M N I N - M E M O R Y A M A Z O N M E M O R Y D B C A C H E A M A Z O N E L A S T I C A C H E G R A P H A M A Z O N N E P T U N E A M A Z O N T I M E S T R E A M A M A Z O N D Y N A M O D B A M A Z O N Q L D B A M A Z O N A U R O R A A M A Z O N R D S A M A Z O N R E D S H I F T A M A Z O N K E Y S P A C E S A M A Z O N D O C U M E N T D B D O C U M E N T 2Source: 2022 internet minute, DBTA, Boston Consulting 1Read the article on Forbes.com | 2Read the report
  13. © 2023, Amazon Web Services, Inc. or its affiliates. Amazon

    DynamoDB Performance at scale § 1桁ミリ秒の安定した 読み込み・書き込み § ほぼ無制限のスルー プットとストレージ § 大規模な負荷に対応 するスケーラビリ ティ Secure and Resilient § encryption at restでの 暗号化 § Global replication § 最大99.999% の可用 性 SLA Serverless § スケールアップやス ケールダウンを可能に するパフォーマンス § メンテナンスによるダ ウンタイムはなし § On demand modeによ るキャパシティ管理か らの解放 § リクエスト課金モデル の提供 Built-in integration with others AWS services § ロギング、モニタリン グ、解析サービスとの 連携 § Amazon S3への import/expor機能
  14. © 2023, Amazon Web Services, Inc. or its affiliates. ©

    2023, Amazon Web Services, Inc. or its affiliates. 直近のUpdate紹介
  15. © 2023, Amazon Web Services, Inc. or its affiliates. この1年程度のDynamoDB

    update + pickup •AWS Database Encryption SDK for Amazon DynamoDB now generally available •Introducing the AWS .NET Distributed Cache Provider for DynamoDB •Announcing DynamoDB local version 2.0 •Amazon DynamoDB now simplifies and lowers the cost of handling failed conditional writes •NoSQL Workbench is now available in AWS GovCloud (US) Regions •Announcing preview of the AWS Database Encryption SDK for Amazon DynamoDB •Announcing the general availability of AWS Database Migration Service Serverless •Amazon DynamoDB now supports up to 50 concurrent table restores •Amazon DynamoDB now supports table deletion protection •Amazon Kinesis Data Streams for Amazon DynamoDB is now available in 11 additional AWS Regions
  16. © 2023, Amazon Web Services, Inc. or its affiliates. Pick

    up Amazon DynamoDB now supports table deletion protection すべての AWS リージョンの Amazon DynamoDB テーブルで削除保護が利用で きるようになりました。DynamoDB では、 通常のテーブル管理操作を実行する際に テーブルが誤って削除されないように保 護できるようになりました。新しいテー ブルの作成や既存のテーブルの管理時に、 権限のある管理者がテーブルごとに削除 保護プロパティを設定できます。
  17. © 2023, Amazon Web Services, Inc. or its affiliates. Pick

    up Amazon DynamoDB now supports up to 50 concurrent table restores Amazon DynamoDB が、AWS アカウント あたり最大 50 の同時テーブル復元をサ ポートしました。テーブル復元のデフォ ルトのサービスクォータが 4 から 50 に増 加しました。この変更は、DynamoDB と AWS Backup が管理するポイントインタ イムリカバリとオンデマンドバックアッ プを使用して実行される復元に適用され ます。
  18. © 2023, Amazon Web Services, Inc. or its affiliates. この1年程度のDynamoDB

    update + pickup •PartiQL for DynamoDB now is supported in the AWS GovCloud (US) Regions •NoSQL Workbench for Amazon DynamoDB now includes DynamoDB Local •NoSQL Workbench for Amazon DynamoDB now supports creating data models directly from sample data model templates •AWS Fault Injection Simulator now supports network connectivity disruption •Amazon DynamoDB now supports up to 100 actions per transaction •Amazon DynamoDB now supports bulk imports from Amazon S3 to new DynamoDB tables •Amazon DynamoDB Standard Infrequent Access table class is now available in AWS GovCloud (US) Regions •Announcing enhanced integration with Service Quotas for Amazon DynamoDB •Amazon DynamoDB Standard-Infrequent Access table class is now available in AWS Asia Pacific (Jakarta) Region
  19. © 2023, Amazon Web Services, Inc. or its affiliates. Pick

    up "NB[PO%ZOBNP%#͕τϥϯβΫγϣϯ͋ͨΓ࠷େͷΞΫ γϣϯͷαϙʔτΛ։࢝ "NB[PO%ZOBNP%#5SBOTBDUJPOT ʹΑΓɺςʔϒϧ಺͓Αͼ ςʔϒϧؒͷෳ਺ͷ߲໨Λௐ੔ͯ͠ɺΦʔϧΦΞφογϯά ͢΂ͯ ੒ޭ͢Δ͔ͲΕ΋੒ޭ͠ͳ͍ ͱ͍͏৚݅ͰมߋͰ͖·͢ɻࠓճɺ ճͷτϥϯβΫγϣϯͰߦ͑ΔΞΫγϣϯͷ্ݶ͕͔Βʹ ૿͑·ͨ͠ɻ
  20. © 2023, Amazon Web Services, Inc. or its affiliates. この1年程度のDynamoDB

    update + pickup •NoSQL Workbench for Amazon DynamoDB adds support for CreateTable, UpdateTable, and DeleteTable operations •Amazon DynamoDB increases default service quotas to simplify use of large numbers of tables •Amazon DynamoDB now supports the limit request option for PartiQL operations •Now DynamoDB can return the throughput capacity consumed by PartiQL API calls to help you optimize your queries and throughput costs
  21. © 2023, Amazon Web Services, Inc. or its affiliates. Pick

    up NoSQL Workbench for Amazon DynamoDB adds support for CreateTable, UpdateTable, and DeleteTable operations
  22. © 2023, Amazon Web Services, Inc. or its affiliates. ©

    2023, Amazon Web Services, Inc. or its affiliates. How to dive deep Amazon DynamoDB
  23. © 2023, Amazon Web Services, Inc. or its affiliates. Amazon

    DynamoDBをどのように学んでいくか? Developer Guide ハンズオン Youtube/Twitch/AWS webinar Twitter Githab/aws-samples/labs Whitepaper Intergrationするサービス(EMR、 Lambda、Glue、Athenaなどなど) Serverlessland.com Dynamodblabs.com 論文(Dynamo、DynamoDB、 Transaction) 本日のようなAWS Loftイベント AWS SummitやAWS re:Inventなど の大規模イベント などなど、AWSでは多くのコンテンツを作成・公開しています
  24. © 2023, Amazon Web Services, Inc. or its affiliates. もちろん

    今回SpeakerのAlex DeBrie氏の書籍や クラスメソッド様 Momento様 を始めAWSパートナー様のコンテンツ も数多くあります
  25. © 2023, Amazon Web Services, Inc. or its affiliates. もちろん

    今回SpeakerのAlex DeBrie氏の書籍や クラスメソッド様 Momento様 を始めAWSパートナー様のコンテンツ も数多くあります
  26. © 2023, Amazon Web Services, Inc. or its affiliates. 今日はこれらの中からいくつかPickupして紹介

    Developer Guide ハンズオン Youtube/Twitch/AWS webinar Twitter Githab/aws-samples/labs Whitepaper Intergrationするサービス(EMR、 Lambda、Glue、Athenaなど) Serverlessland.com Dynamodblabs.com 論文(Dynamo、DynamoDB、 Transaction) 本日のようなAWS Loftイベント AWS SummitやAWS re:Inventなど の大規模イベント など、AWSでは多くのコンテンツを作成・公開しています
  27. © 2023, Amazon Web Services, Inc. or its affiliates. Developer

    Guide Amazon DynamoDB とは DynamoDB のセットアップ DynamoDB にアクセスする DynamoDB の使用開始 DynamoDB および AWS SDK の使用開始 DynamoDB を使用したプログラミング DynamoDB の操作 DAX とインメモリアクセラレーション データモデリング NoSQL Workbench コード例 セキュリティ Monitoring ベストプラクティス 他の AWS サービスとの統合 クォータと制限 API リファレンス トラブルシューティング 付録 ドキュメント履歴
  28. © 2023, Amazon Web Services, Inc. or its affiliates. AWS

    Blog 大量にあるので、その中でも特にこの時期おすすめとして re:Invent session list post https://aws.amazon.com/jp/blogs/database/tuesday-november- 27-amazon-dynamodb-sessions-workshops-and-chalk-talks-at- reinvent/ Architecture/Best practice https://aws.amazon.com/jp/blogs/database/category/database/a mazon-dynamodb/
  29. © 2023, Amazon Web Services, Inc. or its affiliates. Youtube/Twitch/AWS

    Webinar Amazon DynamoDB Nuggets https://www.youtube.com/playlist?list=PLhr1KZpdzukemNOO71Hc a0GpjG0QmXwEd A Decade of Innovation with Amazon DynamoDB https://www.youtube.com/watch?v=YI67mWmjbZ4
  30. © 2023, Amazon Web Services, Inc. or its affiliates. Paper

    Dynamo: Amazon’s Highly Available Key-value Store https://www.allthingsdistributed.com/files/amazon-dynamo- sosp2007.pdf Amazon DynamoDB https://www.usenix.org/system/files/atc22-elhemali.pdf Amazon DynamoDB : Transaction https://www.usenix.org/conference/atc23/presentation/idziorek
  31. © 2023, Amazon Web Services, Inc. or its affiliates. PickupしたいVideo

    2018年 re:InventでJaso Sorensonが実 施したセッション Under the hood Amazon DynamoDB = DynamoDBのinternal architectureを紹 介 https://www.youtube.com/watch?v=y vBR71D0nAQ
  32. © 2023, Amazon Web Services, Inc. or its affiliates. PickupしたいVideo

    2019年 re:InventでKai Zhaoのセッ ション この年は昨年に続き内部の負荷集中を どのように改善する機能をローンチし たのか説明 https://www.youtube.com/watch?v=z UsJK5pe_A0
  33. © 2023, Amazon Web Services, Inc. or its affiliates. 今日話したことの振り返り

    Amazon DynamoDB サービス概要 直近のUpdate紹介 How to dive deep Amazon DynamoDB Under the hood Amazon DynamoDB Global Tables
  34. © 2023, Amazon Web Services, Inc. or its affiliates. ©

    2023, Amazon Web Services, Inc. or its affiliates. Thank you!