|
1 | 1 | # Airdrop-as-a-Service (ADaaS)
|
2 | 2 |
|
3 |
| -Airdrop-as-a-Service (ADaaS) as a system consists of the internal Airdrop components and a Worker (Extractor or Loader), |
4 |
| -which is a Snap-In with a predefined structure. |
5 |
| -These Workers (Extractors and Loaders) can be built by anyone, not just DevRevelers. |
6 |
| - |
7 |
| -This section explains how ADaaS works at a high level. |
8 |
| -Message protocols and other specifics can be found in the Extractor and Loader sections. |
9 |
| - |
10 |
| -Airdrop uses its own AWS S3 structure |
11 |
| -(and its own buckets) and that only Airdrop components have access to it. |
12 |
| -This means that Workers can’t access these buckets directly, |
13 |
| -which is why all their data has to be uploaded to DevRev through S3Interact. |
14 |
| - |
15 |
| -For clarity, Artifact API and Airdrop are shown as separate entities, |
16 |
| -even though they are both accessed through DevRev’s API. |
17 |
| -Worker is shown as external, to clarify that it is developed by third parties, |
18 |
| -even though it runs on DevRev’s infrastructure. |
19 |
| - |
20 |
| -```mermaid |
21 |
| ---- |
22 |
| -title: ADaaS architecture high-level overview |
23 |
| ---- |
24 |
| -graph TB |
25 |
| -externalSystem[External system] |
26 |
| -worker([Worker]) |
27 |
| -s3interact[s3interact] |
28 |
| -airdrop[Airdrop] |
29 |
| -s3[(AWS S3)] |
30 |
| -
|
31 |
| - externalSystem <-- Get/create users, issues, ... --> worker |
32 |
| - |
33 |
| - worker <-- Exchange artifact upload/download URLs --> s3interact |
34 |
| - worker <-- Upload/download artifacts --> s3 |
35 |
| - worker <-- ADaaS messages and REST API --> airdrop |
36 |
| -
|
37 |
| - |
38 |
| - subgraph DevRev |
39 |
| - s3interact <-- Prepare upload/download URL --> s3 |
40 |
| - airdrop <-- Download/upload artifacts --> s3 |
41 |
| - end |
42 |
| -``` |
| 3 | +Airdrop is DevRev’s solution to migrate data. It allows our customers to bring in their existing data from |
| 4 | +external systems and, data back to external systems, and keep data in sync between DevRev and the external systems. |
| 5 | +You can read more about Airdrop in the [general documentation](https://docs.devrev.ai/import#airdrop-features). |
| 6 | + |
| 7 | +Airdrop-as-a-Service (ADaaS) gives snap-in developers the ability to integrate with DevRev’s Airdrop functionality. |
| 8 | +It enables developers to create external workers, extractors and loaders to bring data from various external systems. |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +An extractor is an function in an ADaaS-capable snap-in responsible for extracting data from an external system, such as Jira, Zendesk, |
| 13 | +HubSpot, etc. It uses a standardized communication protocol for talking to Airdrop and a standardized |
| 14 | +data structure for all the files it extracts and processes, so that they can be seamlessly imported into DevRev. |
| 15 | + |
| 16 | +## Sync runs |
| 17 | + |
| 18 | +Airdrop functions are executed in the context of sync runs, which is a directed operation that spans over many invocations |
| 19 | +of ADaaS snap-in to bring the data to DevRev or load the data to the external system. |
| 20 | + |
| 21 | +A forward sync run is a sync from an external system to DevRev. An extractor is used to extract the created and/or |
| 22 | +updated data from the external system, such as Jira, Zendesk, HubSpot, etc. to DevRev. An extractor function |
| 23 | +in the snap-in is responsible for extracting data from the external system. It uses standardized communication protocol |
| 24 | +for talking to [Airdrop](https://docs.devrev.ai/import#airdrop-features) and a standardized data structure for all the files |
| 25 | +it extracts and processes, so that they can be transformed, deduplicated and seamlessly imported into DevRev. |
| 26 | + |
| 27 | +A reverse sync run is a sync from DevRev to an external system. It uses a loader function, to create and/or update data |
| 28 | +in the external system. |
| 29 | + |
| 30 | +## Sync modes |
| 31 | + |
| 32 | +### Initial import |
| 33 | + |
| 34 | +An initial import is the first import of data from the external system to DevRev. |
| 35 | +It is triggered manually by the end user in DevRev's Imports UI. |
| 36 | + |
| 37 | +## 1-way sync |
| 38 | + |
| 39 | +A 1-way sync refers to any extraction after the initial import has been successfully completed. |
| 40 | +An extractor extracts data that was created and/or updated in the external system |
| 41 | +after the start of the latest successful forward sync, including any changes that occurred during the |
| 42 | +forward sync, but were not picked up by it. |
| 43 | + |
| 44 | +A snap-in must consult its state to get information on when the last successful forward sync started. ADaaS snap-ins |
| 45 | +must maintain its own state that persists between phases in a sync run, as well as between sync runs. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
0 commit comments