<div dir="ltr"><div>I just released barrel a simple TCP Acceptor pool,</div><div><br></div><div><a href="https://github.com/benoitc/barrel/tree/master/src">https://github.com/benoitc/barrel/tree/master/src</a></div><div><br>
</div><div>The design of barrel differs from ranch] [1] ). Instead of spawning w new process once a connectino and passing the control of the socket to it which can be slow, Barrel ois only spawning a new acceptors. The accepted socket will continue to be used in the same process that accepted it before. It can be used in the case you don't need a strong supervision (though acceptors are still supervised).</div>
<div><br></div><div>A simple example of its usage can be found here:</div><div><br></div><div><a href="https://github.com/benoitc/barrel/tree/master/example/echo">https://github.com/benoitc/barrel/tree/master/example/echo</a></div>
<div><br></div><div>Also sieve that I just released is using it:</div><div><br></div><div><a href="https://github.com/benoitc/sieve">https://github.com/benoitc/sieve</a></div><div><br></div><div>Enjoy!</div><div><br></div>
<div>[1] <a href="http://github.com/extend/ranch">http://github.com/extend/ranch</a></div></div>