Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

157
Visualizações
DynamoDB table design for an online quiz app

I'm a beginner with DynamoDB with a very basic understanding of partition and sort keys in DynamoDB.

My app is a music guessing app, where two online players join a lobby with the help of APIGateway websockets and play a quiz game where they have to guess a song played in under 5 seconds. For each two player lobby, I have to store the lobby's information in a DynamoDB table, in order to work with realtime websocket updates.

Each item in the table will contain info about a single lobby. Each lobby will have a channel_id and respective connection_ids that will relate to that channel_id. For now only two connection_id's will exist for a channel, but it may increase in the future. Each connection will have some attributes of it's own such as: current_score, last_guessed_time, song_number etc. These attributes will be different for each connection.

Types of access required:

  1. Get all connections for a channel
  2. Update a connection's attributes in a channel

Is there any way possible with which I can store 2 connections and their attributes in a single channel (item)?

Although I can use a simple setup such as channel_id as pk and connection_id as sk, that will require creating multiple items for a single lobby which I want to avoid.

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda