apache / servicecomb-pack

Apache ServiceComb Pack is an eventually data consistency solution for micro-service applications. ServiceComb Pack currently provides TCC and Saga distributed transaction co-ordination solutions by using Alpha as a transaction coordinator and Omega as an transaction agent .
https://servicecomb.apache.org/
Apache License 2.0
1.93k stars 436 forks source link

状态机模式是否有必要强依赖es #728

Closed DawnSouther closed 2 years ago

DawnSouther commented 2 years ago

servicecombo应该只是一个协调器,依赖es做历史记录查询是否有些太重了? db查询的性能瓶颈在哪呢?把es做成一个可选项是一个更好的选择?

coolbeevip commented 2 years ago

Currently, only the state machine model uses ES to store archived messages and front-end queries. You can implement the TransactionRepository interface according to your favorite storage. Just like ElasticsearchTransactionRepository.java

DawnSouther commented 2 years ago

I want to know why use ES in FSM? Is it just a temporary solution? Or what other considerations?

coolbeevip commented 2 years ago

ES is designed to provide an Improve query performance way to find and manage information on large transaction data