我目前正在使用 ElasticSearch 和 EventStore 学习 CQRS 实现。因此,我决定使用EventStore将严重的事件流保存到 EventStore 中,并且我想使用 Elastic Search 从 EventStore 中查询 Data/CurrentState 数据。
我的问题是,
1.) 使用ElasticSearch,我们是直接从 EventStore 中查询聚合的 Data/CurrentState 数据还是需要将聚合的 Data/CurrentState 数据同步/存储到 ElasticSearch 中进行查询?
2.) 将事件存储数据同步/索引到弹性搜索中的正确方法是什么?我们是否需要使用任何中介将 EventStore 数据同步/索引到弹性搜索中?我的最终目标是使用 EventStore for Command 和 ElasticSearch for Querying 构建 CQRS 实现。
注意:我计划使用NEST和ElasticSearch.net dll在.net Core中构建一个系统。
非常感谢您的想法。
提前致谢。