Skip to content

Instantly share code, notes, and snippets.

@yatsu
Created September 26, 2025 06:20
Show Gist options
  • Save yatsu/34533d8631f9d586a853e9921b54ae78 to your computer and use it in GitHub Desktop.
Save yatsu/34533d8631f9d586a853e9921b54ae78 to your computer and use it in GitHub Desktop.
Data Engineering Lifecycle - Mermaid Diagram
flowchart LR
    %% Generation (outside)
    Generation[πŸ”„ Generation]
    
    %% Core pipeline stages with single boxes
    subgraph Pipeline[ ]
        Ingestion[πŸ“₯ Ingestion]
        Storage[(πŸ’Ύ Storage)]
        Transformation[βš™οΈ Transformation]
        Serving[πŸ“Š Serving]
    end
    
    %% Serving outputs (outside right)
    Analytics[πŸ“ˆ Analytics]
    MachineLearning[πŸ€– Machine Learning]
    ReverseETL[πŸ”„ Reverse ETL]
    
    %% Flow connections
    Generation --> Ingestion
    Ingestion --> Transformation
    Transformation --> Serving
    
    %% Storage connections (foundation for all)
    Generation -.-> Storage
    Ingestion --> Storage
    Storage --> Transformation
    Storage -.-> Serving
    
    %% Serving to outputs
    Serving --> Analytics
    Serving --> MachineLearning
    Serving --> ReverseETL
    
    %% Styling for individual nodes
    classDef ingestion fill:#e8f5e8,stroke:#2e7d32,stroke-width:2px
    classDef storage fill:#fff3e0,stroke:#f57c00,stroke-width:3px
    classDef transformation fill:#e3f2fd,stroke:#1565c0,stroke-width:2px
    classDef serving fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
    classDef generation fill:#e3f2fd,stroke:#1565c0,stroke-width:2px
    classDef output fill:#fce4ec,stroke:#c2185b,stroke-width:2px
    
    class Ingestion ingestion
    class Storage storage
    class Transformation transformation
    class Serving serving
    class Generation generation
    class Analytics,MachineLearning,ReverseETL output
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment