Live data from Hacker News

Ask HN: Best Framework to build Reddit in 2021?

news.ycombinator.com

11–18 of 18 posts

Re: Ask HN: Best Framework to build Reddit in 2021?

#11
post #3
post #2

what do you know? use that. Also you could start with reddit's latest opensource version.

I can use Ruby on Rails but I don't think an RoR app can handle thousands of comments per minute in an optimised way. I run a midsize app in Rails 5 and already having lot of scaling issues. Iirc Reddit stopped open sourcing their code from 2017 and I guess understanding and running that 12 year old spaghetti code wasn't worth it anyway. I don't see anything useful on their github page too https://github.com/reddit

GitHub and shopify are written in RoR afaik, many millions of requests go through them just fine

Re: Ask HN: Best Framework to build Reddit in 2021?

#12
post #2

what do you know? use that. Also you could start with reddit's latest opensource version.

Worst possible advice, if you pardon my borderline rudeness. That's what most programmers do, following famous saying that for someone with a hammer every problem looks like a nail.

Re: Ask HN: Best Framework to build Reddit in 2021?

#13
As far as I know, reddit uses postgresql with heavy partitioning.

I personally would stay far from MongoDB because of personal preferences and try something else, like Citus Hyperscale for Postgresql.

Then, I would make a prototype using hasura.io and something like next.js

My backup plan would be to go with Ruby On Rails because it's actually still very good.

Re: Ask HN: Best Framework to build Reddit in 2021?

#14
post #2

what do you know? use that. Also you could start with reddit's latest opensource version.

Worst possible advice, if you pardon my borderline rudeness. That's what most programmers do, following famous saying that for someone with a hammer every problem looks like a nail.

This is how we end up writing iOS apps in Kotlin despite Swift being very similar and built for iOS development.

Re: Ask HN: Best Framework to build Reddit in 2021?

#15
post #6

Maybe spez can chime in, but I believe the first Python re-write of Reddit 1.0 was in Pylons. The key was pre-render every page, no ajax, just pagination, and sacrifice page "freshness" for stability. Modern equivalent is something like static NuxtJS deployed to Netlify, but with tight re-generation loops. At <1M writes per day, its an interesting challenge if the site is regionally limited, and you are trying to sel…

Ah, infinite scrolling, really hate it...

Re: Ask HN: Best Framework to build Reddit in 2021?

#16
You should not be thinking about scaling at this point. Just build the thing and go from there. The chances of you getting enough users for 1000s of comments per minute are low. Worry about that problem when you get there, it's a good one to have.

Re: Ask HN: Best Framework to build Reddit in 2021?

#18
post #2

what do you know? use that. Also you could start with reddit's latest opensource version.

Worst possible advice, if you pardon my borderline rudeness. That's what most programmers do, following famous saying that for someone with a hammer every problem looks like a nail.

Ops problem is more architecture and scale, IMO, as opposed to what coding language or JS framework.

I’d start with Postgres on the back end and then work with scale as needed over time. The service can be written in pretty much any language like Kotlin, Java, Python, or even Rust if you want. Personally I’ve never used Swift server side.

IMO the worse option is to try to over optimize and use some shiny technology that you don’t understand how to use.

Post reply on HN