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

cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
New
arpan
Hello everyone :wave: Today I am very excited to announce a project that I have been working on for almost 3 months now. The project is...
New
tmbb
This is a post to discuss the new Phoenix LiveView functionality. From Chris’s talk, it appears that they generate all HTML on the serve...
342 18243 126
New
ejpcmac
I have discovered Nix last month and I am currently on my way to migrating to it—both on macOS at home and the full NixOS distrubution at...
New
restack_oslo
Hello, Please pardon me for any faux paux. I am 46 and this is my first time on a forum of any kind. I wanted to to get answers from tho...
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
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
jesse
Hi everyone, I hesitated to post this here because I don’t want you to think I’m spamming, but I’ve been working on a Platform-as-a-Serv...
New
sashaafm
Piggy backing a bit on @dvcrn topic BEAM optimization for functions with static return type?, I’ve been trying to understand in a deeper ...
New

Other popular topics Top

AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
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
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement