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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠