HTTP Long Polling vs Server Sent Events vs Websockets | Tech Primers

Sdílet
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

Komentáře • 25

  • @pedronunes9043
    @pedronunes9043 Před 9 měsíci +2

    Thank you! This was very clarifying.

  • @DebopriyoBasu
    @DebopriyoBasu Před 2 měsíci +1

    Amazing explanation! The examples really helped me reinforce my understanding.

  • @EjazKhan-tr6vt
    @EjazKhan-tr6vt Před 2 měsíci

    Too good, easy-peasy👍

  • @vivi-dj7oo
    @vivi-dj7oo Před 10 měsíci +2

    Thank you for this video! The explanation was very clear and helpful. :)

  • @saurabh9446
    @saurabh9446 Před rokem +2

    Freaking loving this channel 🔥 we'll be waiting from now for the new chapter 😂

    • @TechPrimers
      @TechPrimers  Před rokem

      🫡

    • @saurabh9446
      @saurabh9446 Před rokem

      @@TechPrimers any chances of creating nodejs/golang examples for the theory being discussed

  • @user-si5ue8dv7y
    @user-si5ue8dv7y Před měsícem +1

    Awesome content

  • @user-yu7ic7ri8s
    @user-yu7ic7ri8s Před rokem

    Useful session, please post session on resiliency

  • @TheKennyWorld
    @TheKennyWorld Před 7 měsíci +1

    Very detailed and clear explanation

  • @ayyanarjayabalan
    @ayyanarjayabalan Před rokem +2

    Love it. Waiting for implementation of SSE like zerodha trading application.

  • @sergeibatiuk3468
    @sergeibatiuk3468 Před 5 měsíci

    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?

  • @ranuchir
    @ranuchir Před 3 měsíci

    How and where is the user session maintained for SSE and Web sockets? Please share

  • @rathnakumar731
    @rathnakumar731 Před rokem +1

    Mass

  • @SertuncSELEN
    @SertuncSELEN Před 8 měsíci +1

    under hige load which should we use ? websocket vs long polling ? thank you

    • @girishanker3796
      @girishanker3796 Před 4 měsíci +1

      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.

    • @J1MKAKA1N
      @J1MKAKA1N Před 3 měsíci +1

      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.

  • @hkkabir2024
    @hkkabir2024 Před 6 měsíci

    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

    • @ghoulbond
      @ghoulbond Před 6 měsíci

      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.

  • @JaNaMSoNi
    @JaNaMSoNi Před rokem +1

    3 minutes late

    • @TechPrimers
      @TechPrimers  Před rokem +1

      oops. you can see the chapter timestamps now and navigate

  • @EldenNoob-yv9ke
    @EldenNoob-yv9ke Před 2 měsíci

    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.