Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ElasticSearch as EventStore

I would like to ask you about your opinion and what you see as cons and pros to use ElasticSearch as EventStore.

I would like to hear if somebody had experience with using ElasticSearch as event store and what was the results, reliability and if there was any issues.

like image 841
Kamil Avatar asked Dec 09 '16 10:12

Kamil


1 Answers

eta: Reminded of this post by a no-explanation-down-voter... This Kafka is not for Event Sourcing post is pretty useful when thinking through this sort of a question.


Elastic search is simply not designed to be an authoritative persistent store for actual app state. Neither is Redis. Neither is Kafka.

All three may potentially be useful in the context of an app which does employ an event store.

May I suggest reading a book like NoSql distilled to get an idea of selection criteria in this space so you'll know how to select something appropriate.

Also for a question like this to be more answerable (in general questions like this are considered subjective and get closed), it's important to supply context as to what sort of stuff you're going to maintain, what sort of access patterns, what sort of scale and/or any other context. A laundrly list of contextless pro/cons is not going to help much.

like image 99
Ruben Bartelink Avatar answered Nov 03 '22 06:11

Ruben Bartelink