Deithrian
Linux vs FreeBSD for Phoenix?
I saw that there’s a port for Elixir and Phoenix on FreeBSD.
Why would you want to run a Phoenix project on FreeBSD vs Linux?
Can you share your opinion please?
I’m trying to pick a deployment target and start learning about it.
Since Linux seems to be the default choice for servers, are there any reasons for choosing FreeBSD instead?
Most Liked
martijn
The good thing about FreeBSD it comes with an Elixir package, whereas Elixir is not available at all for my Linux distribution of choice, CentOS. Also WhatsApp runs Erlang on FreeBSD so I guess there’s an obvious connection there ![]()
Still, we’ve moved pretty much everything from FreeBSD to CentOS due to better support from (virtual) hardware vendors and some bad experiences running routine upgrades on FreeBSD. It’s a great OS though without the massive fragmentation that Linux has.
drfreeze
Here is a link to deploying Phoenix on FreeBSD 11-0-RELEASE on Google’s Compute Engine. The setup uses nginx, Letsencrypt, Distillery and eDeliver.
steveoc64
Reasons to host a production Phoenix project on FreeBSD instead of Linux
YMMV of course
-
Stability, stability, stability.
-
Updating your FreeBSD base system to new releases in future follows a reliable and predictable path, that you can plan for and trust, years in advance.
-
Mail server out of the box. Nothing to configure, and Bamboo hooks straight into it without fuss.
-
No systemd - you know that your system setup written in 2021 will still boot in 2051 without modifications, and will behave the same then as now.
-
Jails
-
Extreme low memory footprint, extreme low disk usage
-
ZFS out of the box
-
DTrace
-
Networking stack is possibly better (was true in the past, probably not so much with each passing year)
-
Amazon / Microsoft / IBM / Facebook / Apple / Google / NSA / CIA / FSB / MI6 / … are not in a position to hijack the BSDs at a whim. BSDs come with a free tin foil hat, protecting you from bad guys and 5G remote control.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









