3 ms·
Your app is astoundingly fast. What's your secret?
by fudged71 14y ago
Your app is astoundingly fast. What's your secret?
- switz 14y agoHis secret is open source https://github.com/doda/rewindhn https://github.com/doda/rewindhn
- kami8845 14y agoBuffering [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