CAP Theorem Explained With Examples