3 ms·
Elasticsearch is not an appropriate choice for an authoritative store of data.
by sagichmal 7y ago
Elasticsearch is not an appropriate choice for an authoritative store of data.
- kbumsik 7y agoCould you elaborate? I'm just started learning Elasticsearch so that sound quite interesting to me.
- jaytaylor 7y agoElasticsearch should not be used as the sole source of truth. I've been using it for years professionally, and it's an amazing tool but not safe with regard to data integrity / durability. While dramatic progress and improvements have been made over the past 9 years, sometimes things still go bad and indices get corrupted. When this happens, it's necessary to reindex the data. There are also additional situations where reindexing is required. So the safe advice is: Always have the authoritative data source elsewhere (in a reliable data store or database of some kind) and then load the data into Elasticsearch from there. Postgres or even MySQL will be a safer bet when data integrity is key. Then it's only a matter of indexing the data from the DB into ES. Using Elasticsearch for a blog is a fun you idea, but ultimately is likely to be overkill for a personal blog site.
- aprdm 7y agoReindexing is not very different from a database schema migration. Depending on data size it can be troublesome but I can't see a blog having that sort of issue ever. I haven't seen indices getting corrupted in the last 4 years of having worked with it in production systems heavily. Not saying it can't happen but just haven't seen since elasticsearch 2.x
- alexnewman 7y agodurability means something specific in database land. And it ain't how you are using it.
- sagichmal 7y agoHe's saying ES isn't D-in-ACID durable. That's correct. What's your objection?
- alexnewman 7y agoI'm saying that the d in durable is not the issue in elastic search. That's just being reliably written to stable storage which modern es does pretty well