Sync Strategies

Keep customer data synchronized between your platform and AIDP.

Sync Strategies

1. Real-Time Sync

Sync changes immediately as they occur.

Pros: Always up-to-date Cons: Higher API usage

// On business update in your platform
async function onBusinessUpdate(businessId, changes) {
  await partner.sync.business(businessId, changes);
}

2. Scheduled Sync

Sync on a schedule (hourly, daily, etc.).

Pros: Lower API usage Cons: Potential data lag

// Run every hour
cron.schedule('0 * * * *', async () => {
  const changes = await getChangedBusinesses(lastHour);
  await partner.sync.batch(changes);
});

3. Hybrid Sync

Real-time for critical changes, scheduled for bulk updates.

Pros: Balance of freshness and efficiency Cons: More complex


Sync Implementation

Track Changes

Handle Conflicts


Webhooks

Subscribe to AIDP Changes

Handle Incoming Changes


Monitoring

Sync Status

Sync Metrics


Next: Partnership Program →

Last updated