CAP Choices Per Subsystem: Mixing CP and AP
SUBSYSTEMS THAT NEED CP
Payments and ordering: Double-charging or overselling costs money and trust. These services use CP with leader-based replication. During partitions, the system rejects orders rather than risk inconsistency. Config: 5 replicas, 3 acknowledgments required, 15-30ms write latency.
Inventory management: Selling the last item twice creates problems. Strong consistency prevents this, even if some orders are rejected during network issues.
SUBSYSTEMS THAT CAN USE AP
Product catalog: Showing a product that went out of stock 2 seconds ago is fine. AP semantics with 10-20ms reads. During partitions, all zones serve, clients may see slightly stale data.
Recommendations: User preferences lagging by seconds is invisible. Speed matters more than perfect freshness.
AVAILABILITY MATH
CP at 99.9% = 8 hours downtime per year. AP at 99.99% = 52 minutes per year. The 10x availability difference is the cost of strong consistency. Choose based on what your subsystem can tolerate.