Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您可以尝试使用 Jetty 的一些片段,如本电子邮件中的建议。< /a> 我真的很喜欢 Jetty,因为它很小、独立,而且你可以灵活地使用它的部分或全部。
You might try using some pieces from Jetty as suggested in this email. I really like Jetty because it's small, self contained, and you can use some or all of it flexibly.
由于这似乎一到就死了,我会回答说我的自定义 IO 库将是最好的。
Since this seems to be dead on arrival, I'll answer it by saying my custom IO library will be the best.
为了回答你的问题,没有一种方法适合所有的异步库。 Netty 和 Mina 可能是最接近这样的东西,但大多数项目可能仍然必须包含一些纯粹的 NIO/ASYNCIO 定制解决方案。
我坚持认为你走在正确的轨道上。您对低级 NIO/ASYNCIO 的体验越多,您就会越欣赏并能够充分利用低级 Netty。
To answer your question, there is no one size fits all async library. Netty and Mina might be the closest to such a thing, but most projects may still have to contain some pure NIO/ASYNCIO customized solutions.
I maintain you are on the right track. The more experience you have with low-level NIO/ASYNCIO the more you will appreciate and be able to get the most out of the somewhat-less-low-level Netty.