alphanumeric
Is Elixir able to power a social network messaging system with the same user volume as FB, Telegram or Whatsapp?
Trending in Discussions
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...
New
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
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
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
Hello,
I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
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
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
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
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
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
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
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
Is Elixir or Erlang a better choice to run in this use case and why??
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
Is there ANYTHING that would prevent Elixir from performing (this use case) as well as Erlang?
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.
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
if your compiler is good (and Elixir’s is) then you can have an identically performing code no matter the source language.
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.