News for hackers. Stuff that matters.
Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by anderspitman on Friday December 20, 2019 @09:34PM (#21849224)
> SSEs are sent over traditional HTTP. That means they do not require a special protocol or server implementation to get working.

Can you not combine your HTTP and WebSocket requests behind the same HTTP server/port in golang? Other languages I've used support that.

Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by mleonard on Friday December 20, 2019 @05:48AM (#21843139)
You mentioned Twitter uses server sent events. Do you have a link you car share about that? I'm interested in learning more about how they use SSE.
Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by rad_gruchalski on Friday December 20, 2019 @09:56AM (#21844584)
One interesting use case to look at would be Marathon Event Bus: https://mesosphere.github.io/marathon/docs/event-bus.html.
Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by sim0n on Friday December 20, 2019 @08:24AM (#21843922)
One case I've come across them using it for is delivering updates for visible tweets in a timeline (e.g. like/retweet counts being mutated).
Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by tuukkah on Friday December 20, 2019 @05:40AM (#21843105)
Interesting difference between Server-Sent Events and Websockets if the former can deliver out-of-order like UDP: "Because SSE works on top of HTTP, HTTP protocol improvements can also benefit SSE. For example, the in-development HTTP/3 protocol, built on top of QUIC, could offer additional performance improvements in the presence of packet loss due to lack of head-of-line blocking."
Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by tuukkah on Friday December 20, 2019 @09:23AM (#21844302)
Could any of the downvoters explain why the quoted is an advantage over Websockets then? The quote is from the README section "Why Server Sent Events (SSE)? Why would you choose SSE over WebSockets?": https://github.com/unifrost/unifrost/blob/master/README.md#w...
Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by Buge on Friday December 20, 2019 @08:09AM (#21843864)
SSE can deliver out of order? Is that within a single EventSource or across multiple. I thought that within a single EventSource all messages were in order.
Re:Show HN: Unifrost – Stream PubSub Messages to the Browser by tuukkah on Friday December 20, 2019 @08:40AM (#21844006)
Good point and a downer if you need to hack with multiple EventSources. In any case, I see there's ongoing standardisation work on WebTransport including a DatagramTransport on top of QUIC: "It can be used like WebSockets but with support for multiple streams, unidirectional streams, out-of-order delivery, and reliable as well as unreliable transport." https://wicg.github.io/web-transport/#introduction