Elasticsearch vs Cassandra vs Elasticsearch with Cassandra

前端 未结 8 1253
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 15:03

I am learning NoSQL and looking at different options for one of my client\'s requirements. I have gone through various resources before putting up this question (a person w

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 15:31

    We had developed an application where we used Elasticsearch and Cassandra. Similar data was stored into Cassandra and indexed into Elasticsearch.

    Our application's UI was having features like searches, aggregations, data export, etc. The back-end microservices were continuously getting huge data (on Kafka topics) and storing it into Cassandra. Once the data is stored into Cassandra, the services would make sure the data is indexed into Elasticsearch.

    Cassandra was acting as "Source of truth" for Elasticsearch. In the cases, where reindexing of the ES index was required, we queried Cassandra and reindexed the data into ES.

    This solution helped us, as this was very easy to scale and the searches and aggregations were much faster.

提交回复
热议问题