# `TiKV` Client

+ Embedded libraries for applications to access `TiKV` cluster
+ Provide **`RawKV API`** and **`TxnKV API`**

![`smart`](TiKVClient_aa_001_20221027.png)

| `API`   | Description                                                                        | Atomicity     | When to Use                                                                    |
| :------ | :--------------------------------------------------------------------------------- | :------------ | :----------------------------------------------------------------------------- |
| `RawKV` | A low-level `key-value API` to interact directly with individual `key-value` pairs | Sinle key     | Applications require low latency and does not involve distributed transactions |
| `TxnKV` | A higher-level `key-value API` to provide `ACID` semantics                         | Multiple keys | Applications require distributed transactions                                  |

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

