[erlang-questions] Cowboy (Erlang) VS Haskell (Warp)

Max Lapshin max.lapshin@REDACTED
Tue Jun 25 15:25:16 CEST 2013


You are making wrong tests.

Erlyvideo can stream many gigabits of video via Cowboy server. Is it a
performance? Is it bigger than 100 mbit of text messages?

Problem with high performance is not only in primitive benchmarks. It
is also about smoothness of work. What will happen with your server
sending millions of messages if one gen_server in it will get blocked
for a long disk read? Are you ready for crash due to OOM.

If you want to spend time, than start writing in Erlang, because
Erlang will allow you to write multicore software that can perform
self-monitoring of internal loading via regulating message flows.

It is a very important thing to understand: in Erlang cross-objects
function calls are serialized into messages. Other languages offer you
only direct function call.
And only after you have some load, start measuring and collecting
statistics: what is slow and what is not.



More information about the erlang-questions mailing list