Understand AirSync

Connector components and responsibilities

Understand how workers, the external API client, schemas, mappings and the manifest form a connector.

An AirSync connector is a snap-in containing code and configuration for one external system. The parts below work together to import data into DevRev and, when supported, send changes back.

Components and responsibilities

ComponentPurposeWho implements it
Entry pointReceives AirSync events and starts the appropriate workerYou wire it to the SDK
WorkerPerforms one phase of extraction or reverse syncYou write the external-system behavior
External API clientReads and writes data through the provider's APIYou implement requests and provider-specific behavior
External schemaDescribes the record types, fields and references your connector producesYou define it
NormalizationConverts API responses into records matching that schemaYou implement it
Domain mappingDefines how external records and fields correspond to DevRev objectsYou supply defaults; users choose their import configuration
DenormalizationConverts reverse-sync input into external API write payloadsYou implement it when supporting reverse sync
Connector stateRecords progress so a later invocation can continueYou track completed work; the SDK stores and reloads it
Manifest and connectionsDeclares functions, capabilities, permissions and authenticationYou configure it; the platform supplies authorized credentials

The project setup guide shows where these components live. Choose connector capabilities explains the implementation required for each supported feature.

Next: What the AirSync SDK does.

Last updated on