Hacker News new | ask | show | jobs
by mandragon 2027 days ago
Phoenix does offer a pleasant, streamlined full stack experience, and it does seem kludgey to bake together PHP and Phoenix without good reason.

If I didn't have a team to deal with a large Elixir codebase (a common issue), I'd glue PHP and BEAM together anyway, even going as far as to pass along the "meat and potatoes" backend work to PHP even for socket interactions (or in some asynchronous way, as needed). In that scenario, the Elixir sockets frontend could be fairly minimal, both in terms of codebase and DB interactions, and would possibly not need a lot of code changes over time.

1 comments

That's probably where we're heading: the existing PHP code will still control state for the app and push events/messages to a relay app managing websocket connections with the front end (probably written in Elixir, or possibly a websockets-as-a-service offering initially).