benjamin-thomas
Are Phoenix Channels still a thing in 2022?
Hello,
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)
Thanks ![]()
Marked As Solved
benwilson512
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.
Also Liked
christhekeele
They’re the backbone of a lot of the cool things in the ecosystem, including liveview and phx presence—they’re not going anywhere. ![]()
benjamin-thomas
Great, thanks @benwilson512 ![]()
Though a little ensure, I did think about javascript clients, but definitely not about mobile apps and even less other backends.
Good to know ![]()
curioustolearn
Thanks! I hope they remain important, and the creators of Phoenix don’t abandon them. I have just started learning them and plan to use them ![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









