Kütüphane / Veri Senkronizasyonu ve ETL
Veri Senkronizasyonu ve ETL
Geçmiş API verilerini kontrol noktalı, yeniden başlatılabilir toplu işlemlerle Postgres'e aktar
İsteğe bağlı çalışır; API'deki büyük geçmiş veri kümelerini toplu halde Postgres'e aktarır ve bir kontrol noktası kaydeder, böylece durdurulan veya başarısız olan çalışma kaldığı yerden devam eder.
Ne yapar
## Historical Data Backfill System Backfills large historical datasets in resumable batches with persistent progress tracking. If the run stops or fails, the next execution continues exactly from the last successful checkpoint. ### All nodes (1-line each) 1. Manual Trigger – Starts or resumes the backfill job on demand. 2. Postgres - Ensure Progress Table – Creates the backfill_progress table if it does not exist. 3. Code - Load Config & Checkpoint – Loads job settings and the last successful checkpoint from the progress table. 4. IF - Job Already Complete? – Skips processing when the backfill has already finished. 5. HTTP Request - Fetch Batch – Retrieves the next historical batch using the current checkpoint cursor/date. 6. Code - Normalize & Validate Batch – Transforms the batch records and decides the next checkpoint value. 7. IF - Batch Has Records? – Continues only when the current batch returned data. 8. Postgres - Upsert Batch – Writes the current batch into the target table with conflict handling. 9. Postgres - Save Checkpoint – Persists the new checkpoint so the job can resume later. 10. Code - Update Running Stats – Increments counters and prepares the next request parameters. 11. IF - More Batches Left? – Decides whether another batch should be fetched. 12. Wait - Between Batches – Adds a short delay to avoid overloading the source API. 13. Code - Finalize Job – Marks the job as completed and returns the final summary. 14. NoOp - End – Terminates the workflow cleanly.
Adımlar
- Manual Trigger
- Postgres - Ensure Progress Table
- Code - Load Config & Checkpoint
- IF - Job Already Complete?
- HTTP Request - Fetch Batch
- Code - Normalize & Validate Batch
- IF - Batch Has Records?
- Postgres - Upsert Batch
- Postgres - Save Checkpoint
- Code - Update Running Stats
- IF - More Batches Left?
- Wait - Between Batches
- Code - Finalize Job
- NoOp - End
Toplam 17 adım.
Benzer otomasyonlar
Veri Senkronizasyonu ve ETLPostgres sorgu sonuçlarını elektronik tablo dosyasına aktarma5 adımVeri Senkronizasyonu ve ETLZamanlanmış Olarak Postgres'e Veri Aktarma3 adımVeri Senkronizasyonu ve ETLVerileri zamanlanmış olarak Postgres'e yükleme4 adımVeri Senkronizasyonu ve ETLSupabase Postgres kayıtlarını Gemini ile doldur6 adım