- Type of work
- Pipeline build and production operations
- Whose work
- Our founder’s earlier engineering work
- Status
- Production operations
- Stack
- Hevo Data, PostgreSQL, MongoDB, Amazon Redshift, Python, Concourse CI, HubSpot, Slack
In brief
- Problem. Reports depended on data copied continuously from operational databases. When replication stopped or a source table changed shape, a report could go stale or wrong without showing an error.
- Work. Our founder built and operated change data capture into Amazon Redshift, wrote the Python transformations and moved CRM ingestion onto the same managed pipeline.
- Check. Watchers for incomplete and unusual loads alert in Slack, and runbooks say how to reload a bounded date range.
What did our founder build and run?
- Change data capture into Redshift. Changes in PostgreSQL and MongoDB databases were copied into Amazon Redshift with Hevo, with Python transformations applied to incoming events.
- Scheduled jobs. Python ETL and reporting jobs ran daily, weekly and every 30 minutes under Concourse, with a cron fallback on a separate server.
- A faster CRM load. HubSpot ingestion was moved from an older sync tool to the managed pipeline. A full reload that had taken hours then took minutes, and a redundant legacy ETL path was removed.
- Watchers. Completeness and outlier checks post to Slack and can trigger a backfill limited to the affected dates.
- Runbooks. Written steps for reloads, schema changes and handover to the next person on call.
Legacy sources were retired once their replacements had been migrated.
What goes wrong with change data capture?
Most of the work in a pipeline comes after the first successful load. These are the failures he diagnosed and recovered from, working with the source engineers and DevOps.
| Failure | How it shows up | Response |
|---|---|---|
| A replication slot stalls | Changes stop arriving, and PostgreSQL keeps write-ahead log files it cannot discard | Restore replication with the database owners, then reload the gap |
| A source table changes structure | A load fails, or a new column never reaches the warehouse | Map the change and reload the affected range |
| Infrastructure outage | Scheduled refreshes fail together | Rerun the failed refreshes once the platform is back |
| A load finishes but is incomplete | A dashboard shows a dip that is really missing data | The completeness watcher alerts, and a bounded backfill fills the gap |
How do you know a load is complete?
A job that exits without an error has not proved anything about the data. A completeness check asks a separate question: did every expected period arrive? An outlier check asks whether today’s values sit far outside their usual range. Either one can be wrong on its own. Together they catch the quiet failures that a status page misses.
When a check fires, the response should already be written down. The runbook names the tables, the date range to reload, the order to run things in and what to verify afterwards.
What would this look like for your team?
We can take on one pipeline that has failed before. We add a completeness check, write the reload runbook and test it by reloading a past period on purpose. From there the same pattern extends to the other pipelines. Data engineering consulting covers project work, and an offshore data engineering team covers ongoing operation.
Frequently asked questions
What is change data capture?
Change data capture, or CDC, copies each insert, update and delete from a source database to another system by reading the database’s own change log. It keeps a warehouse close to current without repeatedly querying whole tables on the source.
What happens to a CDC pipeline when a source table changes?
It depends on the tool and the change. An added column often flows through automatically. A renamed or retyped column can stop the pipeline or leave a column silently empty. Ask the application team to announce schema changes, alert on them, and keep a runbook for reloading the affected range.
Should we build CDC ourselves or use a managed tool?
A managed tool covers common sources quickly and is usually the right start. Build your own when a source is unusual, when cost at your volume is too high or when you need exact control over how changes are applied. Either way, someone has to own monitoring and reloads.
Bring the pipeline that keeps failing
Tell us the source, the warehouse and what happened the last time a load went wrong. Describe the pipeline, or see the reporting platform these pipelines fed.
This example describes engineering work our founder, Meet Vaghasia, carried out in an earlier role. The organization is not named and project figures are left out. On a call we can walk through the approach in more detail.