Live data from Hacker News

Backend of Meta Threads is built with Python 3.10

twitter.com

161–170 of 458 posts

Re: Backend of Meta Threads is built with Python 3.10

#161
post #154

Earlier quoted context omitted.

For me, it does seem really strange since PHP (currently) is faster than Python and PHP wasn't fast enough for Facebook. But it's interesting to see how it'll play out.

It’s obvious why they went with python. Since Instagram was written in python and Threads is based on instagram, they’re probably using a lot of the libraries they already have for Instagram.

That makes some sense.

Re: Backend of Meta Threads is built with Python 3.10

#164

For the “Python isn’t fast enough for production backend” crowd from the same company that brought you the largest social network built on PHP + MySQL.

Earlyish facebook engineer here. Early days FB php was nothing like the php used to template websites. All kinds of specialized libraries to enable a much more sophisticated programming style. Think functional helpers, and asynchronous execution on thousands of cores, spanning trees across data centers using ssh etc. As a tangent a lot of the good stuff I used was written by Evan Priestley, who also did Phabricator a…

Can you speak to the onboarding and learning curve in that environment? What was the training like? What kinds of timelines did you experience regarding expectations as a new hire?

Asking because I’m curious about these early stage mega-tech companies that are working at a scale I can’t fathom.

Re: Backend of Meta Threads is built with Python 3.10

#165

For the “Python isn’t fast enough for production backend” crowd from the same company that brought you the largest social network built on PHP + MySQL.

It may not be because of Python, but Thread is definitely not ready for the current load. Few hours ago no one could access to Zuck's profile page, and he had to take it to private to hide the issue.

I think there have been issues where profile pages say “this account is private and has 0 followers.” I saw that yesterday on every account I clicked on (on web). And then a few minutes later it was back to normal. It might not be that he manually took it private to hide an issue.

Re: Backend of Meta Threads is built with Python 3.10

#166
post #51

Earlier quoted context omitted.

Could we get the mastodon link as the main link, please? Can actually view that one.

The tweet is currently viewable while logged out. Have you tried?

Only thing I see is: "Something went wrong. Try reloading."

(Mastodon link works.)

Re: Backend of Meta Threads is built with Python 3.10

#167

Earlier quoted context omitted.

Are you using the ORM/auth/admin features or is Django just a lightweight router? I can't imagine the ORM being too useful at Facebook's scale.

I'm not familiar enough with Django to say for sure, but I assume at this point it's almost entirely custom ORM and libraries on top of async django routing/response.

[deleted]

Re: Backend of Meta Threads is built with Python 3.10

#169

Earlier quoted context omitted.

How is Django now? I’m a long time python dev (data eng space) but new-ish to web dev. I started a Flask project 2 years ago and found it to be pretty full of footguns, mixed messaging on best practices for scalable apps, and the ecosystem feels overbloated with vapor ware extensions. Is this just a Flask problem, or does Django have the same issues?

You simply can't beat Django's ORM for general stuff. It's too awesome. This alone makes it so hard to choose anything else. I know django doesn't have that "shiny factor" to it these days - but it's very reliable. > mixed messaging on best practices for scalable apps The WSGI stuff can be kinda confusing and is used across a lot of python frameworks including django and I think flask? My advice for "simple scaling"…

Not only can you not beat Django's modeling in Python, but I simply cannot find an in-kind solution in JS either. Nothing covers all of the bases the way Django does, or more specifically DRF/graphene-django.

The current state of the art is apparently Prisma, but it covers only a small part of the full picture.

Re: Backend of Meta Threads is built with Python 3.10

#170

Ironic that a post about Threads backend is hosted on twitter.

Their web app is not there. I think you can directly link to a Thread but it only shows what you linked to, not even the discussion tree or anything like that.

Its not open to the web yet. Supposedly, it will be

Post reply on HN