I’m following along the book “Programming Phoenix >= 1.4” and Channels are brought up around page 200.
I’ve already played with LiveView prior to buying this book, and I understood that LiveView sits on top of the Channels concept.
Now that LiveView exists, does it make sens to use a Channel-only solution or are there no practical reasons to do so?
I’m asking since I can gather that Channels were a concept baked into the defaults, and those defaults have switched over to LiveView.
I’m wondering if it’s worth spending time learning Channels, or if I’d better spend my time implementing this portion of the book with straight LiveView (I’m fine doing both)
Channels are perfect if you want to use a javascript front end. They’re also pretty useful for clients that want to use a websocket to subscribe to data in realtime like a mobile app or even other backend services.
Well, I’m not talking about connecting backends per se. When I was looking into it the advice seemed to be “if you can do it without using Erlang distribution, then do so. It will be easier”. By it, I mean connecting X clients to a server, where clients are applications running on PCs on a LAN.