Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.19 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.19 KB

twitch-grid

twitch-grid is a listing of currently live Twitch streams I created to help me find popular but under-appreciated games.

I know I can count on a gem when I see one or two people streaming to a total of hundreds or thousands 👐

Screen Shot 2021-05-18 at 7 04 47 PM

Give it a try! https://twitch-grid.herokuapp.com/ (contact me if down, it runs on free tiers and may be out)

Each row corresponds to a single game, with the channels currently streaming that game listed by viewer count.

The games themselved are listed in order of total viewers for that game among all streamers.

Design

The app was engineered to fit inside the free-tier limits of Heroku and the Twitch API.

The Twitch API rate-limits to 800 calls per minute, and with 4000 games being played simultaneously sometimes, a cache is needed to render a page for everyone without running out of credits.

Heroku Scheduler runs a job every ten minutes to fetch the relevent data (slowly) from Twitch and stores it in a Postgres DB.

Django helps in quickly putting together a front-end for the cached results for page visitors.