by mehphp · 5y ago · 0 comments
I also use Phoenix for my SaaS project (took me 5 years to hit $2.5k/mo so congrats!) but I went all-in on liveview. It's some solid tech and I'm pretty happy with it but I'm wondering what the limits are when there is a lot of interactivity which seems to be the case with your app.
Generally, when I create an app I use the typical route of react front-end and the backend is the API. To me, this almost feels like writing/maintaining the app twice especially on solo projects.
With liveview this isn't the case at all. You still have your separations of concerns but you get the server-side rendering workflow with all the benefits of a highly interactive front-end.
I want to emphasize though that I've been using liveview for less than a year on a relatively small app so I am by no means an expert. I'm certainly not suggesting that everyone drop javascript-heavy workflows and switch to phoenix/liveview but I do feel comfortable enough suggesting that it is a serious candidate to be considered.
Every time I think "this is going to be tricky".. nope. Ecto seems to have thought of that.
Regarding OTP I'm still learning, but I am utilizing GenServers and of course passing messages between processes via the actor model which has been very useful.
Once you realize that everything is a process and those processes can pass messages (including to one's self) it allows for some pretty interesting stuff.