4 ms·
There’s no Netty type thing for Erlang? Netty is so nice to have on the JVM, I don’t know much about TCP and it lets me be dangerous, asynchronously.
by linkmotif 8y ago
There’s no Netty type thing for Erlang? Netty is so nice to have on the JVM, I don’t know much about TCP and it lets me be dangerous, asynchronously.
- e_proxus 8y agoThe Erlang VM (BEAM) is non-blocking by design, you don't need anything like Netty on BEAM.
- linkmotif 8y agoThere's a standard, built-in way to handle events on a TCP socket? Like Netty or Node's `net` package.
- e_proxus 8y agoI'm not familiar with Netty, but in Erlang you set `active` mode which means Erlang will send your process messages for all incoming events for a socket: http://erlang.org/doc/man/inet.html#setopts-2 http://erlang.org/doc/man/inet.html#setopts-2 You can further use `{active, N}` to limit the "events" to a certain number as to apply back pressure to the OS socket level and beyond.