Subscriptions through SSE #155
-
To keep things simple, as of today most browser support HTTP 2, so SSE doesn't have those disadvantages of the past and can replace Websockets anywhere you aren't building a FPS-shooter on the browser :) So it's a simpler architecture and built upon HTTP already. Some GraphQL projects are already adopting SSE as the standard for subscriptions, like graphql-yoga for example. What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
I'm late to the party, but isn't it still true that most load balancer configurations have more complex configuration, scaling, and orchestration concerns when you have to support keep alive, persistent connections, and session stickiness? I haven't used SSE in that topology before, and am not sure how caching would even be handled for proxies that use URL and HTTP headers as the primary mechanism for cache key identification. |
Beta Was this translation helpful? Give feedback.
Hello,
Thank you for raising a question,
suscriptions are out of scope for zodios, whatever technology behind it (sse, websockets, long pooling, etc)
Indeed, zodios is focused on Rest. And Rest contract is at the center of Zodios design.
So any suscription technology can be added alongside zodios.