ersaurav

ersaurav

Hi everyone,

I’m working with a Laravel-based eCommerce application and evaluating whether Elixir/Phoenix would make sense as a separate service for some workloads rather than trying to move the entire application to Elixir.

The idea would be to keep the main eCommerce application in Laravel/PHP while using Phoenix/Elixir for workloads that benefit from concurrency and long-running processes.

Some possible use cases I’m considering are:

  • Real-time notifications

  • Background processing and job orchestration

  • High-volume API requests

  • WebSocket-based functionality

  • Processing events from the eCommerce application

The Laravel application would communicate with the Phoenix service through HTTP APIs or events.

For those who have used Elixir alongside another backend stack:

  1. Would you keep Phoenix as a completely independent service?

  2. Would you use a message broker/event bus instead of synchronous HTTP wherever possible?

  3. How do you handle authentication between the Laravel and Phoenix applications?

  4. What types of workloads have you found are actually worth moving to Elixir?

  5. Are there any architectural pitfalls when introducing Phoenix alongside an existing Laravel monolith?

I’m particularly interested in experiences from teams that have successfully introduced Elixir incrementally rather than rewriting an existing application.

Showing Posts 1 to 1

bottlenecked

bottlenecked

Hi there

does this mean the decision to move (at least parts of the app) to Elixir has already been made?
Because, don’t get me wrong, I love Elixir and would love for people to adopt it more and more, and it does perform marvelously under load, but maintaining two (or more) services across different languages sounds like a hefty price to pay.

If the current service is struggling under load (I don’t know for sure, just assuming the reason for considering Elixir might be performance related), would it make sense to try and optimize the current Laravel service instead? Or use better hardware to host it? On the other hand, if you only anticipate larger traffic volume (but not there yet), I’d probably advise to wait and see how the current app actually performs under load before proceeding to a partial or full rewrite to another language.

At my current workplace we still have Ruby/Rails services working alongside Elixir ones, and migrating as many as we can into Elixir and consolidating lots of micro-frontend like services under fewer larger ones has been a blessing, especially given our smaller team size.

— All posts loaded —

Where Next? Top

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 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
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
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
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
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews