HTTP Long Polling vs Server Sent Events vs Websockets | Tech Primers
Vložit
- čas přidán 28. 06. 2024
- This video covers various system design essentials like HTTP Long Polling, SSE and Websockets
📌 Chapter Timestamps
===================
00:00 - Intro
00:24 - Agenda
00:52 - Setting context
01:24 - What is HTTP Long Polling?
02:23 - What are SSE (Server Sent Events)?
04:01 - What are Websockets?
06:02 - When to use HTTP Long Polling?
07:56 - When to use Server Sent Events?
09:23 - When to use Websockets?
10:15 - Pros and Cons
13:06 - Summary
Join this channel by contributing to the community:
/ @techprimers
📌 Related Links
=============
🔗 Terraform Getting Started: • Terraform Primer | Get...
🔗 Terraform Architecture: • Terraform Primer | Ter...
🔗 Terraform setup: www.terraform.io/downloads.html
🔗 Github code: github.com/TechPrimers/terraf...
🔗 Terraform Providers: registry.terraform.io/browse/...
📌 Related Playlist
================
🔗Spring Boot Primer - • Spring Boot Primer
🔗Spring Cloud Primer - • Spring Cloud Primer
🔗Spring Microservices Primer - • Spring Microservices P...
🔗Spring JPA Primer - • Spring JPA Primer
🔗Java 8 Streams - • Java 8 Streams
🔗Spring Security Primer - • Spring Security Primer
💪 Join TechPrimers Slack Community: bit.ly/JoinTechPrimers
📟 Telegram: t.me/TechPrimers
🧮 TechPrimer HindSight (Blog): / techprimers
☁️ Website: techprimers.com
💪 Slack Community: techprimers.slack.com
🐦 Twitter: / techprimers
📱 Facebook: TechPrimers
💻 GitHub: github.com/TechPrimers or techprimers.github.io/
🎬 Video Editing: FCP
---------------------------------------------------------------
🔥 Disclaimer/Policy:
The content/views/opinions posted here are solely mine and the code samples created by me are open sourced.
You are free to use the code samples in Github after forking and you can modify it for your own use.
All the videos posted here are copyrighted. You cannot re-distribute videos on this channel in other channels or platforms.
#HTTPLongPolling #SeverSentEvents #WebSockets - Jak na to + styl
Thank you! This was very clarifying.
Amazing explanation! The examples really helped me reinforce my understanding.
Too good, easy-peasy👍
Thank you for this video! The explanation was very clear and helpful. :)
Glad it was helpful!
Freaking loving this channel 🔥 we'll be waiting from now for the new chapter 😂
🫡
@@TechPrimers any chances of creating nodejs/golang examples for the theory being discussed
Awesome content
Useful session, please post session on resiliency
Very detailed and clear explanation
Glad it was helpful!
Love it. Waiting for implementation of SSE like zerodha trading application.
Done Ayyanar. Check my latest video
Is threading on a server going to be an issue with long polling / server sent events if the server is non-blocking, like webflux or scala http4s?
How and where is the user session maintained for SSE and Web sockets? Please share
Mass
under hige load which should we use ? websocket vs long polling ? thank you
Long polling🤔 coz we can't horizontally scale web sockets since they are stateful and also long polling provides enough delay at the server side.
Long polling nowadays is almost always a bad idea. WebSockets are lighweight, fast, async, scalable, widespread and don't spam a server with requests. SSE could be useful for some specific cases, but it's hard to scale.
what is the best way for implementing notification for huge amount of data? i feel very comfortable with long pooling . plz give me your opinion
In my opinion, server-sent event would be the ideal choice for this scenario, I recently used server-sent events in one of project for live notifications service, alongside this you can make use of RabbitMQ or Kafka in the backend for the scalable architecture.
3 minutes late
oops. you can see the chapter timestamps now and navigate
useless and incorrect video.
1. No info on TCP connection like is the same connection is reused.
2. SSE is used for communicating textual data and not binary data like video streaming.