Explain the CAP theorem and give a real-world example of each trade-off. | Consistency and Availability | System-Design Interview Questions | NextRound.in