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

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

ความคิดเห็น • 25

  • @DebopriyoBasu
    @DebopriyoBasu 5 หลายเดือนก่อน +1

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

  • @pedronunes9043
    @pedronunes9043 ปีที่แล้ว +2

    Thank you! This was very clarifying.

  • @saurabh9446
    @saurabh9446 ปีที่แล้ว +2

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

    • @TechPrimers
      @TechPrimers  ปีที่แล้ว

      🫡

    • @saurabh9446
      @saurabh9446 ปีที่แล้ว

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

  • @vivi-dj7oo
    @vivi-dj7oo ปีที่แล้ว +2

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

    • @TechPrimers
      @TechPrimers  9 หลายเดือนก่อน

      Glad it was helpful!

  • @TheKennyWorld
    @TheKennyWorld 10 หลายเดือนก่อน +1

    Very detailed and clear explanation

    • @TechPrimers
      @TechPrimers  9 หลายเดือนก่อน

      Glad it was helpful!

  • @user-si5ue8dv7y
    @user-si5ue8dv7y 3 หลายเดือนก่อน +1

    Awesome content

  • @EjazKhan-tr6vt
    @EjazKhan-tr6vt 5 หลายเดือนก่อน

    Too good, easy-peasy👍

  • @ayyanarjayabalan
    @ayyanarjayabalan ปีที่แล้ว +2

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

    • @TechPrimers
      @TechPrimers  ปีที่แล้ว +1

      Done Ayyanar. Check my latest video

  • @user-yu7ic7ri8s
    @user-yu7ic7ri8s ปีที่แล้ว

    Useful session, please post session on resiliency

  • @rathnakumar731
    @rathnakumar731 ปีที่แล้ว +1

    Mass

  • @hkkabir2024
    @hkkabir2024 8 หลายเดือนก่อน +1

    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 8 หลายเดือนก่อน

      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.

  • @ranuchir
    @ranuchir 6 หลายเดือนก่อน

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

  • @sergeibatiuk3468
    @sergeibatiuk3468 7 หลายเดือนก่อน

    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?

  • @SertuncSELEN
    @SertuncSELEN 10 หลายเดือนก่อน +1

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

    • @girishanker3796
      @girishanker3796 7 หลายเดือนก่อน +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 6 หลายเดือนก่อน +2

      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.

  • @JaNaMSoNi
    @JaNaMSoNi ปีที่แล้ว +1

    3 minutes late

    • @TechPrimers
      @TechPrimers  ปีที่แล้ว +1

      oops. you can see the chapter timestamps now and navigate

  • @EldenNoob-yv9ke
    @EldenNoob-yv9ke 4 หลายเดือนก่อน +1

    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.