|
| 1 | +--- |
| 2 | +id: 111 |
| 3 | +state: approved |
| 4 | +created: 2023-06-17 |
| 5 | +placement: |
| 6 | + category: api-concepts |
| 7 | + order: 50 |
| 8 | +--- |
| 9 | + |
| 10 | +# Planes |
| 11 | + |
| 12 | +Resources and methods on an API can be divided into the *plane* that they reside |
| 13 | +or perform operations upon. For the context of APIs, the following planes are |
| 14 | +defined: |
| 15 | + |
| 16 | +- Management plane: a uniform, resource-oriented API that primarily |
| 17 | + configures and allows retrieval of resources. |
| 18 | +- Data plane: a heterogenous API (ideally resource-oriented) that reads and |
| 19 | + write user data. Often connects to entities provisioned by the management |
| 20 | + plane, such as virtual machines. |
| 21 | + |
| 22 | +The term "plane" was originally used in networking architecture. Although system |
| 23 | +and network architecure often defines additional planes (e.g. control plane or |
| 24 | +power planes), as the AIPs are focused on the interface, they are not defined in |
| 25 | +this AIP. |
| 26 | + |
| 27 | +## Guidance |
| 28 | + |
| 29 | +### Management Plane |
| 30 | + |
| 31 | +Management resources and methods exist primarily to provision, configure, and |
| 32 | +audit the resources that the data plane interfaces with. |
| 33 | + |
| 34 | +As an example, the following are considered management resources for a cloud |
| 35 | +provider: |
| 36 | + |
| 37 | +- virtual machines |
| 38 | +- virtual private networks |
| 39 | +- virtual disks |
| 40 | +- a blob store instance |
| 41 | +- a project or account |
| 42 | + |
| 43 | +### Data Plane |
| 44 | + |
| 45 | +Methods on the data plane operate on user data in a variety of data formats, and |
| 46 | +generally interface with a resource provisioned via a management plane API. |
| 47 | +Examples of data plane methods include: |
| 48 | + |
| 49 | +- writing and reading rows in a table |
| 50 | +- pushing to or pulling from a message queue |
| 51 | +- uploading blobs to or downloading blobs from a blob store instance |
| 52 | + |
| 53 | +Data plane APIs **may** be heterogenous across a larger API surface, due to |
| 54 | +requirements including high throughput, low latency, or the need to adhere to an |
| 55 | +existing interface specification (e.g. ANSI SQL). |
| 56 | + |
| 57 | +- For convenience, resources and methods that operate on the data plane **may** |
| 58 | +expose themselves via resource-oriented management APIs. If so, those resources |
| 59 | +and methods **must** adhere to the requirements of the management plane as |
| 60 | +specified in the other AIPs ([AIP-131][] through [AIP-135][]). |
| 61 | + |
| 62 | +### Major distinctions between management and data plane |
| 63 | + |
| 64 | +- [IaC][] tools operate on the management plane exclusively. |
| 65 | +- Data planes are often on the critical path of user-facing functionality, and |
| 66 | + therefore: |
| 67 | + - Have higher availabilty requirements than management planes. |
| 68 | + - Are more peformance-sensitive than management planes. |
| 69 | + - Require higher-throughput than management planes. |
| 70 | + |
| 71 | + |
| 72 | +[AIP-131]: ./0131.md |
| 73 | +[AIP-135]: ./0136.md |
| 74 | +[IaC]: ./0009.md#iac |
| 75 | + |
| 76 | +## Changelog |
| 77 | + |
| 78 | +- **2023-06-10**: Introduction of this AIP. |
0 commit comments