6. With Redis
Maintain redis set of all available pages per assignment
Maintain redis set of reviewed pages per assignment
SDIFFSTORE the two sets
Use SRANDMEMBER on the stored set
11. What do we use it for?
github.com/simonw/django-redis-monitor
Written internally by Simon Willison and Daniel Vydra
Counts requests per second / SQLops per second in django
Management switches
12. Management Switches
Whats the problem?
We’re basically a java shop
In Java, management switches are easy
In python not so much
19. Redis Switches
Hit a URL on any server, any process to toggle switch
All processes are able to check that switch later
Redis processes are local to the machine