弹性搜索 Go 语言
ElasticSearch Golang
是否可以在 PROD 设置中用 elastigo? I can't seem to find anything specific to that. Anyone using elastigo 识别多个主机?我真的很想尝试为我们的 Web 服务使用基于 go 的应用程序,但我们对 ElasticSearch、Redis 和其他一些可能有要求。只是不确定 go 的驱动程序是否准备就绪。
如有任何建议/信息,我们将不胜感激。
谢谢,
S
elastigo is working very well in a production setting for us. As far as detecting 'hosts' my best suggestion is to read the elasticsearch documentation 描述了他们的集群管理方案——大部分工作由 elasticsearch 本身处理。在我们的(相当直接的)用法中,我从来不需要考虑服务器主机 address:port 之外的任何事情 - 节点在联机时自动连接到命名集群(使用适当的配置参数)并且负载平衡在 elasticsearch 中处理本身。
我的回答可能有点晚,但仍然......我最近(2016 年年中)选择 olivere/elastic over elastigo 作为我们生产应用程序的 Elasticsearch Go 客户端。
选择的原因是:
- olivere/elastic is under active development for the last year, while elastigo 更新频率越来越低
- 截至2016年,开发者在网上推荐olivere/elastic更多
如果你还没有做出决定,我强烈建议你看看olivere/elastic。还有一个博客 post Working With Elasticsearch in Go,它通过示例演示了如何使用 olivere/elastic 来索引和搜索文档。 (如果您想了解一下代码的样子。)
是否可以在 PROD 设置中用 elastigo? I can't seem to find anything specific to that. Anyone using elastigo 识别多个主机?我真的很想尝试为我们的 Web 服务使用基于 go 的应用程序,但我们对 ElasticSearch、Redis 和其他一些可能有要求。只是不确定 go 的驱动程序是否准备就绪。
如有任何建议/信息,我们将不胜感激。
谢谢,
S
elastigo is working very well in a production setting for us. As far as detecting 'hosts' my best suggestion is to read the elasticsearch documentation 描述了他们的集群管理方案——大部分工作由 elasticsearch 本身处理。在我们的(相当直接的)用法中,我从来不需要考虑服务器主机 address:port 之外的任何事情 - 节点在联机时自动连接到命名集群(使用适当的配置参数)并且负载平衡在 elasticsearch 中处理本身。
我的回答可能有点晚,但仍然......我最近(2016 年年中)选择 olivere/elastic over elastigo 作为我们生产应用程序的 Elasticsearch Go 客户端。
选择的原因是:
- olivere/elastic is under active development for the last year, while elastigo 更新频率越来越低
- 截至2016年,开发者在网上推荐olivere/elastic更多
如果你还没有做出决定,我强烈建议你看看olivere/elastic。还有一个博客 post Working With Elasticsearch in Go,它通过示例演示了如何使用 olivere/elastic 来索引和搜索文档。 (如果您想了解一下代码的样子。)