[erlang-questions] Regarding Erlang gen_server's ability to handle requests concurrently

Ehsan Mohammadi <>
Sat Aug 27 20:12:37 CEST 2016


i`m new to erlang but as far as i know you can`t share a socket in multiple
process or threads
so you can accept and get raw data in single server and do processing in a
server pool or something like that

On Sat, Aug 27, 2016 at 8:35 PM Arshad Ansari <>
wrote:

> Hello there,
>
> This is a generic question that I have regarding the ability of gen_server
> to handle requests concurrently. Does gen_server create a separate process
> per request (even when for each request coming from same socket connection)
> or does it create separate process per socket connection? If it is latter
> then there will be a single process responsible for handling large number
> of messaging coming from single socket. In that case, how to make sure that
> that single process can handle a very high load coming from a single
> connection?
>
> I hope my question is clear!
>
> Regards,
> Arshad
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160827/9b6a98a4/attachment.html>


More information about the erlang-questions mailing list