Choosing between an embedded or remote Solr instance

While using SolrJ, we can basically use the same API over an embedded or remote instance. The choice mainly depends on our needs, usage, and of course the environment and runtime we have. We should consider the following:

  • EmbeddedSolrServer: This denotes in-process access to Solr or to a similar JVM as Solr. This approach may provide performance improvement in a few scenarios (http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer).
  • CommonsHttpSolrServer: This can be used to access a remote Solr server. In this case, an important factor we also need to consider is the latency between the client and the remote instance, which usually occurs with HTTP.
  • StreamingHttpSolrServer: This may provide some improvement in the performance factor.

Let's see another example to clarify this, while also looking at an HTTPSolrServer instance.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.181.47