Elasticsearch's entry is easy to learn.
Thanks to the rich native restful APIs, the ability to create indexes, upload data, and search can be used in a very short period of time. The official website also has many language's client API and the ES cluster interaction, has the rich plug-in such as Head,marvel and so on.
If you use ES as an open source project to do SaaS (software as a service), such as search services, is it possible to directly use its native API?
Jest is a Java Rest client that supports SSL, proxy, and so on, while the native transport client is a TCP connection, the user authentication authorization is to be implemented by itself, and the encapsulation interface controls the user's operation.
I found a part of the answer from Jest's documentation:
ElasticSearch does not has a Java rest client. It has only native client comes built in. That's the gap. You can add the security layer to the HTTP but native API. That's why none of the SAAS offerings can be used with native API. --Searchly
Native APIs do not have any security layer, and it is simpler to add a layer of security authentication to HTTP.
The comparison between the jest client and the native Client is also:
So if you had several ES clusters running different versions, then using the native (or transport) client would be a probl EM, and you'll need to go HTTP (and Jest is the main option I think). If versioning is a issue, the native client would be your best option as it's cluster aware (thus knows how to route Your queries and does not need another hop), and also moves some computation away from your ES cluster (like merging Searc H results that'll be do locally instead of on the data node). --Rotem Hermon
If the ES cluster version is different, it will be better to use the HTTP client. If the version is not an issue, the native Client is the best choice. Because it is culster-aware and can share some of the calculations from the ES cluster, such as merge search results are performed on the local client instead of data node.
There is several alternative clients available when working with ElasticSearch from Java, like Jest, provides a POJO Marshalling mechanism on indexing and for the search results. The example we are using the Client, which is included in ElasticSearch. By default, the client doesn ' t use the REST API but connects to the cluster as a normal node, just doesn ' t store any da Ta. It knows about the state of the cluster and can route requests to the correct node but supposedly consumes more memory. For we application this doesn ' t make a huge difference and for production systems that's something to think about. --Florian Hopf
The native client, like a simple node-connected cluster, knows the state of the cluster and the routing request, which consumes more memory and is worth considering in the production environment.
Do you want to use the open source stuff in the end? It is better to feel less used by the novice developer.
ES's Java Rest client---Jest