| .. | ||
| data-plane-core/ | ||
| data-plane-util/ | ||
| README.md | 4.0 KiB | |
README.md
Data plane module
Overview
This module covers the Data Plane Framework (DPF), which is the entity in charge of performing the actual data transfer between consumer and provider. This DPF is developed in such a way that it can support a myriad of deployment topologies.
Scope
The Data Plane Framework is designed to only work with:
- finite data transfers,
- small payload, latent non-finite transfers such as events.
High-volume or latency-sensitive streaming (non-finite) data transfers should be handled by other implementations that delegate to specialized third-party infrastructure such as Kafka.
Principles
Minimal state
All state pertaining to a transfer process are maintained by the Control Plane as part of the TransferProcess. The
only state that is maintained by the DPF is if a transfer process has been completed. This requires the Control Plane to
issue retries in the event of failure.
No transformation
The DPF is not an ETL tool. It does not contain any facilities for data transformations or processing. This is expected to be handled by the Control Plane as part of the provisioning state.
Do not reinvent the wheel
The DPF relies on existing data transfer technology such as S3, Azure Object Storage, FTP, etc. As a rule of thumb: the DPF should not contain any wire protocol implementations.
Flexible Deployment
It must be possible to:
- deploy the DPF to a K8S cluster,
- deploy the DPF remotely from the Control Plane,
- deploy the DPF in the same process as the Control Plane for demo and testing purposes,
Extensible
The DPF is built using the EDC modularity and extensibility system.
Design
Data Plane Manager
The DataPlaneManager (DPM) enqueues DataFlowRequest, which may originate from an ingress such as an HTTP endpoint. The
queue implementation will be a bounded, in-memory data structure that provides support for backpressure when the system
is overloaded. However, since the queue is in-memory, the client control plane submitting the request will be
responsible for re-submitting a request in the event of failure.
The DPM implementation has a configurable number of workers that dequeue requests for processing (data transfer). This processing operation will complete asynchronously. When a result is returned, an entry for the process indicating success or failure is made using extensible storage. This allows the Control Plane to query the DPF for the status ( COMPLETED or ERROR) of a process. No other state is maintained by the DPF.
The DPM also contains transfer methods that take a DataSource and DataSink, respectively, These can be used to
provide an ad-hoc transfer source or destination. For example, user code may dequeue a message to memory and send it to
a destination using an InputStreamDataSource that wraps the in-memory message. Similarly, user code may wish to
transfer data from a source to a provided OutputStreamDataSink.
Pipeline Service
When a DPM worker dequeues a request, it will delegate to the transfer method of the PipelineService.
The implementation of this service is straightforward: it connects a sink with its source, both of which are instantiated by extensible factories. This design allows for scalable, n-way data transfers since all data are directly streamed from its origin to the terminus.
Pull Streaming
The DPF design is based on a pull streaming model, i.e. a DataSink pulls data from a DataSource. This allows the
sink to control the rate of transfer and potentially parallelize operation. Moreover, optimizations can be made such as
copy-in-place when the source and sink are the same infrastructure such as object storage hosted by a single cloud
provider.
Implementations may support random data access for parallel transfers of large files. For example, both AWS S3 and Azure Object Storage have facilities for ranged gets.
DataSink implementations will provide the ability to configure parallel transfers, e.g. controlling the number of
threads to perform ranged gets.