Can you provide a real-world scenario where you had to prioritize between consistency, availability, and partition tolerance? What decision did you make?

The CAP theorem forces distributed systems to trade off between consistency, availability, and partition tolerance, and real-world architecture decisions often favor availability and partition tolerance over strict consistency when user experience during outages matters most.

Key Points

Example

During a flash sale, an e-commerce platform kept the checkout flow available even when some inventory nodes were unreachable, briefly showing stock that had just sold out rather than blocking purchases entirely, then reconciled the discrepancy afterward.

Interview Tip

A concise interview answer is

On an e-commerce platform during peak sale traffic, I prioritized availability and partition tolerance over strict consistency, since keeping checkout responsive mattered more than momentarily accurate stock counts. Minor inconsistencies like showing recently sold-out stock were acceptable and got reconciled afterward, but downtime was not.

Last updated: 16 July 2026

Previous question: What is the CAP theorem?

Next question: Describe a time when a misconfigured properties file caused a production issue.

More Spring Boot - Level V (Expert) interview questions

All Spring Boot - Level V (Expert) questions