elasticsearch - 使用 Elastic Search 作为应用程序的权威数据存储是否可取?

标签 elasticsearch

我刚开始使用 Elasticsearch ,我正在尝试为我们的应用程序找到一个数据存储,我们还可以在其中添加用于分析的前端,在本例中为 Kibana。我计划将它们用作我们计费系统上 dr/cr 交易的数据存储。

我读到的大多数用例都是与数据分析和搜索相关的。我没有看到将其用作应用程序的常规数据存储的用例。所以我担心我可能会在错误的用例中使用它。

我希望有人能对此发表自己的见解。比如为什么或为什么不使用 Elastic Search 作为应用程序的权威/主要数据存储。

最佳答案

您应该阅读official blog of elasticsearch ,他们明确提到数据库必须强大并且不应该停止工作,除非您告诉这样做。

来自robustness section同一个博客的

A database should be robust, especially if it is your authoritative system of record. Ideally, a costly query should be possible to cancel, and you certainly don't want the database to stop working unless you tell it to.

Unfortunately, Elasticsearch (and the components it's made of) does not currently handle OutOfMemory-errors very well. We cover this in more depth in Elasticsearch in Production, OutOfMemory-Caused Crashes. It is very important to provide Elasticsearch with enough memory and be careful before running searches with unknown memory requirements on a production cluster.

简而言之,您不应该将 Elasticsearch 用作主数据存储,因为您无法承受丢失数据的后果。

关于elasticsearch - 使用 Elastic Search 作为应用程序的权威数据存储是否可取?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66064799/

相关文章:

mongodb - 无法运行mongo-connector

json - Elasticsearch function_score与 bool

elasticsearch - 如何在logstash中基于传导创建多个索引

c# - Elasticsearch 错误 "failed to find nested object under path"

reactjs - ReactiveSearch仅自动完成

node.js - 启动时嗅探时 Elasticsearch 没有事件连接

c# - 如何使用 C# 运行 CURL 命令?

elasticsearch - Elasticsearch Dedupe结果,每个 “field value”返回1个文档

php - 官方 Elasticsearch PHP 模块启用 TTL

elasticsearch - Elasticsearch 查询,其中值存在于 2 个字段值之间