In Short Polling, the client keeps asking:
“Hey server, do you have any new messages?”
every few seconds (like every 3s).
⚠️ Most of the time, the server says “No”, wasting:
So we need something smarter that doesn’t spam the server — but still reacts instantly when something new happens.

Long Polling = “Ask once and wait until something happens.”
Instead of sending requests repeatedly every few seconds,
the client sends one request — and the server holds it open until it has new data (or times out).
Let’s visualize: