|
|
|
|
|
by atomashpolskiy
2435 days ago
|
|
+1, or use any other log-based replication mechanism (e.g. Logstash). The point is that instead of having two independent systems that can easily go out of sync (if not using distributed transactions) and become permanently incostistent with each other, you'll now have the database as the primary source of data (commonly referred to as the system of record) and Elasticseach as a secondary, eventually consistent search index. This approach sacrifices read-your-writes consistency though, but for a search index this can be tolerated. |
|
Not wanting to do that for a small project, but wanting a better architecture than I've got, I'm curious about your proposed approach.