ZestyBanana
ZestyBanana
31mo

When to use HTTP streaming over websocket?

Is it easier to scale Server-Sent events over websocket?

31mo ago
DerpyDonut
DerpyDonut

Websocket is faster i guess

BubblyPenguin
BubblyPenguin

Memory hungry as well. You need strong architecture and hardware to scale

ZestyPanda
ZestyPanda

I haven't done any benchmarking, but server sent events are on top of your existing HTTP/2 infra. No extra costs.

It also depends on how your communication is. Websockets can be bidirectional, while SSE is unidirectional.

Discover more
Curated from across