kofno

kofno

Channels in Phoenix

Do you find that you use channels a lot in Phoenix?

First 7 of 7 Posts Switch mode

Mandemus

Mandemus

I’m new to Phoenix but It is certainly the killer feature to me.

I’m pretty sure most people are interested in Phoenix for it’s real-time possibilities and not merely as a REST framework. The effort they are putting into channel presence features is good evidence of that.

kofno

kofno OP

Channels is why I’m considering Phoenix. But I’m just not sure I want to rely on that connection for sustaining a session. I still need a token, whether it’s JWT or just a user id in a secure cookie.

ckhrysze

ckhrysze

Even without channels, I’d be interested in Phoenix for the performance over Rails. With channels, it seems likely there is little I’d want to do with a webapp that it can’t do, and do well. Regarding auth, even will channels, I’m seeing a lot of mobile app based tooling that prefers JWT anyway, so I don’t think that and channels are mutually exclusive.

AstonJ

AstonJ

I think many people feel this way :slight_smile:

There were some recent criticisms that Elixir (and Phoenix) were not different enough - but I think the critics failed to appreciate the draw of familiarity. If people wanted something radically different to Rails then they have plenty of Ruby options (Lotus, Volt, Trailblazer etc). But that’s not what most Rails devs want - they want top of the class performance.. and Phoenix gives that - while at the same time - moving towards better paradigms, practises etc.

At least that’s how I see it :lol:

ckhrysze

ckhrysze

Its hard for me to believe people think Elixir isn’t different enough to matter, I think all of 2 days with it convinced me I needed to unlearn several things, and once I did, that it was a new, wonderful and different language.

I can see that argument applied to phoenix, but I also think its a good thing. The surface similarities run a bit deeper, though I think just because its also basically following the MVC pattern. But as Chris McCord has said, you don’t end up with a phoenix app, you end up with an app that happens to use phoenix, and I believe that matters.

kofno

kofno OP

A strong appeal of Phoenix for me is the familiarity. There are enough Rails touch points that I don’t feel overwhelmed. It also helps that many of the differences in Phoenix address areas of Rails that I perceived as weaknesses.

NobbZ

NobbZ

Currently I don’t use channels in my small personal and still private project, but as soon as the back-end is ready, there is planned to use heavy channelsthrough front-end

— All posts loaded —

Where Next?

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 91561 914
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement