Design a chat app like ChatGPT

Interviewers ask you to design a chat app like ChatGPT. Here's an answer built from this chapter, part by part.

System design · about 6 minutes

A chat app like ChatGPT looks like one box with a text field. Underneath it's the parts from this chapter, put together in an order. Answer the question in that order, and each part has a reason to be there.

Picture: the whole chat app as one map: the app, the server, a cache, the database with its read copies, the AI company and later jobs, each marked with the numbers of the lessons that explain it