Chapter 6Going Live with Subscriptions
In REST-oriented web frameworks, the need to have near real-time, live data streams still feels like a strange new world. It isnât necessarily that setting up a WebSocket connection is hard (particularly if youâre using Phoenix), but rather that such connections donât fit into the REST API paradigm very easily. Setting up connections for specific data feeds and managing the communication across them is, to say the least, awkward in a world of âresourcesâ tightly coupled to HTTP verbs. Consequently, even in frameworks that have fantastic near real-time support, whatever approach thatâs available doesnât feel like a first-class part of the API. When your API is built solidly around the semantics ...
Get Craft GraphQL APIs in Elixir with Absinthe now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.