# hpcc-systems/hpcc-platform architecture

> Architecture diagram of the GitHub repository hpcc-systems/hpcc-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hpcc-systems/hpcc-platform
- Repository: https://github.com/hpcc-systems/hpcc-platform

## Overview

HPCC Systems is a distributed data-processing platform: users author ECL, submit work, and run it on Thor for large-scale transformation or Roxie for concurrent online queries; ESP exposes ECL queries through service protocols. The repository also includes work-unit and metadata services, file movement, environment configuration and deployment, and web-based operational tools. The README establishes the product-level workflow; source-index references and sampled excerpts support only selected internal links, so other relationships are intentionally not inferred.

Main entry points: [`thorlcr/master/thgraphmanager.cpp`](https://github.com/hpcc-systems/hpcc-platform/blob/master/thorlcr/master/thgraphmanager.cpp) (Thor cluster), [`roxie/ccd/ccdquery.cpp`](https://github.com/hpcc-systems/hpcc-platform/blob/master/roxie/ccd/ccdquery.cpp) (Roxie query), [`common/workunit/workunit.hpp`](https://github.com/hpcc-systems/hpcc-platform/blob/master/common/workunit/workunit.hpp) (Work units), [`ecl/eclcc`](https://github.com/hpcc-systems/hpcc-platform/tree/master/ecl/eclcc) (ECL compiler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["ECL authoring"]
  node_ecl["ECL language"]
  node_compiler["ECL compiler"]
  node_ide["ECL IDE"]
end

subgraph group_execution["Query execution"]
  node_thor["Thor cluster<br/>[thgraphmanager.cpp]"]
  node_roxie["Roxie query<br/>[ccdquery.cpp]"]
  node_sql_engine["SQL engine<br/>[engine.cpp]"]
end

subgraph group_middleware["Platform middleware"]
  node_workunits[("Work units<br/>[workunit.hpp]")]
  node_environment["Environment model<br/>[environment.hpp]"]
  node_dali[("Dali metadata<br/>[dadfs.hpp]")]
  node_thor_helpers["Thor runtime helpers"]
  node_file_transfer["File transfer<br/>[filecopy.cpp]"]
end

subgraph group_services["Services and operations"]
  node_esp["ESP services"]
  node_web_ui["ECL Watch UI<br/>[routes.tsx]"]
  node_eclplus["ECL command client<br/>[main.cpp]"]
  node_monitoring["Monitoring"]
end

subgraph group_management["Environment management"]
  node_config_model["Config model"]
  node_deployment["Cluster deployment"]
  node_env_tools["Environment tools"]
end

node_ecl_user(("ECL developer"))

node_ecl_user -->|"authors"| node_ecl
node_ecl -->|"compiles with"| node_compiler
node_ecl_user -->|"develops in"| node_ide
node_ide -->|"monitors jobs"| node_workunits
node_compiler -.->|"targets processing"| node_thor
node_compiler -.->|"targets queries"| node_roxie
node_ecl_user -->|"runs data jobs"| node_thor
node_ecl_user -->|"requests queries"| node_roxie
node_eclplus -->|"uses"| node_workunits
node_thor -->|"manages jobs"| node_workunits
node_thor -->|"uses metadata"| node_dali
node_roxie -->|"uses helpers"| node_thor_helpers
node_esp -->|"serves ECL queries"| node_roxie
node_ecl_user -->|"accesses queries"| node_esp
node_sql_engine -->|"resolves files"| node_dali
node_deployment -->|"reads environment"| node_environment
node_deployment -.->|"deploys configuration"| node_config_model
node_web_ui -.->|"views work units"| node_workunits
node_env_tools -.->|"manages environment"| node_environment

click node_ecl "https://github.com/hpcc-systems/hpcc-platform/tree/master/ecl"
click node_compiler "https://github.com/hpcc-systems/hpcc-platform/tree/master/ecl/eclcc"
click node_ide "https://github.com/hpcc-systems/hpcc-platform/tree/master/clienttools/IDEPlugins"
click node_thor "https://github.com/hpcc-systems/hpcc-platform/blob/master/thorlcr/master/thgraphmanager.cpp"
click node_roxie "https://github.com/hpcc-systems/hpcc-platform/blob/master/roxie/ccd/ccdquery.cpp"
click node_sql_engine "https://github.com/hpcc-systems/hpcc-platform/blob/master/esp/services/ws_sql2/engine.cpp"
click node_workunits "https://github.com/hpcc-systems/hpcc-platform/blob/master/common/workunit/workunit.hpp"
click node_environment "https://github.com/hpcc-systems/hpcc-platform/blob/master/common/environment/environment.hpp"
click node_dali "https://github.com/hpcc-systems/hpcc-platform/blob/master/dali/base/dadfs.hpp"
click node_thor_helpers "https://github.com/hpcc-systems/hpcc-platform/tree/master/common/thorhelper"
click node_file_transfer "https://github.com/hpcc-systems/hpcc-platform/blob/master/dali/ft/filecopy.cpp"
click node_esp "https://github.com/hpcc-systems/hpcc-platform/tree/master/esp"
click node_web_ui "https://github.com/hpcc-systems/hpcc-platform/blob/master/esp/src/src-react/routes.tsx"
click node_eclplus "https://github.com/hpcc-systems/hpcc-platform/blob/master/ecl/eclplus/main.cpp"
click node_monitoring "https://github.com/hpcc-systems/hpcc-platform/tree/master/common/monitoring"
click node_config_model "https://github.com/hpcc-systems/hpcc-platform/tree/master/deployment/configenv/xml_jlibpt"
click node_deployment "https://github.com/hpcc-systems/hpcc-platform/blob/master/deployment/deploy/DeploymentEngine.cpp"
click node_env_tools "https://github.com/hpcc-systems/hpcc-platform/tree/master/configuration/cli"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ecl,node_compiler,node_ide toneBlue
class node_thor,node_roxie,node_sql_engine toneAmber
class node_workunits,node_environment,node_dali,node_thor_helpers,node_file_transfer toneMint
class node_esp,node_web_ui,node_eclplus,node_monitoring toneRose
class node_config_model,node_deployment,node_env_tools,node_ecl_user toneIndigo
```

## Components

### ECL authoring

- [ECL language](https://github.com/hpcc-systems/hpcc-platform/tree/master/ecl): `ecl`
- [ECL compiler](https://github.com/hpcc-systems/hpcc-platform/tree/master/ecl/eclcc): `ecl/eclcc`
- [ECL IDE](https://github.com/hpcc-systems/hpcc-platform/tree/master/clienttools/IDEPlugins): `clienttools/IDEPlugins`

### Query execution

- [Thor cluster](https://github.com/hpcc-systems/hpcc-platform/blob/master/thorlcr/master/thgraphmanager.cpp): `thorlcr/master/thgraphmanager.cpp`
- [Roxie query](https://github.com/hpcc-systems/hpcc-platform/blob/master/roxie/ccd/ccdquery.cpp): `roxie/ccd/ccdquery.cpp`
- [SQL engine](https://github.com/hpcc-systems/hpcc-platform/blob/master/esp/services/ws_sql2/engine.cpp): `esp/services/ws_sql2/engine.cpp`

### Platform middleware

- [Work units](https://github.com/hpcc-systems/hpcc-platform/blob/master/common/workunit/workunit.hpp): `common/workunit/workunit.hpp`
- [Environment model](https://github.com/hpcc-systems/hpcc-platform/blob/master/common/environment/environment.hpp): `common/environment/environment.hpp`
- [Dali metadata](https://github.com/hpcc-systems/hpcc-platform/blob/master/dali/base/dadfs.hpp): `dali/base/dadfs.hpp`
- [Thor runtime helpers](https://github.com/hpcc-systems/hpcc-platform/tree/master/common/thorhelper): `common/thorhelper`
- [File transfer](https://github.com/hpcc-systems/hpcc-platform/blob/master/dali/ft/filecopy.cpp): `dali/ft/filecopy.cpp`

### Services and operations

- [ESP services](https://github.com/hpcc-systems/hpcc-platform/tree/master/esp): `esp`
- [ECL Watch UI](https://github.com/hpcc-systems/hpcc-platform/blob/master/esp/src/src-react/routes.tsx): `esp/src/src-react/routes.tsx`
- [ECL command client](https://github.com/hpcc-systems/hpcc-platform/blob/master/ecl/eclplus/main.cpp): `ecl/eclplus/main.cpp`
- [Monitoring](https://github.com/hpcc-systems/hpcc-platform/tree/master/common/monitoring): `common/monitoring`

### Environment management

- [Config model](https://github.com/hpcc-systems/hpcc-platform/tree/master/deployment/configenv/xml_jlibpt): `deployment/configenv/xml_jlibpt`
- [Cluster deployment](https://github.com/hpcc-systems/hpcc-platform/blob/master/deployment/deploy/DeploymentEngine.cpp): `deployment/deploy/DeploymentEngine.cpp`
- [Environment tools](https://github.com/hpcc-systems/hpcc-platform/tree/master/configuration/cli): `configuration/cli`

### Other components

- **ECL developer**

## Connections

- ECL developer → ECL language: authors (evidence: `README.md`)
- ECL language → ECL compiler: compiles with (evidence: `README.md`)
- ECL developer → ECL IDE: develops in (evidence: `README.md`)
- ECL IDE → Work units: monitors jobs (evidence: `README.md`)
- ECL compiler → Thor cluster: targets processing
- ECL compiler → Roxie query: targets queries
- ECL developer → Thor cluster: runs data jobs (evidence: `README.md`)
- ECL developer → Roxie query: requests queries (evidence: `README.md`)
- ECL command client → Work units: uses (evidence: `ecl/eclplus/main.cpp`)
- Thor cluster → Work units: manages jobs (evidence: `thorlcr/master/thgraphmanager.cpp`)
- Thor cluster → Dali metadata: uses metadata (evidence: `thorlcr/master/thgraphmanager.cpp`)
- Roxie query → Thor runtime helpers: uses helpers (evidence: `roxie/ccd/ccdquery.cpp`)
- ESP services → Roxie query: serves ECL queries (evidence: `README.md`)
- ECL developer → ESP services: accesses queries (evidence: `README.md`)
- SQL engine → Dali metadata: resolves files (evidence: `esp/services/ws_sql2/engine.cpp`)
- Cluster deployment → Environment model: reads environment (evidence: `deployment/deploy/DeploymentEngine.cpp`)
- Cluster deployment → Config model: deploys configuration
- ECL Watch UI → Work units: views work units
- Environment tools → Environment model: manages environment
