Solving the right problem

Marthin Laubscher marthin@REDACTED
Tue Nov 5 14:59:00 CET 2019

Thank you. Yes, Erlang has brilliant building blocks, as far as I can tell, but that is the problem – it’s only as far as I can tell. I’ve never had a chance to test Erlang’s limits. I cannot expect people who built their business’ core competencies around having learnt about those limits the hard (expensive way) to give that away for free, so I’d be grateful for any pointers and insights I can get to inform my design decisions. 


From: I Gusti Ngurah Oka Prinarjaya <okaprinarjaya@REDACTED>
Date: Tuesday, 5 November, 2019 at 07:00
To: "marthin@REDACTED" <marthin@REDACTED>
Cc: Erlang <erlang-questions@REDACTED>
Subject: Re: Solving the right problem


I recommended you to use Erlang.


Erlang can save you from nowadays complex microservice architecture. If you not use Erlang, it will become so so so fckn complex architecture, too many external tools to wired and manage.

Erlang is all in one toolbox. 

You need Redis? Erlang have ETS and or Mnesia, 

You need Consul (services discovery) in order all of your micro-services able to communicate to each other? Oh come on.. Erlang is distributed by default. you can use rpc:call() or spawn() process in other server, or send message RemoteNodePid ! {Your, Message} 


ALL tools nowadays are mimicking Erlang's features




Pada tanggal Sen, 4 Nov 2019 pukul 19.10 Marthin Laubscher <marthin@REDACTED> menulis:

Hi everyone,


Please pardon my long absences from this awesome (mature) community and my limited knowledge which is likely outdated as well. I’ve known since 1996 when I was first told (in confidence by an Ericsson Radio Systems liaison) about Erlang that it would have to play a role when I eventually get to implementing the system I’ve been working on designing since 1991. That big day is drawing near, so now I’d like to reaffirm my high level understanding of what the language is suited for.


I reckon the problem I’m looking to address is intrinsically concurrent and if I can design the solution just right I just might be able to avoid introducing sequential code and choke points to create an dynamic (learning, responsive to conditions) distributed server capable of using all or most of its resources for any mixture of trivial, simple, complex and massive service requests whether it’s coming from a few clients or billions of them. Essentially as illustrated in the diagram below:



I’d like to ask your advice and check some assumptions if I may impose.

Is my conviction that Erlang (and OTP) is ideally if not best suited to addressing this type of problem objectively justified or likely based on loyalty and familiarity?
Is my aspiration to scale the same code from one server to potentially hundreds of thousands of cores spread across the globe hopelessly romantic or somewhere within the realm of possibility?
Assuming the network remains HTTP/HTTPS based, would Erlang’s inets module allow the code accepting new requests to interact with and control load balancing hardware to ensure each such request is served on the best available server, or will I need custom load balancers of my own for that?
Still assuming HTTP/HTTPS will inets allow me to break up request processing across multiple processes and threads based on incremental scanning of the requests themselves?
Are there lessons from previous (or current) successes and/or failures to achieve similar results to learn from available in the public domain like maybe from ejabberd or Yaws?  (I’m not attempting to reinvent any wheels or address a general purpose need like Yaws et al. Internet and web protocols may be involved but I have a singular focus on delivering user-specific perspectives of a single large dataset to a custom client app.)  

Given my two additional objectives of eventually:-
ending up with a boringly simple system which elegantly encapsulates all these complex requirements, and
open-sourcing the entire system once it’s beyond reach of those with nefarious intentions,
would anybody like to get involved in helping design and implement this project or even take the lead on it?


Thank you in advance for your kind consideration.


Warm regards,


Marthin Laubscher



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 64025 bytes
Desc: not available
URL: <>

More information about the erlang-questions mailing list