alphanumeric

alphanumeric

Is Elixir able to power a social network messaging system with the same user volume as FB, Telegram or Whatsapp?

Showing Posts 1 to 10

John-Goff

John-Goff

Well considering WhatsApp is written in erlang it would certainly be doable in elixir as well, elixir and Erlang have nearly identical characteristics being based on the same VM.

dimitarvp

dimitarvp

Elixir is amazing but Telegram has like 30 million people in it now and since Elixir isn’t exactly performance-oriented I am not sure it can handle the load without spinning a lot more servers which might not be economically viable.

At this scale you definitely should reach to something like Kafka + Rust.

alphanumeric

alphanumeric OP

Are you sure Elixir can perform equally to Erlang in those use cases? I am tempted to go with Erlang to be safe, but wanted to get a more definitive answer before deciding not to use Elixir.

davearonson

davearonson

Throw enough hardware at it, and sure, no problem. You might need to pull some fancy tricks to be able to take advantage of that hardware efficiently, but that sort of thing is actually one of the things that Elixir is good at, leveraging Erlang’s distributed processing, supervision trees for reliability, and so on. It might need more hardware than something programmed in raw Assembly, but probably quite a lot less than something stood up in, say, Rails.

alphanumeric

alphanumeric OP

Is Elixir or Erlang a better choice to run in this use case and why??

John-Goff

John-Goff

It is possible to write bad elixir, just as it is possible to write bad Erlang. But all the tools that Erlang gives you are also available in elixir, so you can definitely use elixir to write anything you could write in erlang.

alphanumeric

alphanumeric OP

Is there ANYTHING that would prevent Elixir from performing (this use case) as well as Erlang?

dorgan

dorgan

They both compile to BEAM bytecode, and Elixir essentially evaluates to the same Erlang code, so no.

You mention Telegram, Whatsapp or FB as example of scale. Discord is using Elixir and it’s massive.

10
Post #8
dimitarvp

dimitarvp

No, not really. They compile to a very similar (or exactly the same) internal bytecode. Erlang IMO has no innate advantage here. That’s the whole point of the BEAM bytecode :slight_smile: if your compiler is good (and Elixir’s is) then you can have an identically performing code no matter the source language.

John-Goff

John-Goff

I might even be so bold to say that if you’re building a commercial product on the BEAM you should probably pick elixir by default. Before any erlangers get mad at me let me defend myself. The reason is that it’s easy to use Erlang (or any other BEAM language) library from Elixir, but it’s harder or impossible to use a lot of very good libraries like Phoenix and ecto from Erlang due to elixir’s macro system. If you’re building something open source it might make sense to pick Erlang by default to attract the widest audience (see telemetry as an example). This is the elixir forum so I am of course biased, take this with a grain of salt.

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 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
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
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
durvia
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes. We’re a small ...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews