Modeling Game Player Data with Amazon DynamoDB

In this workshop, you will learn advanced data modeling patterns in Amazon DynamoDB. When using DynamoDB, it is important to consider how you will access your data (your access patterns) before you model your data. You will go through an example multiplayer gaming application, learn about the access patterns in the gaming application, and see how to design a DynamoDB table to handle the access patterns by using secondary indexes and transactions.

Read up more on how DynamoDB is used by existing customers in GameTech particularly https://aws.amazon.com/dynamodb/gaming/

Here’s what this workshop includes:

  • Getting Started
  • In this module, you configure your environment and download code that you will use throughout the lab.

  • Plan your data model
  • In this module, you learn about DynamoDB data modelling best practices and review application access patterns.

  • Core usage: user profiles and games
  • In this module, you design the primary key for the game application’s table, create the table and perform some basic actions.

  • Find open games
  • In this module, you learn about using Global Secondary Indexes (GSIs) as a sparse index and use it to find open games.

  • Join and close games
  • In this module, you learn about DynamoDB transactions and you use a DynamoDB transaction when adding new users to a game while preventing the game from becoming overloaded.

  • View past games
  • In this module, you handle the final access pattern — find all past games for a user. Users in the application might want to view games they’ve played to watch replays, or they might want to view their friend's games.

  • Summary & Cleanup
  • Final words

Target audience

This workshop is designed for developers, engineers, and database administrators who are involved in designing and maintaining DynamoDB applications.