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 Antworten
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
EXPERTE
beantwortet vor 2 Jahren
AWS
EXPERTE
überprüft vor 2 Jahren
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
beantwortet vor 2 Jahren
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen