|
|
|
|
|
by Southy
3224 days ago
|
|
100% This. The use cases for OTP are actually quite narrow, despite what Erlang/Elixir evangelists tell you. Discord is a fantastic use for OTP.
Writing a CRUD app with a couple of reactive/interactive pages for comments on videos and few thousand users, OTP is overkill. If you have an app that needs the scale and safety of OTP, then which language you pick makes no difference. Phoenix is a really cool project, written by great developers and the community is probably the nicest and most helpful you will ever meet.
But how many companies/projects need the performance and redundancy of Phoenix/OTP in their web application at the cost of not being able to hire developers? |
|
I just type "mix phoenix.new <project name>" and I have a relatively light starter framework that's ready to go as far as I need to take it.
Rails had the same "ready to go" feel as Phoenix, but I learned from painful personal experience that you hit the scaling wall way too quickly - but with that project I never realized that scaling would ever be a problem. How was I supposed to know which sized framework/language to use from the beginning.
So sure, the use cases where OTP will really shine for you are potentially narrow. But Elixir is actually quite fun to work with even for small projects and it's fantastic knowing that if a project grows unexpectedly, I don't have to scrap it and write it in something else.