Elon Musk tweeted an image on a whiteboard from a "Twitter HQ code review" that wrapped up early Saturday. The image has attracted nearly 12k upvotes and over 1,000 comments over at the subreddit r/ProgrammerHumor, under the title "Twitter for Dummies". The image itself is an architecture schematic, not code. I put it on a Miro Board and Luke Dubois and Mark Hansen helped annotate it. If you're curious how Twitter's bits work, check it out here: https://miro.com/app/board/uXjVPBnTJmM=/?share_link_id=748653261357
Twitter Architecture

miro.com
@justinhendrix A popular interview question for system architects is, “design Twitter.” As ASP apps go, the architecture of the thing is relatively simple (assuming you blackbox things like timeline algorithms and advertising), but the question goes more toward handling chokepoints and managing performance over millions of hits per second.