用于实现 REstful API 的最佳轻量级/高性能嵌入式 Web 服务器是什么
用于实现 REstful API 的最佳轻量级/高性能嵌入式 Web 服务器是什么?我需要将它与java代码连接起来。 谁能建议我最好的解决方案?因为我是这个领域的新手
问候,
What is the best Lightweight/high performance embedded web-server for implementing REstful API. I need to interface it with java code.
can anyone suggest me the best solution for it? as I am newbie in this field
Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许 Jetty 就是您正在寻找的,尽管最好也检查一下其他人(例如 Tomcat),看看哪一个最适合您的需求。
Perhaps Jetty is what you're looking for, although it would be a good idea to also check others (like Tomcat, for instance) to see which one's the most suitable for your needs.
我认为找到性能方面“最佳”的 cotnainer 是一项非常艰巨的任务,它基于您的特定用例,也就是说 - 您将如何使用它?由于它是 RESTful API,我想您会对通过一些简单的服务为大量客户提供服务感兴趣。因此,如果我是你,我会寻找对大量请求稳定的服务器。
请查看这篇有趣的文章,为您提供有关性能主题的更多见解。
就我个人而言,我会选择 嵌入式 tomcat< /a> 或 jetty。
I think finding "the best" cotnainer in terms of performance is very hard task and it is based on your particular use case, meaning - how will you use it? Since it's RESTful API, I guess you will be interested in serving large number of clients with some simple services. So if I were you, I would look for server which is stable for huge amount of requests.
Please check out this interesting article to give you more insights on the performance topic.
Personally, I would go with embedded tomcat or jetty.