Integrating customer data

5 concepts · 10 practice questions

Ingestion: files, APIs, databases and CDC

Customer data arrives as file drops (CSV or Parquet on SFTP or object storage), API pulls, direct database queries or change data capture (CDC). Files are simple but late, and they carry no contract. Polling a table by updated_at is cheap but misses hard deletes and any row whose timestamp the application forgets to bump. CDC reads the database's transaction log, so it sees inserts, updates and deletes in commit order with little load on the source, but it needs the DBA to enable it. Never run heavy extraction against a production primary in business hours; use a replica or an export.

-- Incremental pull: keyset on (updated_at, id) so equal timestamps
-- at a batch boundary are neither skipped nor read twice
SELECT id, status, amount, updated_at
FROM orders
WHERE (updated_at, id) > (%(last_ts)s, %(last_id)s)
ORDER BY updated_at, id
LIMIT 10000;

Also covered

Schema mapping and drift
Data quality checks
Entity resolution and deduplication
Idempotent, incremental pipelines

Sign in to read the rest and take the 10-question test.

Sign in to continue