Coder Social home page Coder Social logo

Comments (5)

dcode avatar dcode commented on May 31, 2024 2

@To-om does 5e2e12b fully implement the HTTP transport, or is there more to do. I'm ultimately keen to update TheHive to use an ES 6.x backend, but it seems the TCP transport and Netty dependencies are the stopper for that. Maybe there's other issues, but I thought I'd ask.

I'm happy to test and provide useful feedback. I use Elastic extensively with the @rocknsm project and I'm looking to update my entire cluster to 6.x.

Thanks!

from elastic4play.

To-om avatar To-om commented on May 31, 2024

Hi @bacoboy,

Several week ago, I've tried to add support of elastic4s HTTP client to Elastic4play but some operations were not supported. I've updated elastic4s version and it works better but there are many problems to support both TCP and HTTP.
The main problem is that the result of an operation (a search for example) doesn't return the class. TCP client returns a com.sksamuel.elastic4s.searches.RichSearchResponse whereas HTTP client returns a com.sksamuel.elastic4s.http.search.SearchResponse and conversion between the two types is not possible (they doesn't contain the same data).
In order to support HTTP and TCP, I must add an abstraction layer on operation results.

For you information, we have many problems with ElasticSearch and we seriously think about migration to another database technology. But migration to a new database is not an easy task and will take time.

from elastic4play.

bacoboy avatar bacoboy commented on May 31, 2024

Yes, because you are using the the result classes directly you would have to create an abstraction layer anyway -- in which case you could support a plugable persistence layer -- including a standard database.

from elastic4play.

slatemine avatar slatemine commented on May 31, 2024

+1
@To-om does 5e2e12b fully implement the HTTP transport
This issue, we're in the process of spinning up a production cluster and were going with AWS Elasticsearch just to provide a quick low maintenance ES cluster ( daily back up etc ). Anyhow AWS does not support TCP clients.

I see the branch on which this work was done stopped, was it successful or a dead end.

from elastic4play.

To-om avatar To-om commented on May 31, 2024

From version 1.11, HTTP communication is used. TCPClient is not used any longer.

from elastic4play.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.