[erlang-questions] Why not standard OTP behavior

linbo liao <>
Wed Apr 29 13:38:12 CEST 2015


Hi All,

When go through some open source code, I find sometimes processes are not
standard OTP behavior like gen_server, gen_fsm, gen_event, but designed by
internal OTP API.

For example, ranch_conns_sup
<https://github.com/ninenines/ranch/blob/master/src/ranch_conns_sup.erl>
from ranch, riak_core_vnode_proxy
<https://github.com/basho/riak_core/blob/develop/src/riak_core_vnode_proxy.erl>
from riak_core.

May anyone help to point the reason, why they don't use OTP behavior but
build by internal API, any drawback for OTP behavior in a certain situation?

Thanks,
Linbo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150429/6e3a9d4b/attachment.html>


More information about the erlang-questions mailing list