Live data from Hacker News

Adding Elixir to our Nextjs app (2022)

linen.dev

1–10 of 31 posts

Re: Adding Elixir to our Nextjs app (2022)

#3
post #2

Why not use Go? They have one of the best networking stacks among language standard libraries, excellent support for low latency soft real-time concurrent operations, and single binary deployment is trivial.

We were more familiar with Elixir since our last product was another real-time chat app built in Elixir/Phoenix.

Re: Adding Elixir to our Nextjs app (2022)

#4
post #2

Why not use Go? They have one of the best networking stacks among language standard libraries, excellent support for low latency soft real-time concurrent operations, and single binary deployment is trivial.

IMHO, Elixir has much more powerful networking capabilities than Go. And as for deployment, https://hexdocs.pm/mix/1.12/Mix.Tasks.Release.html

Not to mention how good Phoenix and Ecto are. I would never think about using Go if Elixir is a suitable option.

Re: Adding Elixir to our Nextjs app (2022)

#5
post #2

Why not use Go? They have one of the best networking stacks among language standard libraries, excellent support for low latency soft real-time concurrent operations, and single binary deployment is trivial.

Elixir has releases, so deployment is not really that hard whether or not you use containers.

And the beam networking stack is quite good, which is unsurprising given it's been in slowly evolving use for 30 years now.

In go you just don't get stuff like "trivially cleaning up associated resources with zero lines of code when your socket gets early terminated by the client or a backhoe cuts the network in to the data center"

Re: Adding Elixir to our Nextjs app (2022)

#6
post #2

Why not use Go? They have one of the best networking stacks among language standard libraries, excellent support for low latency soft real-time concurrent operations, and single binary deployment is trivial.

For me personally (not OP): I find Elixir more ergonomic, the networking stuff is very solid, soft realtime is the whole reason it exists, and I don't need single binary deployment because everything is going to be running in a container in AWS anyway. Elixir also has Releases, which let you deploy a self-contained application more easily. But I think Go might let you cross-compile out of the box, which you can't do with Releases out of the box as far as I know.

Re: Adding Elixir to our Nextjs app (2022)

#8
post #6
post #2

Why not use Go? They have one of the best networking stacks among language standard libraries, excellent support for low latency soft real-time concurrent operations, and single binary deployment is trivial.

For me personally (not OP): I find Elixir more ergonomic, the networking stuff is very solid, soft realtime is the whole reason it exists, and I don't need single binary deployment because everything is going to be running in a container in AWS anyway. Elixir also has Releases, which let you deploy a self-contained application more easily. But I think Go might let you cross-compile out of the box, which you can't do…

Cross compilation is possible in elixir with burrito.

Re: Adding Elixir to our Nextjs app (2022)

#9
post #6

Earlier quoted context omitted.

For me personally (not OP): I find Elixir more ergonomic, the networking stuff is very solid, soft realtime is the whole reason it exists, and I don't need single binary deployment because everything is going to be running in a container in AWS anyway. Elixir also has Releases, which let you deploy a self-contained application more easily. But I think Go might let you cross-compile out of the box, which you can't do…

Cross compilation is possible in elixir with burrito.

I've never tried it but I think I've heard of it. Regardless, it's a third-party tool, so not at the same level of support as Go.

Re: Adding Elixir to our Nextjs app (2022)

#10
post #9

Earlier quoted context omitted.

Cross compilation is possible in elixir with burrito.

I've never tried it but I think I've heard of it. Regardless, it's a third-party tool, so not at the same level of support as Go.

Technically ecto, phoenix, plug, cowboy/bandit and Jason are third party tools too.
Post reply on HN