Re:Building a Full-Text Search App Using Docker and Elastics...
by amelius on Thursday February 01, 2018 @01:04PM
(#16284068)
What if your server crashes after you commit to the database, but before you submit to elastic-search? Even if submitting is flawless, this still presents a problem.
[ Parent
| on HN ]
Re:Building a Full-Text Search App Using Docker and Elastics...
by jcadam on Thursday February 01, 2018 @01:12PM
(#16284152)
Depends on which server :D The Database, ElasticSearch, RabbitMQ, and the application services are on different VMs (in my case, Linodes).
Committing to the database will trigger an entry (via a trigger function) in an audit table. So there is still a record of the transaction. After the system is restored to a healthy state, the next time the sync script is run (either automatically or manually if I'm feeling anxious), it should catch up.
Of course, in a worst-case scenario, I could always rebuild the index :O.