title: How Marklogic can have consistency and availability?
body: <p>The CAP theorem seems logical to me. I understand that:</p>
  
  <p>If I have consistency on a distributed system, I have to wait for all
  transactions. The cost of ACID is the time to duplicate data on all
  the network.</p>
  
  <p>But how Marklogic can have both. ACID and distributed system without lag?<br>
  So is it possible to have BASE and ACID properties on the same database?<br>
  So is CAP theorem wrong?</p>