Mastering Elasticsearch: CAP Theorem Explained