Hakim
Hakim

Reputation: 3437

Why have Apache Solr chosen Jetty as a Servlet container

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.

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.

Upvotes: 2

Views: 4266

Answers (3)

Tomislav Muic
Tomislav Muic

Reputation: 543

Jetty is often used as a default stand-alone servlet container in various project because it is light and easy to use.

You can see the list of projects using Jetty by default here: http://www.eclipse.org/jetty/powered/

Upvotes: 1

Hakim
Hakim

Reputation: 3437

I understand from this thread that it's adviced to use Jetty cause it's the one shipped with Solr, and the one they have tested against: What are some Servlet Container pros and cons for a Solr installation?.

Upvotes: 0

emgsilva
emgsilva

Reputation: 3065

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...

Upvotes: 2

Related Questions