3 ms·
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 indi
by babs474 15y ago
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.
- ceol 15y agoThanks 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.