natejcho / voter-package

https://voter-package.now.sh
0 stars 0 forks source link

Simplify voting schema #24

Closed natejcho closed 4 years ago

natejcho commented 4 years ago

Describe the solution you'd like. What do you want??? Only store card id and upvotes. fetch results by sort

Is your feature request related to a problem? Maybe raise a bug instead

Describe alternatives you've considered next iterations will need to tie votes to users, cache sorting in place (redis/memecached) and store posts on backend with a backend job to fetch all data and persist in db. that maens that we no longer fetch from 3rd party api but from own api and sqs

Additional comments implication is that users can upvote multiple times for now