Server Sent Events Explained with Go!

Поділитися
Вставка
  • Опубліковано 6 лют 2025

КОМЕНТАРІ • 19

  • @Secret4us
    @Secret4us 16 днів тому

    Thanks for that lesson in 'go'!

  • @ahmadjunaidi21-l6l
    @ahmadjunaidi21-l6l 3 місяці тому

    i really like this kind of video. keep it up man !

  • @chrismuga
    @chrismuga 2 роки тому +2

    We can feel the passion in your delivery, keep going with the awesome content.

  • @Based1776
    @Based1776 2 роки тому +5

    I just discovered your channel and your content is awesome. Hope you get more subscribers

    • @core_dump
      @core_dump  2 роки тому

      Thanks!! I am hoping for the same 🤓

  • @pseudounknow5559
    @pseudounknow5559 2 роки тому +4

    I watched the video aboit Discord and now this video. I subscribe, keep making good content !

  • @naomigoreng
    @naomigoreng Рік тому

    This channel is gold

  • @puszek_997
    @puszek_997 Рік тому

  • @josephdaquila2479
    @josephdaquila2479 6 місяців тому

    If I'm not sure when my client is going to reach out to the server, would I just send out the /stream-sse every once in a while?
    I thought sever sent events would allow me to just automatically send the event to the client.
    I guess I don't understand how to initialize each time

    • @core_dump
      @core_dump  4 місяці тому

      The client would reach out to the server just to initiate the connection. If that is not done, the server would not know the address of the client before hand.

  • @ManuelMartinez-dj2gr
    @ManuelMartinez-dj2gr 2 роки тому +1

    When should I use SSE over a websocket ? Or long pulling?

    • @core_dump
      @core_dump  2 роки тому +1

      So, SSE can be used only when server needs to push and no bidirectional communication is required, like push notification. SSE is quite lightweight.
      Long Polling is less efficient than SSE because it requires the creation of a new HTTP request for each piece of data, but it may be a good choice for applications that need to support older browsers or that need to work around network restrictions.

  • @block4671
    @block4671 11 місяців тому

    this example is not beginners friendly, thanks.

    • @core_dump
      @core_dump  10 місяців тому

      Sorry for that.

  • @niklaswillecke9794
    @niklaswillecke9794 Рік тому

    Can you upload the code to github ?

  • @packagemain
    @packagemain 3 місяці тому

    Great video Does anyone use Server-Sent Events in their projects? If yes, for which use cases? This video dives into the main building blocks of Server-Sent Events in Go.
    ua-cam.com/video/nvijc5J-JAQ/v-deo.html