X rebuilt its web app from scratch and merged three servers into one
X rebuilt its existing web application in under six months, using five engineers and AI coding agents. The three servers that handled users, search crawlers and link previews have been merged into one. Logged-out service has moved to the new app, and logged-in users are being moved country by country.
The old React client first downloaded an HTML shell and JavaScript, then requested data through GraphQL[1]. The new app uses streaming server-side rendering (SSR)[2], so the page sends real content from the first response, and the browser reuses data already fetched on the server. On a slow network, the time to the first post fell from 23.9 seconds to 2.7 seconds, and compressed JavaScript downloads per page dropped from 4.1–4.8 MB to 1.3–2.3 MB.
The team manages AI-generated code with an AGENTS.md file, more than 25 agent skills and custom lint rules[3]. Engineers design the architecture and review every change, while agents port existing behavior, convert pages, write tests and fix CI errors. Traffic moved in this order: search crawlers, then logged-out users, then logged-in users, with the old and new apps running in parallel so changes could be reverted at once.
Read the original blog.x.comDiscussion on GeekNews
Sources
-
KRGeekNews KO
X.com을 처음부터 다시 구축하기 - 서버 3개를 하나로
-
blog.x.com
Rebuilding the global town square from scratch



