Pheonix with NodeJS

66 views
Skip to first unread message

Steven Livingstone-Perez

unread,
Nov 24, 2015, 7:28:26 AM11/24/15
to phoenix-talk
Hello all. I am just starting with Phoenix and my initial interest is in the real time aspects for a web application I am writing.

I am interested in whether anyone has resources/thoughts/examples that show how to use the scale of Phoenix to provide real time capabilities via web sockets but using NodeJS for other parts of the application - registration, managing profiles and so on. The main reason is that I can pull together a Node app relatively quickly and have people skilled in that area that would take time to move it all to Phoenix.

Many thanks - the framework looks great :-)

regards,
steven  

pratik khadloya

unread,
Nov 24, 2015, 12:55:04 PM11/24/15
to phoenix-talk

--
You received this message because you are subscribed to the Google Groups "phoenix-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenix-talk...@googlegroups.com.
To post to this group, send email to phoeni...@googlegroups.com.
Visit this group at http://groups.google.com/group/phoenix-talk.
To view this discussion on the web visit https://groups.google.com/d/msgid/phoenix-talk/b01c9bee-2c9c-4964-959b-84a20c93b82c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jerel Unruh

unread,
Nov 24, 2015, 1:07:50 PM11/24/15
to phoeni...@googlegroups.com
Hey Steven, one of the exciting things about Phoenix to me is that you can have your websockets and API/HTML code in the same codebase. I've (previously) went the route of separate realtime and API apps and it got unwieldy. Soon you want to access the same database from both apps, you have models (and migrations) duplicated between the two apps, etc. Or you end up using something like redis to pass messages between apps every time you need something.

You might find that switching your team to Phoenix is faster than the time you spend on architecture to make the two apps work well together.

benwil...@gmail.com

unread,
Nov 24, 2015, 1:11:14 PM11/24/15
to phoenix-talk
If you're set on doing both then your best option is to go the micro service route and just have two apps that handle separate parts of your domain.

Steven Livingstone-Perez

unread,
Nov 24, 2015, 1:23:02 PM11/24/15
to phoenix-talk
Hi - thanks everyone, Ben, Jerel & Pratik for responding!

I have actually been firing through the Phoenix docs today and into this evening and it is coming together quite faster in my head than i thought it would. I may stick with one codebase - at the API level anyway.

One thought i had was the huge number of packages i get via npm which is why node is great ... however, there *is* such a randomness in quality and complexity, as well as established patterns in scaling all the different pieces which is where my doubts had set in and I came back to see how Elixir was doing (i learned a bit of Erlang a couple of years ago).

So, although I am yet to see how easy and how many Plugs there are, the overall architecture of this and related projects feels very clean and, dare i say it, enjoyable :-)

Back to the docs!

regards,
steven
Reply all
Reply to author
Forward
0 new messages