What is the CAP theorem and how is it applied in distributed system design? · ORA·tech