3 ms·
Buffering [0] and Caching [1]. The front-end specifically asks for pages in 200-chunks. So whether you slide to page 299,300 or 385, it will request 200-400 fr
by kami8845 14y ago
Buffering [0] and Caching [1].
The front-end specifically asks for pages in 200-chunks. So whether you slide to page 299,300 or 385, it will request 200-400 from the API. This means I can then very easily serve these requests out of Redis [1] and during usage spikes, requests never hit the disk :)
[0] https://github.com/doda/rewindhn/blob/master/static/rewind/js/main.js#L142 https://github.com/doda/rewindhn/blob/master/static/rewind/j...
[1] https://github.com/doda/rewindhn/blob/master/server.py#L25 https://github.com/doda/rewindhn/blob/master/server.py#L25
- cheapsteak 14y agoMind if I ask who you're hosting with?
- kami8845 14y agohetzner.de i7 with 16 gig RAM