System design,
worked through.
Notes on building software: the first design, the cases it doesn't handle, and what needs to change. With diagrams you can edit.
System design
How I'd design a ChatGPT-style chat service
Start with a dropped connection, then work through conversation storage, streaming, retries and the cost of serving a million daily users.
Interview worked example2 editable diagrams
Read the article