To build this new version of Messenger, we needed to rebuild the architecture from the ground up and rewrite the entire codebase.