Re:How Reddit went from a second-tier aggregator to the Web’...
by ceol on Saturday January 21, 2012 @05:27PM
(#3494855)
Ah, I remember you. Would you mind going over how unedditreddit saved comments? Do you think you'd be able to make the same service now where threads reach 5,000+ comments daily?
[ Parent
| on HN ]
Re:How Reddit went from a second-tier aggregator to the Web’...
by babs474 on Saturday January 21, 2012 @06:19PM
(#3495000)
Sure, reddit has (or had at one point) a json api to get all new comments as they stream in. Unedditreddit simply saved those comments. Later when the user indicates they are interested in a certain comment id, I can simply serve it up out of my database.
Whether the same approach would work today depends on how well the reddit new comment api is holding up. Even a year ago, when unedditreddit was working, new comments was a decent sized firehose and the approach seemed to work well.
Re:How Reddit went from a second-tier aggregator to the Web’...
by ceol on Saturday January 21, 2012 @09:24PM
(#3495405)
Thanks for your answer! I forgot about the /comments page for each subreddit (including r/all). How often did you poll the API for comments? It seems like there are so many comments that you'd have to do it every couple of seconds.