🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 5 Min Lesezeit
0

Long Polling : The First Time the Web Tried to Feel Alive

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

In the previous article, we explored traditional polling.



At first glance, polling seemed like a reasonable solution.



A browser simply asked the server:




"Anything new?"




If nothing changed:




CODE
{
"updates": []
}






The browser waited a few seconds and asked again.



Simple.



Predictable.



Easy to implement.



For small systems, it worked perfectly.



But then users changed.



And suddenly, polling became a business problem.









The Incident Nobody Talks About



Imagine it's 2008.



You're part of an engineering team building a rapidly growing social platform.



Your CEO walks into the room and says:




"Users are complaining that messages feel slow."




The database is healthy.



The servers are healthy.



The network is healthy.



Yet users are unhappy.



Why?



Because technology was measuring milliseconds.



Users were measuring feelings.



To them:




CODE
Message Sent


Nothing Happens


3 Seconds Later...


Message Appears






The application felt broken.



Not because it was slow.



Because it wasn't instant.



And expectations were changing.









The Product Team's Suggestion



The product manager proposes a simple solution.




"Let's poll more often."




Instead of every 10 seconds:




CODE
Poll Every 1 Second






Everyone nods.



Problem solved.



Or so they think.



Three weeks later, infrastructure costs spike.



Monitoring dashboards light up.



Operations teams start asking questions.









The Postmortem



After investigation, engineers discover something surprising.



The system isn't struggling because users are sending messages.



The system is struggling because users are asking if there are messages.



Imagine:




CODE
200,000 Users






Each user polls every second.




CODE
200,000 Requests / Second






Now imagine only 2% of those requests actually contain new information.



That means:




CODE
196,000 Requests






exist solely to hear:




"No updates."




Every second.



All day.



Every day.



The servers are spending most of their time answering questions nobody needed to ask.









Looking at the Problem Like an Architect



A junior developer might see:




"Too many requests."




A system architect sees:




"The communication model is wrong."




The real issue wasn't server performance.



The issue was this:




CODE
Client


Keeps Asking






Even when the server already knows nothing has changed.



The architecture was forcing unnecessary conversations.









A Different Idea



One engineer proposes something unusual.



Instead of:




CODE
Client:
Anything new?

Server:
No.

Client:
Anything new?

Server:
No.






What if the conversation became:




CODE
Client:
Tell me when something changes.

Server:
Okay. I'll wait.






And that's exactly what Long Polling became.









Long Polling Explained Like a Recruiter



Imagine you're hiring for a company.



Traditional polling looks like this:




CODE
Recruiter:
Any new applicants?

System:
No.

Recruiter:
Any new applicants?

System:
No.

Recruiter:
Any new applicants?

System:
No.






Long Polling changes the workflow.




CODE
Recruiter:
Call me when somebody applies.

System:
Understood.






Hours later:




CODE
New Applicant Submitted


Phone Rings






The recruiter isn't constantly checking.



The system notifies them only when something important happens.



That is Long Polling.









What Actually Happens Under the Hood



Let's say a user opens a chat application.



The browser sends:




CODE
GET /messages






Normally the server would immediately respond.



With Long Polling:




CODE
Request Arrives


Server Checks For Updates


No Updates Found


Keep Connection Open






Now the server waits.



Maybe 5 seconds.



Maybe 20 seconds.



Maybe 60 seconds.



Suddenly:




CODE
New Message Arrives






The server immediately responds.




CODE
{
"message": "Hello!"
}






The browser receives the message.



Then instantly creates another waiting request.




CODE
Request

Wait

Response

Reconnect

Wait Again






To the user:



It feels instantaneous.



To the infrastructure:



It's still HTTP.



Just used differently.









Why Business Leaders Loved It



From a buyer's perspective, Long Polling created something valuable:






Faster Customer Support



Without Long Polling:




CODE
Customer Sends Message


Agent Sees It 10 Seconds Later






With Long Polling:




CODE
Customer Sends Message


Agent Sees It Almost Immediately






Response times improve.



Customer satisfaction improves.



Support metrics improve.



Revenue often improves.



Nobody buying the software cares about Long Polling.



They care that customers stop complaining.









Why Developers Loved It



Because it solved a real problem without requiring a new protocol.



Developers already had:




CODE
HTTP
Load Balancers
Reverse Proxies
Application Servers






No major infrastructure changes were needed.



Most teams could implement Long Polling with existing technology.



That made adoption relatively easy.









Why Operations Teams Hated It



Because Long Polling quietly moved pressure somewhere else.



Traditional polling creates:




CODE
Many Requests
Short Connections






Long Polling creates:




CODE
Fewer Requests
Long-Lived Connections






At first this sounds better.



Until your system reaches:




CODE
500,000 Active Users






Now you have:




CODE
500,000 Open Connections






waiting simultaneously.



The CPU usage might decrease.



But memory usage increases.



Connection tracking increases.



Load balancer complexity increases.



Timeout management becomes critical.



The bottleneck simply moved.









The Scaling Wall



Around this point, many companies hit a new challenge.



Imagine a global chat application.




CODE
1 Million Connected Users






Every user has:




CODE
One Waiting Request






Now the infrastructure must remember:




  • Who is connected


  • Which request belongs to whom


  • How long they've been waiting


  • When to timeout


  • When to reconnect




The system starts behaving less like a website.



And more like a real-time communication platform.



That distinction becomes important.



Because HTTP was never designed for this.









The Architect's Lesson



Long Polling teaches one of the most important lessons in software architecture.



The first solution that works is rarely the final solution.



The evolution looked like this:




CODE
Polling


Too Much Waste


Long Polling


Too Many Open Connections


Search For Something Better






Long Polling wasn't the destination.



It was the bridge.



A brilliant compromise between:




  • User expectations


  • Existing browser capabilities


  • Available infrastructure


  • Engineering constraints




For nearly a decade, some of the largest systems on the internet relied on that compromise.









The Question That Changed Everything



Eventually engineers started asking a different question.



Not:




"How can the client ask more efficiently?"




But:




"Why is the client asking at all?"




What if the connection stayed open permanently?



What if the server could speak first?



What if communication flowed both directions?



That question led to one of the biggest shifts in modern web architecture:



WebSockets.



And that's where our story goes next.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)