Deithrian

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

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 :wink:

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

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.

https://github.com/jfreeze/gce-freebsd

steveoc64

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.

Where Next?

Popular in Discussions Top

WolfDan
After doing a port from a c++ library to my project in phoenix I’ve seen that I need a faster way to run this algorithm and I found this ...
New
owaisqayum
I have a sample string sentence = "Hello, world ... 123 *** ^%&*())^% %%:>" From this string, I want to only keep the integers, ...
New
pillaiindu
I want to convert a Phoenix LiveView CRUD website to a CRUD mobile app. What do you think is the easiest way to do so?
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
eteeselink
Hi all, In the last days, two things happened: A blog post titled “They might never tell you it’s broken” made the rounds. It’s about ...
New
tomekowal
Hey guys! I want to create a toy project that shows a chart of temperature over time and updates every 5 seconds. I feel LiveView is per...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
wmnnd
The Go vs Elixir thread got me thinking: Would it be too hard to implement a simple mechanism for creating Go-style static app binaries f...
New
MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
axelson
Decided against including more info in the title, but the gist is that Plataformatec sponsored projects will continue with the assets bei...
New

Other popular topics Top

jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31307 143
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement