Closed thelinuxlich closed 2 years ago
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.
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?