CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Data Engineering & Analytics

πŸ“Š Data Engineering & Analytics Β· Flowchart

Nightly Batch ETL Workflow

The steps of a nightly batch pipeline with data quality gates: extract, validate, transform, load and publish, stopping safely when checks fail.

More Data Engineering & Analytics templates

Drawing diagram…

What this diagram shows

  • Quality checks run before anything reaches the reporting tables
  • Failures alert the on-call engineer and keep yesterday's data live
  • Loads swap in new tables only when everything passes

Prompt used

Nightly ETL flowchart: at 1 am extract files from SFTP and the ERP, check row counts and schemas, and if checks fail alert on-call and stop. Otherwise transform in Spark, run data quality tests (nulls, duplicates, totals match source). If tests pass, load into staging tables, swap them into production and refresh dashboards; if not, keep yesterday's tables and alert.

Mermaid code
flowchart TD
  A[1 am schedule starts] --> B[Extract ERP and SFTP files]
  B --> C{Row counts and schema OK?}
  C -->|No| X[Alert on-call and stop]
  C -->|Yes| D[Transform in Spark]
  D --> E[Run quality tests]
  E --> F{Nulls, duplicates and totals OK?}
  F -->|No| Y[Keep yesterday's tables and alert]
  F -->|Yes| G[Load staging tables]
  G --> H[Swap staging into production]
  H --> I[Refresh dashboards]
  I --> J[Post run summary to Slack]

Related templates

C4 ArchitectureProData Engineering & Analytics

Modern Data Platform Architecture

A typical modern data stack: data is loaded from apps and SaaS tools into a cloud warehouse, modelled with dbt, orchestrated with Airflow and served to BI dashboards.

Data FlowData Engineering & Analytics

Change Data Capture Pipeline

How every insert, update and delete in an operational database is streamed to the data lake and search index in near real time using change data capture.

Database ERDData Engineering & Analytics

Sales Star Schema

A classic star schema for sales analytics: one fact table of order lines surrounded by date, customer, product, store and promotion dimensions.

DeploymentProData Engineering & Analytics

Real-time Streaming Analytics Deployment

Where a real-time analytics stack runs: Kafka for events, Flink for stream processing, a real-time OLAP database and live dashboards.

State MachineData Engineering & Analytics

Data Pipeline Run States

The states of a single pipeline run in an orchestrator like Airflow, including retries, upstream failures and manual reruns.

Data FlowData Engineering & Analytics

Data Lake Zones (Bronze, Silver, Gold)

The medallion pattern for a data lake: raw data lands in bronze, is cleaned in silver, and turned into business-ready tables in gold.