Deithrian

Deithrian

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?

Showing Posts 73 to 64

drobban

drobban

Thank you for the tip, will take a look.

jc00ke

jc00ke

Since it’s written in go I bet you could get it to compile pretty easily. @patmaddox had luck adding Tailscale ssh for FreeBSD and maybe that PR could be inspiration for changes to flyctl.

drobban

drobban

I have since a month or so made the switch to FreeBSD.
Both on the laptop and the stationary computer. It all works just super!

For most parts where I used docker I now instead use jails - That and with a tool called jailer everything works super duper..

The only thing that enoys me a bit in my daily workflow, is that I dont have native compat with fly.io’s tool flyctl. That bothers much and I cant understand why it doesnt work - they have compat for os x and windows, so it should work as is with freebsd as well.

drobban

drobban

Possibly the best answer in the thread I have read so far :rofl:

But I’m actually looking at changing my desktop env back to BSD. Used FreeBSD back in 2004/2005 and I suspect that not much has changed since then and that is a big bonus. Perhaps maybe you dont need to compile a new version of the kernel to make the soundcard work? :smiley:

Docker is great, but for what I’m doing locally, jails would work just as fine.
ZFS - used it with FreeNAS and holy smokes, just waited for the right moment to switch to something like GhostBSD and have that power on the desktop as well.

So thanks to you all that shared your experience about the topic.

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.

Exadra37

Exadra37

Yes, for the majority of the web apps out there it would be an hyperoptimization, but for any server that expects very high loads it sound like a must to have optimization, and each time i read articles like this one I get even more convinced:

https://juejin.cn/post/6844903735517249544

ityonemo

ityonemo

Most erlang devs I’ve met have claimed that freebsd is better for erlang than elixir. Even though freebsd is near to my heart (I used it exclusively in grad school, even rebuilt ports from scratch the day before my thesis defense), I would currently consider it a hyperoptimization since it cross-compilation an figuring out CI is likely to be tricky.

Exadra37

Exadra37

After watching this video from a network engineer at WhatsApp saying how FreeBDS is far superior for networking and sockets usage I am really considering in using FreeBSD for production.

About FreeBSD vs Linux you have this article:

What isn’t this?

This is not:

  • A list of command correspondances; “‘netstat -rnfinet’ on BSD = ‘netstat -rnAinet’ on Linux” and such things.
  • How to do all the things involved in adminning and running a BSD box.
  • Why you should use BSD instead of Linux.
  • Why you should use Linux instead of BSD.
  • Why you should use this BSD instead of that BSD.
  • Why you should use this Linux instead of that Linux.
  • Why BSD is Right and Linux is Wrong.
  • Why Linux is Right and BSD is Wrong.
  • Why I am a god and you should worship me.

I, personally, for me, believe (obviously) that my OS choice is right. That’s me. I’m not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That’s why you have one.

Anyone here still using FreeBSD with Elixir and Phoenix?

Any experiences they want to share, good ones and bad ones?

Eiji

Eiji

@NobbZ: In Funtoo (custom kernel setup and compile) I was only need to add modules to autoload and. They are already lots of drivers. I had lots of distributions that works out-of-box and lots that not.

NobbZ

NobbZ

WiFi is a hazzle on nearly every distribution that is not consumer oriented. Also those “workarounds” aren’t any. That’s just how WiFi seems to work :frowning: Even on windows those firmware files are necessary.

The Windows and the more consumer centric linux distributions have mechanisms that allow easier installation of the necessary kernel modules and firmware files. And in case of windows they are also often supported natively by the manufacturers and proper drivers are supplied.

Especially for Broadcom though, licensing is a major problem. My laptop does have one, and they do permit distribution of the firmware files. Therefore in the linux communities there have tools evolved which extract the firmware files from a windows version of the driver, which again has to be downloaded from BroadComs websites due to licensing restrictions.

As far as I can remember, I had to do the same dance for Funtoo, Ubuntu and Fedora on this laptop when I installed the WiFi on them. Only thing I had to do more with Funtoo was to activate 2 or three kernel modules and recompile. But recompiling Kernel is daily business when you start from a minimal kernel as I did.

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
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
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
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews