News for hackers. Stuff that matters.
Re:How Elixir Helped Us Scale Our Video User Profile Service... by user5994461 on Monday September 05, 2016 @03:19AM (#12428658)
Not a case for Elixir.

Just a standard case for using fast compiled languages (Java/C#/Erlang/Scala...) vs slow interpreted mono-core languages (python/ruby/php...).

Python and Erlang shop here. Last time I was performance testing some python applications.

2-3 ms for decoding the request (gunicorn internals) + 0.5 for flask + 0.3 ms for newrelic + 0.2 ms for sentry + 0.5 ms spent in the application code (a simple return "hello").

That's a total of 2-5 ms of power and time wasted, not running the application code and creating latency for all calls.

Add that the webserver has to fork to X processes to handle requests in parallel because each request is blocking by design (cf. "global interpreter lock" and common webservers internal).

When the ecosystem (webservers/interpreter/languages) is slow & ineffective (i.e. ruby/python/php). So will be all the applications written on it.

It's trivial to double the performance and half the hardware by switching to a better ecosystem.

Re:How Elixir Helped Us Scale Our Video User Profile Service... by emerleite on Monday September 05, 2016 @09:31AM (#12430162)
Hi. For sure It could be done using Java, Go, or another language with a better runtime. The purpose of this article is to encourage Ruby developers to go ahead and try Elixir as an alternative because it's being the cutting edge for this community. So, a short answer could be yes, Go, Java or Elixir whatever, but all software rewrites depend on which team is involved and their expertise, etc.

Cheers,

Emerson