This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# sda-pipeline: sync | ||
|
||
The sync service is used exclusively in the [Bigpicture](https://bigpicture.eu/) project. | ||
|
||
## Service Description | ||
|
||
The sync service facilitates replication of data and metadata between the nodes in the consortium. | ||
|
||
When enabled the service will perform the following tasks: | ||
|
||
1. Read messages from the configured queue (sent by the mapper service upon succesful completion of a dataset maping). | ||
1. Generate a JSON blob with the required file and dataset information required to start and complete ingestion of a dataset on the recieving node. | ||
2. Send the JSON blob as POST request to the recieving partner. | ||
2. Upon recieving a POST request with JSON data to the `/dataset` route. | ||
1. Parse the JSON blob and check if dataset is already registered, exit if true. | ||
2. Build and send messages to start ingestion of files. | ||
3. Build and send messages to assign stableIDs to files. | ||
4. Build and send messages to map files to a dataset. |