Skip to content

Instantly share code, notes, and snippets.

@dreamr
Created July 30, 2013 23:03
Show Gist options
  • Save dreamr/6117838 to your computer and use it in GitHub Desktop.
Save dreamr/6117838 to your computer and use it in GitHub Desktop.
STEP 1
-------
cache hotplays.json (user centeric) in redis or as a static file
When hotplays.json is hit:
serve cached copy
fire off a worker to re-cache it
STEP 2
-------
When a change happens to a 'watched' fields on any of these:
* hotplay
* user
* coach
* industry
We will get all the users affected and fire off a worker to update their json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment