ElasticSearch Golang

Can I identify multiple hosts with elastigo ? I can't seem to find anything concrete. Does anyone use elastigo to configure PROD? I would really like to try to use the go-based application for our web services, but we have a requirement with ElasticSearch, Redis, and possibly a few others. Just not sure if the drivers for go are ready.

Any suggestions / information would be appreciated.

Thanks,

S

+5
source share
2 answers

elastigo works very well in production settings for us. Regarding the discovery of "hosts", my best suggestion is to read the elasticsearch documentation that describes their cluster management scheme - most of this work is handled by elasticsearch itself. In our (rather simple) use, I never had to think about anything behind the server address: port - nodes that connect to the named cluster when they enter the network (with the correct configuration parameters), and load balancing is handled by elasticsearch itself.

+3
source

My answer may be a little belated, but still ... I recently (mid-2016) chose olivere / elastic over elastigo as the Elasticsearch Go client for our production application.

Reasons for choosing:

  • olivere / elastic has been under active development over the past year, and elastigo is being updated less and less.
  • Since 2016, developers have recommended using olivir / elastic on the Internet.

I highly recommend you take a look at olivere / elastic if you haven't made a decision yet. There is also a blog post Working with Elasticsearch in Go , which demonstrates an example of using olivir / elasticity for indexing and finding documents. (If you want to get an idea of ​​what the code looks like.)

+4
source

Source: https://habr.com/ru/post/1213886/


All Articles