We walk through how we implemented an SSE server that’s scalable and load-balanced to simplify and improve a real-time data visualization application.

  • bitcrafter@programming.dev
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    11 months ago

    I am not really sold that going to all of this effort to implement a new communication mechanism is really a better plan than just going with WebSockets, even if WebSockets is not a perfect fit (which they very briefly cover in the article). However, if I am wrong then perhaps someone here could explain to me what I am missing.

    • nomad@infosec.pub
      link
      fedilink
      arrow-up
      3
      ·
      11 months ago

      SSE are websocks but with a broadcast model. All you need is a websocket open to any of the broadcast sources without providing two-way communication on the socket. Therefore management of a lot of connected clienta becomes very cheap, as you just need them connected to any proxy.that serves your events.