At that rate, you are limited by context changes from userland to the OS. So you must use an event driven approach like nginx or node.js. In contrast to the Apache way of opening a thread per connection.<p>Also, make use of netmap: <a href="http:&#x2F;&#x2F;info.iet.unipi.it&#x2F;~luigi&#x2F;netmap&#x2F;" rel="nofollow">http:&#x2F;&#x2F;info.iet.unipi.it&#x2F;~luigi&#x2F;netmap&#x2F;</a>
That is available for FreeBSD and Linux.<p>10k messages per sec is doable. But probably not off the shelf.