logo
episode-header-image
Aug 2023
52m 58s

The Journey of a Request to the Backend

Hussein Nasser
About this episode

From the frontend through the kernel to the backend process
When we send a request to a backend most of us focus on the processing aspect of the request which is really just the last step.

There is so much more happening before a request is ready to be processed, most of this step happens in the Kernel. I break this into 6 steps, each step can theoretically be executed by a dedicated thread or process. Pretty much all backends, web servers, proxies, frameworks and even databases have to do all these steps and they all do choose to do it differently.


Grab my backend performance course https://performance.husseinnasser.com


0:00 Intro

3:50 What is a Request?

10:14 Step 1 - Accept 

21:30 Step 2 - Read

29:30 Step 3 - Decrypt

34:00 Step 4 - Parse

40:36 Step 5 - Decode

43:14 Step 6 - Process



Medium article

https://medium.com/@hnasr/the-journey-of-a-request-to-the-backend-c3de704de223


Up next
Jun 13
kTLS - Kernel level TLS
Fundamentals of Operating Systems Course https://oscourse.winktls is brilliant.TLS encryption/decryption often happens in userland. While TCP lives in the kernel. With ktls, userland can hand the keys to the kernel and the kernel does crypto. When calling write, the kernel encryp ... Show More
22m 55s
May 9
The beauty of the CPU
If you are bored of contemporary topics of AI and need a breather, I invite you to join me to explore a mundane, fundamental and earthy topic.The CPU.A reading of my substack article https://hnasr.substack.com/p/the-beauty-of-the-cpu 
9m 38s
Apr 18
Sequential Scans in Postgres just got faster
This new PostgreSQL 17 feature is game changer. They know can combine IOs when performing sequential scan. Grab my database coursehttps://courses.husseinnasser.com 
27m 36s
Recommended Episodes
Apr 2017
39. The Web Dev ROADMAP: How to Get a Job as a Developer (Jr/Mid) EFFICIENTLY
Please fill out this survey so I know what type of content YOU PERSONALLY WANT: ⁠https://beachangeagent.typeform.com/to/hQLXrjUS 
19m 3s
Aug 2022
Tech job interview support group
Struggling through the tech job interview process? We feel you! On this episode, Amal, Nick & Amelia get together to discuss the various ways the interview process disappoints, share their own interview stories, and suggest ways we can improve the process for everyone. Discuss on ... Show More
1h 4m
Sep 2023
033: Endure The Process
If I have one competitive advantage, it’s the ability to endure a process in order to achieve the desired result. Whether it’s building a business, a community, or chasing a performance goal - showing up consistently is essential to me. In this episode, I chat about why enduring ... Show More
35m 56s
Dec 2023
AsyncAPI V3 with Fran Mendez
In this episode of the podcast, Thomas Betts speaks with Fran Mendez about version 3 of AsyncAPI. The standard format for describing asynchronous APIs has evolved, and has made some breaking changes to address limitations in earlier versions. Read a transcript of this interview: ... Show More
29m 54s
Jan 2022
3 Steps Required to Change Anything
Is a title like "Three Steps Required to Change Anything" an oversimplification of what it takes to get what you want?Or… is it the acceptance that everything is simple - until we complicate it.If you guess the second, you will get along just fine.So, what are those three steps?T ... Show More
12m 49s
Mar 2024
Linux Kernel Scheduler Developer | David Vernet
The linux kernel is something we all use but have you ever thought about what goes into it, well today we've got David Vernet on the show who has spent quite a bit of time focusing on one aspect, that being the scheduler. =========Guest Links========== Twitch: https://www.twi ... Show More
1h 55m
Aug 2021
ABP #311 - How to Check for Accounting Mistakes
The three-step process 
5m 41s
Mar 2024
747: Middleware Explained
Join Wes and Scott for a hasty episode of Syntax as they unpack the power of middleware for developers, covering caching, authentication, A/B testing, error handling, and user redirection in a quick, punchy rundown to supercharge your backend skills! Show Notes 00:00 Welcome to S ... Show More
27m 45s
Mar 2024
AsyncAPI V3 with Fran Méndez
This is a re-post from December 2023. In this episode of the podcast, Thomas Betts speaks with Fran Mendez about version 3 of AsyncAPI. The standard format for describing asynchronous APIs has evolved, and has made some breaking changes to address limitations in earlier versions. ... Show More
29m 54s
Mar 2024
3 Hour Step 2/3 Last Minute Review (April 2024)
In this podcast, I discuss the 3 hour Step 2/3 Last Minute Review. The course will be taking place over zoom from 5-8 pm PST on 4/27. The goal of the course is to use integrative scenarios to quickly hit on many of the HY points commonly tested on the USMLEs in a super short time ... Show More
2m 36s