Notes
Notes - notes.io |
When users open a website:
Browser → sends request → Apache responds
Simple.
But modern websites keep connections open for a while.
This is called:
Keep-Alive Connection
What is Keep-Alive?
Normally without keep-alive:
Browser requests HTML
Connection closes
Browser requests CSS
Connection closes
Browser requests JS
Connection closes
Creating connections again and again is expensive.
So HTTP introduced:
KeepAlive On
Now:
One connection stays open
Multiple requests reuse same connection
Much faster.
Real-Life Analogy
Without keep-alive:
Customer enters shop
asks one question
leaves
comes again
asks another question
leaves
Very inefficient.
With keep-alive:
Customer stays in shop
asks multiple questions
Better.
Why Keep-Alive Creates a Problem
Here’s the important part.
Suppose user loads website.
Browser may:
download HTML
wait 2 seconds
request image
wait again
request CSS
During waiting:
connection is OPEN
but no real work happening
This idle waiting is the core problem.
Worker MPM Problem
Worker MPM uses:
processes
threads
Each connection occupies:
one thread
Even when client is doing NOTHING.
Example
Suppose:
1000 users connected
But:
only 50 actively downloading
950 idle keep-alive connections
Worker MPM still keeps:
1000 threads busy
because each connection owns a thread.
This wastes RAM and threads.
Event MPM Solves This
Event MPM says:
“Why waste threads for idle clients?”
Instead:
active requests use worker threads
idle keep-alive connections are handled separately
This is the BIG innovation.
Simple Event MPM Flow
Worker MPM
Client connected
↓
Thread stays attached entire time
↓
Even during idle waiting
Event MPM
Client connected
↓
Thread handles request
↓
Connection becomes idle
↓
Thread released back to pool
↓
Special listener watches idle connection
↓
When client sends next request,
a worker thread is assigned again
THAT is the major difference.
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
