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 Respostas
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
ESPECIALISTA
respondido há 2 anos
AWS
ESPECIALISTA
avaliado há 2 anos
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
respondido há 2 anos
  • 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.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas