Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/j...

[1] https://github.com/doda/rewindhn/blob/master/server.py#L25



Mind if I ask who you're hosting with?


hetzner.de

i7 with 16 gig RAM




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: