ElasticSearch
Last updated
Was this helpful?
Last updated
Was this helpful?
Why?
*
Approach: Option 1 vs Option 2 below
Option 2 is adopted because Option 1 needs to introduce additional components and does not improve much on latency
Resiliency
What if there is an error using Option 2: Add another task inside SQL server. There will be a worker task regularly scanning through these tasks. Use this type of compensation mechanism to make ES and MySQL data eventual consistent.
Latency
There will be a delay when data comes into ES's index buffer but not into file system cache. So for requests requiring real time data, better rely on MySQL.
Reference:
Reference [In Chinese: ]