hariroshan

hariroshan

Can we create a system design guide similar to System Design Primer?

I recently came across the github repo System Design Primer and it is has good guides and instructions to scale servers. Can we create a guide similar to it using Elixir/Erlang style of scaling servers?
I can’t seem to find good guides for beginners to think using the Elixir/Erlang Style of build Highly Scaleable Systems.
@josevalim

Most Liked

derek-zhou

derek-zhou

It is the last thing a beginner need. Build a system first, any system. Facebook started out with a bunch of lame ass PHP files. Maybe you don’t need to scale. Maybe you can rewrite the bottleneck as you found them. Thinking beyond 10X of your current peak is counter-productive.

hariroshan

hariroshan

Hi @derek-zhou, I think you’ve misunderstood the reason for making such guides. I’m not the one who’s facing the problem and asking help here. It is meant to serve as a pathway for all the Elixir / Erlang users in the future who need help scaling systems. As the Elixir / Erlang way is different from the traditional stateless system.
Anyway, I’m planning on building one myself and organise the knowledge I have into a repo. Since the only way to get answers in the internet is to post wrong answers only. :smile:

Hello, @Exadra37, Thanks for the reply. I have read the book as well. One of the things that is bug me is that when we connect Elixir/Erlang nodes, It forms a fully connected mesh. As you add more and more nodes to the network, the overall system performs degrades because the nodes needs to communicate a lot. This is the problem that a lot of talks in the conferences address. I want to organise such knowledge in clear manner for the community.

hariroshan

hariroshan

What I argued against is only premature optimization

Understandable.

Also scaling is a problem that has to take the current scale into account. Scaling from one node to 10 and scaling from 100 nodes to 1000 is very different. So I doubt the usefulness of a universal guideline

The guide is suppose to start from a single node server and move to greater scale as the application scales stating the pros and cons of each approach.
For example, do you know how elixir handled 2M concurrent connections? I believe there were system configurations made to support such high number of connections. Similarly, The Whatsapp engineer who gave a talk on how his team was able to handle the same number of connections in a server, he said that he had to patch FreeBSD os to achieve such high number of connections. But we don’t know what they did to achieve it. That’s why I wanted to organise such knowledge. It may not be a universal guide. But it is better than nothing.
If you have experienced any scaling issues or know how to scale without any downtime, feel free to contribute. :smile:

Last Post!

soyjeansoy

soyjeansoy

Even if its not heavily optimized, it would be a blessing to have such guide(s) that shows how to achieve higher connections just by small tweaks and/or picking low hanging fruit(s). Small wins they’d say but still a win to me nonetheless.

Where Next?

Popular in Discussions Top

Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19740 150
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
Rustixir
Hi everyone, im working on find best language/framework/system for high concurrency, high performance and stable performance after wor...
New
AstonJ
Can you believe the first professionally published Elixir book was published just 8 years ago? Since then I think we’ve seen more books f...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
arcanemachine
https://nitter.net/josevalim/status/1744395345872683471 https://twitter.com/josevalim/status/1744395345872683471
New
shishini
I think this twitter post and youtube video didn’t get as much attention as I hoped I am still new to Elixir, so can’t really judge ...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? 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 records...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

We're in Beta

About us Mission Statement