为什么Apache Solr选择Jetty作为Servlet容器 [英] Why have Apache Solr chosen Jetty as a Servlet container
问题描述
我很想将Apache Solr
部署到Jetty
或Apache Tomcat
.我知道Jetty比Tomcat轻巧,并且在有很多查询时Tomcat更加健壮.
I'm hesitating to deploy Apache Solr
to Jetty
or Apache Tomcat
. I know that Jetty is lignter than Tomcat and that Tomcat is more robust when there is a lot of queries coming.
所以我想知道为什么Solr选择Jetty作为其默认Servlet容器?也许那可以帮助我在两者之间进行选择.
So I need to know why Solr have chosen Jetty as its default Servlet container? maybe that can help me to choose between the two of them.
推荐答案
可能是因为它是轻量级的"并且可以轻松地嵌入到Solr发行版中...因此您可以立即拥有一个正在运行的Solr服务器,而无需任何操作其他Servlet容器(例如Tomcat等).在性能方面,不确定会有如此大的差异.可能这取决于您自己的设置,例如在开发"中我使用Jetty,在生产中我使用Tomcat,因为我已经将它用于其他应用程序了...
Probably it is because it is "light" and can be easily embedded on the Solr distribution... so you can immediately have a running Solr server without requiring any other Servlet container (such as Tomcat, etc.). In terms of performance, not sure there will be such a big difference. Probably this depends on your own setup, for example in "development" I use Jetty, in production I use Tomcat, since I already am using it for other applications...
这篇关于为什么Apache Solr选择Jetty作为Servlet容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!