[erlang-questions] [ANN] Cowboy 2.0.0-rc.1

Loïc Hoguin essen@REDACTED
Wed Jul 26 18:25:21 CEST 2017


The Websocket handler takes over the connection process so it'll become 
1 process per connection after the upgrade to Websocket.

On 07/26/2017 06:20 PM, pablo platt wrote:
> Does Cowboy 2.0 use process per Websocket packet?
> Does this means that it's better to stay with Cowboy 1.x for a server 
> that use only Websockets?
> 
> On Tue, Jul 25, 2017 at 7:53 PM, Loïc Hoguin <essen@REDACTED 
> <mailto:essen@REDACTED>> wrote:
> 
>     Hello,
> 
>     Some people already use it in production without problems. Your
>     mileage may vary.
> 
>     The performance/latency should be the same on the stream handler
>     level (low level interface), but by default Cowboy 2.0 creates a new
>     process per request and therefore there will be some performance
>     loss due to the communication between the processes.
> 
>     There is more than one process per connection now because HTTP/2
>     streams (request/response pairs) must execute concurrently. But
>     nothing prevents you from making your own interface that only uses
>     one process per connection, just make sure not to block.
> 
>     Cheers,
> 
> 
>     On 07/25/2017 06:29 PM, Max Lapshin wrote:
> 
>         Hi.
> 
>         Recommended for production?
> 
>         Do you think that we should await any performance/latency
>         changes from cowboy 1 to 2 on 2-4 RPS, about 10 Gbit/s per server?
> 
> 
>         _______________________________________________
>         erlang-questions mailing list
>         erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>         http://erlang.org/mailman/listinfo/erlang-questions
>         <http://erlang.org/mailman/listinfo/erlang-questions>
> 
> 
>     -- 
>     Loïc Hoguin
>     https://ninenines.eu
>     _______________________________________________
>     erlang-questions mailing list
>     erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     http://erlang.org/mailman/listinfo/erlang-questions
>     <http://erlang.org/mailman/listinfo/erlang-questions>
> 
> 

-- 
Loïc Hoguin
https://ninenines.eu



More information about the erlang-questions mailing list