DEV Community

Cover image for Real-time Updates: Polling, SSE and Web Sockets

Real-time Updates: Polling, SSE and Web Sockets

Sanjeev Sharma on January 17, 2022

Cover image by Martin Jaros on Unsplash. Hey 👋 If you are a junior or mid-level front-end developer 👨‍💻, chances are you might have implemented s...
Collapse
 
dinniej profile image
Nguyen Ngoc Dat •

Polling/Long Polling: Mails dashboard like Gmail
Web Socket: RTC application
SSE: This is the first time I read about this, but I think this will be great with server monitoring systems since we only need one side response from the server

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma •

Excellent examples! You understand it right.

Collapse
 
liyasthomas profile image
Liyas Thomas •

This is very informative. Learned a lot about real-time APIs.

If anyone like to spin up a any such realtime APIs (SSE, Socket.IO, WebSocket etc.) online - checkout Hoppscotch.io - helps to make and test real-time requests directly from the browser.

GitHub logo hoppscotch / hoppscotch

👽 Open source API development ecosystem - https://hoppscotch.io

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma •

Thanks, Liyas!

And yes hoppscotch is awesome. 👌

Collapse
 
liviufromendtest profile image
Liviu Lupei • • Edited

This was a great read! Thank you for writing such a detailed article.
We have a bunch of real-time updates ourselves at Endtest.
When a user is running an automated on our platform, they get real-time logs, screenshots and live video.
And we're always looking to improve the performance for that.

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma •

I'm glad I could be of some help. :)

Collapse
 
jamessspanggg profile image
James Pang •

Nice one Sanjeev!

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma •

Thanks, bruh!

Collapse
 
makx profile image
Makx •

Good article. Concise and informative.

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma •

Thank you! :)

Collapse
 
near2542 profile image
near2542 •

Thanks !! I'm now more confident to implement some of these.

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma •

I'm glad I could help.