Analyzing ChatGPT Backend @hnasr
Analyzing ChatGPT Backend  @hnasr
Uploaded January 2023 | Updated November 2026, 28 minutes ago
ChatGPT is a chatbot launched by OpenAI in November 2022. It is built on top of OpenAI's GPT-3 family of large language models. In this video I use devtool to analyze backend api of chatGPT, and go through the following topics:

0:00 Intro
1:00 Initial Connection
4:45 Protocols (HTTP/2, HTTP/3)
8:50 Authentication
10:00 Conversations, Paging & UUID
14:50 AI Models (text-davinci-002-render)
16:45 Messages
19:00 Server Sent Events
23:00 Moderating Messages & UUID Discussion
26:40 Generating Conversation Titles
28:00 SSE without EventSource
33:00 Feedback API
34:00 Limitations of UUID Messages on Databases
37:00 How ULID Improves reads/writes
38:00 Two ChatGPT talking to Each other

Source code
github.com/hnasr/javascript_playground/tree/master/chatgpt-twochats


Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
backend.husseinnasser.com

Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
network.husseinnasser.com

Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
database.husseinnasser.com

Follow me on Medium
medium.com/@hnasr/membership


Introduction to NGINX (link redirects to udemy with coupon)
nginx.husseinnasser.com

Python on the Backend (link redirects to udemy with coupon)
python.husseinnasser.com

Become a Member on YouTube
youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join

Buy me a coffee if you liked this
buymeacoffee.com/hnasr

Arabic Software Engineering Channel
youtube.com/channel/UChWZsjdoRvZ0T9QWZOD6UpA

🔥 Members Only Content
youtube.com/playlist?list=UUMO_ML5xP23TOWKUcc-oAE_Eg



🏭 Backend Engineering Videos in Order
backend.husseinnasser.com

💾 Database Engineering Videos
youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2

🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast

Gears and tools used on the Channel (affiliates)

🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/647168/10068


Stay Awesome,
Hussein
Analyzing ChatGPT BackendPrime Video Swaps Microservices for Monolith: 90% Cost ReductionRunning out of TCP portsLinuxs blocking reads and writesLLMs are worthless without this (Linux devmem)Kernel Mode explainedHow Huge Pages Work in LinuxHow Shopify’s engineering improved database writes by 50% with ULIDSQL is an API, its all about data storageA private file descriptor per processZero Copy File Transfer - Kernel TLSThe Cost of Memory Fragmentation
Hussein Nasser |

Analyzing ChatGPT Backend

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER