jbailey2010 / FFRv2

Creating new repo
Apache License 2.0
0 stars 0 forks source link

Trending stuff? #148

Open jbailey2010 opened 5 years ago

jbailey2010 commented 5 years ago

Row by row on views and comparisons? Can then do a sort or pane on comparator? Put a ttl in DDB so it can handle trending, too.

jbailey2010 commented 5 years ago

Updated view count to be a pipeline to send view counts with ttl.

Still need: Read in compare to see results Send data on comparisons Read to view comparisons

jbailey2010 commented 5 years ago

Made new operation for comparisons to send in data. Updated keys to include time.

Still need: New index on table to fetch by type

Read view counts for compare (where? Will need pagination) Sort option to see

Read compare counts for trending in comparator How to display? Tabs between views? Setting and atomically one or the other?

jbailey2010 commented 5 years ago

It'd be terrible practice to just load everything. At scale, that's hundreds of pagination calls. Instead, I'm setting up a DDB stream to a Lambda, which'll write to a second table. This'll have the aggregated numbers.

On create, increment the player/type count. On delete, decrement. All reads will be from that table.

Note - ttl on these items doesn't seem to work as is.

jbailey2010 commented 3 years ago

TTL fixed, was in millis instead of s