After years of organic growth, Facebook has completely rewritten its website UI: with React, GraphQL and without PHP.
The complete rewrite of such a large and widely used website can definitely be described as unusual. As the team writes, when the social network launched in 2004, Facebook.com was a simple server-side rendered PHP website. Since then, however, new layers have been added for new technologies, which have always been harder to maintain and have also made adding new functions more and more complicated.
From Facebook’s point of view, the rewriting of the website was also necessary so that the many and modern web technologies that the Dedicated team has envisioned for the new page can be used. Above all, this means that they should be particularly interactive and feel like an app.
The decision for React is not surprising
The fact that PHP is not used is not surprising either. The developers write that they are not convinced that it can be used as pleasantly as with client-side apps. On the server side, too, Facebook is increasingly doing without PHP. For example, the in-house PHP alternative HHVM only supports the Hack language and no longer supports PHP, as was originally the case.
The author of the article is Sebastian Grüner.