Data Synchronization
This guide explains how to create and manage data synchronization sessions with PinkCloudSync.
Overview
A sync session transfers data between a source and target system1. The process includes:
- Creating a session with source and target configuration
- Monitoring the synchronization progress
- Handling any conflicts that arise
- Reviewing the results
graph LR
A[Create Session] --> B[Data Reading]
B --> C[Processing]
C --> D{Conflicts?}
D -->|Yes| E[Resolve]
D -->|No| F[Write Data]
E --> F
F --> G[Complete]
Setup Checklist
Complete these steps before creating your first sync session:
- Obtain API credentials and authenticate
- Identify source and target systems
- Verify network connectivity between systems
- Determine conflict resolution strategy
- Plan data filters and batch size
- Set up monitoring and alerts
Creating a Sync Session
Basic Example
Create a simple sync session between two databases:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
Session Created
The session is created with status pending and will automatically start processing.
Configuration Options
Conflict Strategy
Specify how to handle conflicts:
1 2 3 4 5 6 7 8 9 10 | |
1 2 3 4 5 6 7 | |
Available strategies:
| Strategy | Description |
|---|---|
manual |
Save conflicts for manual resolution (default) |
source_wins |
Always use source data |
target_wins |
Always use target data |
newest_wins |
Use the most recent version |
Batch Size
Control how many records are processed at once:
1 2 3 4 5 | |
- Default: 100 records
- Range: 1-1000 records
- Recommendation: Use larger batches (500-1000) for better performance
Filters
Limit which data is synchronized:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
Managing Sessions
List All Sessions
Retrieve all sync sessions:
1 2 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
Cancel a Session
Stop an active sync session:
1 2 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Cancellation
Cancelling a session stops the synchronization immediately. Already synced data will not be rolled back.
Error Handling
Common Errors
Connection Failed
Cause: Cannot connect to source or target
Solution: * Verify connection parameters * Check network connectivity * Ensure credentials are correct
Error Response:
1 2 3 4 5 6 7 8 | |
Next Steps
- Conflict Resolution — handle data conflicts
- Concepts — understand sync architecture
-
A session represents a single synchronization operation with its own configuration, state, and statistics. ↩