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.
Backend of Meta Threads is built with Python 3.10
161–170 of 458 posts
Re: Backend of Meta Threads is built with Python 3.10
#162Re: Backend of Meta Threads is built with Python 3.10
#163Re: Backend of Meta Threads is built with Python 3.10
#164For 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…
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
#165For 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.
Re: Backend of Meta Threads is built with Python 3.10
#166Re: Backend of Meta Threads is built with Python 3.10
#167Earlier 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.
Re: Backend of Meta Threads is built with Python 3.10
#168Ironic that a post about Threads backend is hosted on twitter.
Re: Backend of Meta Threads is built with Python 3.10
#169Earlier 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"…
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
#170Ironic that a post about Threads backend is hosted on twitter.
Its not open to the web yet. Supposedly, it will be