elasticsearch - 使用EventStore和ElasticSearch实现CQRS

标签 elasticsearch asp.net-core-2.0 nest cqrs eventstoredb

我目前正在使用ElasticSearch和EventStore 学习 CQRS实现。因此,我决定使用 EventStore 将大量事件流保存到EventStore中,并且我想使用 flex 搜索从EventStore中查询数据/ CurrentState数据。

我的问题是

1.)使用 ElasticSearch ,我们应该直接从EventStore查询聚合的数据/当前状态数据,还是需要将聚合的数据/当前状态数据同步/存储到ElasticSearch中进行查询?

2.)将事件存储数据同步/编制索引到 flex 搜索中的正确方法是什么?我们是否需要使用任何中介程序来同步/索引EventStore数据
进入 flex 搜索吗?
我的最终目标是使用EventStore for Command和ElasticSearch查询
来构建 CQRS实现。

注意:我打算使用 NEST ElasticSearch.net dll .net Core 中构建系统。

非常感谢您的想法。

提前致谢。

最佳答案

由于您处于学习阶段,因此我强烈建议您从初始实现中删除Elastic和EventStore。专注于CQRS,并实现ES的简化版本。在此阶段,您不需要成熟的事件采购方法。

关于elasticsearch - 使用EventStore和ElasticSearch实现CQRS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51889650/

相关文章:

c# - Boosting使用Elastic/NEST开始并包含搜索

elasticsearch - elasticsearch以及如何搜索确切的数组元素

elasticsearch - 获取 Elasticsearch 聚合中的桶计数

c# - Entity Framework Core 添加迁移失败

javascript - 使用 d3.js 对多个字段进行分组

.net - 如何在 Elasticsearch 的 Nest.Net 中搜索 GUID?

c# - Elasticsearch-按分数过滤前N个文档,然后按字段排序

elasticsearch - 当有时仅出现其中一个字段时,对ElasticSearch中的两个字段进行过滤

asp.net-core-2.0 - 如何从Core 2 Razor页面ViewModel处理程序返回部分 View

asp.net-core-2.0 - ASP.NET MVC Core 2.0 中多条记录的表数据条目