我刚开始使用 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/