You can find the full system design doc here - Feel free to use it as a template for when you're designing systems at your job!
The concrete details are covered in the doc linked above, so this summary will focus on the "meta" context behind this part and additional commentary: