wu1786

wu1786

Elixir distributed programming - measuring scalability

Hi guys.

I want to test scalability of Elixir. I have 2-3 computers in one network and I want to run same program in these computers and measure scalability. (I also need some load balancer right ?)

e.g.:
One computer make “test” in 60 seconds, but if I add another pc, it will take only 35sec, with 3 computers it will take only 25sec)
or
One computer can “make” 1000 calculation in one minute. Two computer can make 1800 calculation in one minute.

Can somebody write some readme me to this ? Or, is something on web ?

thanks

Most Liked

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

If your goal is to show that Elixir is an excellent language for writing distributed mathematical calculations, you’re going to fail at that goal. It is not. This isn’t because it’s bad at being distributed, but because it’s bad at doing high performance numerical calculations.

It can be GREAT at coordinating high performance numerical calculations, and the work and data necessary to make that happen. So for example at Cargosense we run a lot of machine learning stuff in which all the heavy lifting is done in C libraries wrapped by Python. But we use Elixir to coordinate those jobs, get the jobs their data, and manage their lifecycle.

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Do keep in mind the things that Elixir is good at. If you’re trying to predict the weather, there are languages that will get you the most out of your CPU power better. If you’re trying to do something IO heavy, Elixir can be a good choice.

What kind of work are you trying to have distributed?

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Tools are built for purposes. What purpose are you trying to use Elixir? It matters.

Where Next?

Popular in Questions Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
chokchit
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
nobody
Hi! In PHP: $SERVER['SERVERADDR'] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
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 record...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
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
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
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
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
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
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New

We're in Beta

About us Mission Statement