Game leaderboard

0

I am trying to create a leaderboard server and currently have a Dynamo db table with id , score and timestamp field. I want to sort all the players position based on score and time. Also want to query a single players position. I want the queries to be fast.( trying to avoid scan operation). What are my options to achieve this?

I am aware of AWS GameSparks but unfortunately its in preview.

2回答
3

While DynamoDB can implement a leader-board, it would not be my first service of choice. Elasticache for Redis would provide more features to implement the leader-board more effectively while also providing lower latency reads. More info in this blog:

Build a real-time gaming leaderboard with Amazon ElastiCache for Redis.

Should you still wish to proceed with DynamoDB then there are also some blog posts which you may find useful:

How to Build a Real-Time Gaming Leaderboard with Amazon DynamoDB and Rockset

Amazon DynamoDB: Gaming use cases and design patterns

profile pictureAWS
エキスパート
回答済み 2年前
AWS
エキスパート
レビュー済み 2年前
0

Hi

Have you seen this page in the documentation (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html) - it uses a leaderboard implementation as an example so will hopefully help.

HTH

Nick

AWS
Nick
回答済み 2年前
  • Hey thanks for your comment, I have seen this documentation however I am not sure this would satisfy my circumstances as I need all player positions. Please feel free to share if you think this is possible.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ