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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南