Skills Development Hex Reference Architecture Guide

Hex Reference Architecture Guide

v20260423
hex-reference-architecture
This guide details the recommended reference architecture and project structure for integrating with the Hex platform. It covers best practices for designing robust data pipelines, including components like orchestration layers (Airflow, Dagster), API clients, and standardized project layouts. Use this when starting new Hex integrations or reviewing complex data workflows.
Get Skill
346 downloads
Overview

Hex Reference Architecture

Architecture

┌────────────────────────────────────────┐
│          Orchestration Layer            │
│  (Airflow, Dagster, GitHub Actions,    │
│   Cron, Custom API)                    │
├────────────────────────────────────────┤
│           Hex API Client               │
│  (Run, Poll, Cancel, List)             │
├────────────────────────────────────────┤
│            Hex Platform                │
│  ┌──────────┐  ┌───────────────────┐  │
│  │ Projects  │  │ Data Connections  │  │
│  │ (SQL,     │  │ (Snowflake,      │  │
│  │  Python,  │  │  BigQuery,       │  │
│  │  R)       │  │  Postgres, etc.) │  │
│  └──────────┘  └───────────────────┘  │
└────────────────────────────────────────┘

Project Structure

hex-orchestrator/
├── src/hex/
│   ├── client.ts         # API client
│   ├── orchestrator.ts   # Pipeline runner
│   ├── scheduler.ts      # Cron-based triggers
│   └── types.ts          # TypeScript interfaces
├── src/notify/
│   └── slack.ts          # Completion notifications
├── tests/
├── config/
│   └── pipelines.json    # Pipeline definitions
└── .env.example

Integration Patterns

PatternWhenTool
CI-triggered refreshOn deployGitHub Actions
Scheduled pipelineDaily/weekly reportsCron, Airflow
On-demand runUser-triggered analysisAPI endpoint
Orchestrated pipelineMulti-step ETLAirflow, Dagster

Resources

Info
Category Development
Name hex-reference-architecture
Version v20260423
Size 2.81KB
Updated At 2026-04-28
Language