Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamoDB - registros de check-points #13

Open
Abreums opened this issue Aug 24, 2020 · 2 comments
Open

DynamoDB - registros de check-points #13

Abreums opened this issue Aug 24, 2020 · 2 comments
Assignees
Milestone

Comments

@Abreums
Copy link
Contributor

Abreums commented Aug 24, 2020

Vamos usar a biblioteca de geolocalização do DynamoDB em função das facilidades que ela provê para manipulação dos dados georeferenciados.
Informações sobre:
https://read.acloud.guru/location-based-search-results-with-dynamodb-and-geohash-267727e5d54f
https://www.npmjs.com/package/dynamodb-geo

@Abreums Abreums self-assigned this Aug 24, 2020
@Abreums Abreums changed the title DynamoDB - geoLibrary DynamoDB - registros de check-points Aug 24, 2020
@Abreums
Copy link
Contributor Author

Abreums commented Aug 24, 2020

O banco de dados deverá armazenar as localizações compartilhadas pelos usuários que testarem positivo.

id do usuário: hash (sha256) do CPF + Data de Nascimento
timestamp: data e horário do registro do checkpoint
localization: geohash (até 12 caracteres - ver link do comentário acima).

Cenário 1:
Registros Novos serão inserido apenas quando id-usuário e timestamp não existirem no sistema.

Cenário 2:
Registros cujo id-usuário + timestamp já existirem serão descartados.

@Abreums
Copy link
Contributor Author

Abreums commented Aug 24, 2020

Dentro do modelo No-SQL do DynamoDB a sugestão é:

partition key: positive_id
sorte key: timestamp
atribute: localization

@Abreums Abreums added this to the dynamoDB milestone Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant