3 ms·
Hey. I built RewindHN. I created this for the HN community and I'm very happy to see so many people enjoying it :) If you have any questions about how I built
by kami8845 14y ago
Hey. I built RewindHN.
I created this for the HN community and I'm very happy to see so many people enjoying it :)
If you have any questions about how I built this or if you'd like to suggest something new, let me know!
- ludwigvan 14y agoI see that you are using pyquery to scrape the content. I was using BeautifulSoup for my previous projects, but it seems pyquery is a better choice due to its compatibility with jQuery, so I am planning to switch too. Are there any downsides to pyquery, though?
- fudged71 14y agoYour 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
- Tyrant505 14y agoAwesome work, thank you
- deleted 14y ago[deleted]
- username3 14y agoIt's difficult to follow changes. Step up and down the ladder of abstraction. http://worrydream.com/LadderOfAbstraction/ http://worrydream.com/LadderOfAbstraction/
- sidcool 14y agoCongrats, it's a very good app!