# `CAP` and `HA`
+ `CAP`:
  + Consistency
  + Availability
  + Partition (network)
+ `TiDB/TiKV`: CP and HA

![`smart`](CAPAndHA_aa_001_20221024.png)

------------------------------------------------------------
`CA:` Traditional single-instance Database
`AP:` Trading off consistency (eventual consistency)
`CP:` Ensuring strong consistency, trading off Availability

The figure is from "Choosing the right NoSQL database for the job: a quality attribute evaluation".
