-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Issues with the Old Structure:
-
Excessive Scanning of
Source
:- The
prepare
phase fully scans theSource
to obtain complete metadata (including file HASH). - The upload process requires re-reading the file data.
- The
-
Dependency on Metadata from
prepare
:- Transmission relies on metadata computed during the
prepare
phase, preventing parallel execution of transmission andprepare
.
- Transmission relies on metadata computed during the
-
Inefficient Incremental Information Generation:
Source
cannot efficiently generate its file incremental information based on its environment and product requirements.
Key Improvements in the New Structure:
-
Two Threads in Operation:
Source
: Scans data directory information:
a. Retrieves file directory structure to get a list of all files (can generate incremental information based onSource
needs).
b. Compiles a list of data blocks.Target
: RequestsEngine
to fill each data unit, performing final source data reads at this stage:
a. Data compression may occur at this stage.
b. Generates incremental information using default methods ifSource
hasn't provided it.
c. Packages source data list into data blocks ifTarget
stores in block form.
d. Uploads source data in file form ifTarget
stores in directory form.
e. Computes HASH during data reading for final verification.
f.Target
can initiate additional upload threads for performance.
-
Parallel Execution of
Source
andTarget
Threads:- The product can choose to complete the
Source
thread first to obtain more task information.
- The product can choose to complete the
Metadata
Metadata
Assignees
Labels
No labels