title: Replication via Kafka vs. mysql events
body: <p>I have a need to maintain a copy of an external database (including some additional derived data). With the same set of hardware, which one of the following solutions would give me faster consistency (low lag) with high availability? Assume updates to external database happen at 1000 records per second.</p>
  
  <p>a) Create local mysql replica of an external db using mysql 5.7 replication (binary log file mechanism).</p>
  
  <p>OR</p>
  
  <p>b) Get real time Kafka events from external system, doing HTTP GET to fetch updated object details and use these details to maintain a local mysql replica.</p>