Bibliothek / Datensynchronisierung & ETL
Datensynchronisierung & ETL
Kundendaten aus dem Lager von Postgres nach HubSpot und Segment synchronisieren
Hasht PostgreSQL-Zeilen und überträgt nur geänderte Datensätze an HubSpot-Kontakte und Segment-identify-Aufrufe, verfolgt den Synchronisationsstatus und meldet die Ergebnisse an Slack.
Was sie bewirkt
## Reverse ETL: Warehouse to SaaS Applications ### How it works Continuously pushes data from your warehouse (PostgreSQL) into SaaS tools so sales, marketing and support work with the same numbers as analytics. 1. Detect changes: every row is hashed. Only rows whose hash differs from the last successful sync are sent, so unchanged data never costs an API call. 2. Map & deliver: warehouse columns are mapped to each destination's fields (configurable JSON). HubSpot gets a batch upsert of contacts, Segment gets an identify batch (and forwards to your other tools). 3. Track state: each row is saved as synced, failed (exponential backoff) or dead (attempts exhausted, or invalid email until the data changes). 4. Stay safe: a run lock prevents overlapping runs, batches loop until the warehouse is drained, and Slack is told only when something needs attention. Upserts are idempotent, so retries never create duplicates. ### Setup steps - Add Postgres credentials to all Postgres nodes, then run the manual setup once. - Add credentials: HubSpot via Header Auth (Authorization: Bearer ), Segment via Basic Auth (write key as username, empty password). - Create the custom HubSpot properties used in the mapping (for example lifetime_value, churn_risk). - Edit Set Sync Config: warehouse table, key and email columns, enabled destinations, the two field mappings, batch size, retries, Slack webhook. Defaults sync the demo table. - Activate the workflow. Run it any time with POST /retl-sync-now. ### Layout 1 Setup 2-4 Config, lock, detect and deliver 5-6 State, loop, alert
Die Schritte
- Manual Trigger - Run Setup Once
- Postgres - Create Reverse ETL Tables
- Schedule Trigger - Every 10 Minutes
- Webhook - Sync Now
- Set Sync Config
- Code - Validate Config & Build Queries
- Config Valid?
- HTTP - Slack Config Error Alert
- Postgres - Acquire Sync Lock
- Lock Acquired?
- Postgres - Detect Changed Records
- Changes To Push?
- Code - Plan Destination Requests
- Postgres - Release Lock (No Changes)
Insgesamt 28 Schritte.
Ähnliche Automatisierungen
Berichte, Analysen & DashboardsEin Ereignis in Segment tracken3 SchritteMonitoring, Betrieb & StörungenEin Ereignis in Segment tracken2 SchritteCRM & VertriebspipelineCustomer.io-Kunden anlegen und einem Segment hinzufügen3 SchritteCRM & VertriebspipelineEinen Kunden in Customer.io zu einem Segment hinzufügen4 Schritte