For whom: administrators and technical staff who run an installation
or review it: what runs on its servers, what each part is for, and where
its data lives. You do not need any of this to write rulesRuleIt applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. or read a
dashboardDashboardEach dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more..
This section describes the stack of the Government Data platform: its
architecture as it is designed, for every application on it. Some
parts are still being rolled out; Implementation
status, at the end of this page, says which.
An installation is the set of servers where one organisation runs Government
Data. It serves that organisation alone: there is no sharing of an
installation between organisations, and no data leaves it except what the
organisation itself exports. Everything in it runs as containers on
servers the organisation controls, in its own data centre or in its own
cloud account.
An installation is made of modules. A module is a set of containers
with a manifest that says what it offers to the others, what it needs from
them, where people reach it and what its data is. The core never names a
module: it reads what each one declares. Removing a module keeps its data;
only an explicit purge deletes it, after a backup.
Module
What it is
Main technologies
quality-data
The core: sign-in, permissions, audit, settings, and the Quality Data application with its rules catalogRules catalogWhere Quality Data keeps every dataset's mapping and rules, with their history and the approved version, main.
Rust, Traefik, PostgreSQL, Dolt
lake-rustfs
The data lakeLakeQuality Data's own store, where it keeps the cuts it copies from the sources., where the copied data and the quality results are kept as tables
RustFS, Apache Iceberg
query-trino
The SQLStructured Query LanguageThe standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. engine that reads the sourcesSourceA database the organisation already runs. Quality Data reads it and never writes to it. and the lake and runs the quality rulesRuleIt applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.
Trino
orchestrator
The operator that schedulesScheduleWhat starts a dataset's cuts on its own: daily, weekly, monthly… jobs, and the job runners that send them to Trino
The orchestrator and its job runners
bi-superset
The dashboardsDashboardEach dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. of the quality indicators, read from the lake
Apache Superset, Valkey
observability
Monitoring (being built): the logs and metrics of every machine, and alerts
Grafana, Loki, Mimir, Alloy
docs
This guide, served inside the installation
A static site
Modules depend on capabilities, not on each other: the lake module
provides the capability “lake” (the S3Simple Storage ServiceAmazon's interface for storing files, which many storage systems (RustFS among them) also offer. protocol and the Iceberg catalog),
and the query module provides “SQLStructured Query LanguageThe standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. query”. Another module that provides the
same capability, with the same protocols, could take its place.
How the modules sit on an installation’s machines. An installation runs on
three:
the main server, with Traefik, the core, the orchestrator (its
operator and its job runners) and the Trino coordinator it runs and
manages, Superset with Valkey, and the
operations stack;
a Trino worker, on a machine of its own, which does the heavy query
work and needs the most memory;
the lake server, which keeps the data and needs the most disk.
Every machine runs Alloy and the agent. For big data, an installation adds
Trino workersWorkerA program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one.: nothing else changes. The figure goes through the stack one
technology at a time and lights every place each one takes part; click it
or use the arrow keys to step through, and press Space or ▶ to resume the
tour. The sizes on each machine are proposed starting points, marked *,
not measurements.
Fig 1The stack · where each technology takes partTouring · click, → or Space to stop1/19 · Traefik · 6 roles in 11 places · 1 optional
The stack · the current technology is lit · click one
1Traefik6 roles · 11 places
2Quality Data6 roles · 10 places
3OIDC4 roles · 11 places
4CA · mTLS4 roles · 9 places
5PostgreSQL4 roles · 4 places
6Dolt3 roles · 3 places
7Orchestrator6 roles · 5 places
8Trino7 roles · 13 places
9Big data5 roles · 11 places
10RustFS5 roles · 12 places
11Iceberg4 roles · 4 places
12Superset4 roles · 8 places
13Valkey2 roles · 2 places
14Grafana4 roles · 6 places
15Loki2 roles · 6 places
16Mimir2 roles · 6 places
17Alloy3 roles · 8 places
18qd · AWS5 roles · 10 places
19Compose4 roles · 7 places
What it is, and where it takes part · point at a row to light only its places
Traefik
A reverse proxy: it receives connections, terminates TLS and routes each request to the service behind it by its path. It can require and check client certificates.
Why here One door for people and machines alike: routes come from each module's manifest, so a module added or removed changes its route and nothing else; it authenticates, and leaves what a person may do to the module.
To run it
Ports :443 for people; the internal entry point for machines
In this platform · the installation's only entry point, for people and for machines, and the gate in front of the lake
in every installationThe web entry point, HTTPS on :443: the application, the guide and every module's screens, each under its own pathMain server · Traefik · edge; cable browser → Traefik :443 on the main server; people's browser
in every installationThe internal entry point: the installation's machines and modules, each with a certificate of its CAMain server · Traefik · edge; cable Trino coordinator ↔ Trino worker; cable main server → lake gate · the core's lake adapter, Loki and Mimir
in every installationForward authentication: for a module with no sign-in of its own, it asks the core for a valid session firstMain server · Traefik · edge; Main server · Quality Data · API
in every installationRoutes come from the modules' manifests, written by the agent when a module is addedMain server · Traefik · edge; Main server · qd agent
in every installationThe lake's gate: lets in only connections with a certificate of the installationLake server · Lake gate · Traefik; cable Trino worker → lake gate · S3 and Iceberg REST; cable main server → lake gate · the core's lake adapter, Loki and Mimir
optionalThe replica's gate, at the other siteLake replica · gate · Traefik; cable lake server → lake replica at another site (optional)
Quality Data
The platform's core and its package: the data quality application, plus sign-in, permissions, audit, settings and the installation's machines.
Why here Every module asks one place who a person is and what they may do, and one place writes every SQL statement a job runs.
Rust and SolidJS
Rust is a compiled language with memory safety checked by the compiler; SolidJS is a library for the browser that updates only what changed.
Why here Single fast binaries for the server and the agents, and a light web app served as static files.
To run it
Needs PostgreSQL, Dolt and the lake
In this platform · the core every module needs: its server in Rust and its web app in SolidJS
in every installationThe web app, a single-page application in SolidJS, served as static filesMain server · Quality Data · web; people's browser; cable browser → Traefik :443 on the main server
in every installationThe server, in Rust: the application's API and the internal API that modules and machines callMain server · Quality Data · API
in every installationCompiles every quality job's SQL from the rules on the catalog's main line, and signs itMain server · Quality Data · API; Main server · Dolt · rules catalog
in every installationKeeps accounts, policies, settings, the audit log and the jobs' indexMain server · Quality Data · API; Main server · PostgreSQL
in every installationReaches the lake through its adapter, the lake module's admin service: health, warehouses, replicationMain server · Quality Data · API; Lake server · Lake gate · Traefik; Lake server · RustFS · S3; cable main server → lake gate · the core's lake adapter, Loki and Mimir
in every installationNever runs a job: the orchestrator's job runners send its signed SQL to TrinoMain server · Quality Data · API; Main server · Operator
OpenID Connect
The standard sign-in protocol built on OAuth 2.0: an application sends the person to the provider and gets back who they are.
Why here People sign in once and enter every module with that session; machines and jobs get short-lived tokens instead of long-lived passwords.
To run it
Needs the core; optionally the organisation's directory or an external provider
In this platform · the core is the installation's identity provider, for people and for every module
in every installationPeople sign in once, at the core: a local account, the organisation's directory or an external providerMain server · Sign-in · OIDC; people's browser; cable browser → Traefik :443 on the main server
in every installationSuperset and Grafana are its clients: the person's roles come in the tokensMain server · Sign-in · OIDC; Main server · Superset; Main server · Grafana
in every installationRustFS's console, opened from the application's menu, signs in at the core tooMain server · Sign-in · OIDC; Lake server · RustFS · S3
in every installationA token per job, valid for that job alone, which Trino checksMain server · Sign-in · OIDC; Main server · Job runner 1; Main server · Job runner 2; Main server · Trino coordinator; Trino worker · Trino worker; cable Trino coordinator ↔ Trino worker
Mutual TLS
In mutual TLS both ends of a connection show a certificate and check the other's. A certificate authority signs them.
Why here Services trust a certificate, not where a connection comes from; the installation's own CA is shared with no one, and agents renew its certificates without hands.
To run it
Needs a time source on every machine: certificates last about a day
In this platform · every server and service proves who it is with a short-lived certificate of the installation's own authority
in every installationThe CA, made when the installation is installed, kept as files beside the coreMain server · CA · certificates
in every installationA certificate for every machine, about a day long, renewed several times a day by its agentMain server · qd agent; Trino worker · qd agent; Lake server · qd agent; Main server · CA · certificates
in every installationBoth ends of every connection between machines check each other's certificatecable Trino coordinator ↔ Trino worker; cable Trino worker → lake gate · S3 and Iceberg REST; cable main server → lake gate · the core's lake adapter, Loki and Mimir
optionalA machine added for big data joins with a one-time commandTrino worker · qd agent; cable Trino coordinator ↔ an added Trino worker (optional)
PostgreSQL
An open-source relational database.
Why here A well-known database for the platform's own data and the audit log, and a database of its own for each module that needs one.
To run it
Disk on the main server, with room for the backups taken before updates
In this platform · the platform's relational database, on the main server
in every installationAccounts, policies, settings, sources, datasets, schedules and the index of the resultsMain server · PostgreSQL; Main server · Quality Data · API
in every installationThe audit log, append-only, each entry chained to the one beforeMain server · PostgreSQL; Main server · Quality Data · API
in every installationA database and a user of its own for each module that needs one, such as Superset'sMain server · PostgreSQL; Main server · Superset
in every installationBacked up, and the backup checked, before every updateMain server · PostgreSQL; Main server · qd agent
Dolt
A SQL database that versions its data like Git: branches, commits, differences and merges of rows.
Why here Rules are written like code: drafts are branches, approvals are merges, and every cut can be traced to the exact rules it ran.
To run it
Disk small: the rules and mappings with their history
In this platform · a SQL database with version control built in: branches, commits and merges on tables
in every installationEvery rule and every dataset's mapping, with their whole historyMain server · Dolt · rules catalog
in every installationA draft is a branch; approving it merges it into mainMain server · Dolt · rules catalog; Main server · Quality Data · API; people's browser
in every installationEach cut records the catalog commit its SQL was compiled fromMain server · Dolt · rules catalog; Main server · Quality Data · API
The orchestrator
The platform's operator of jobs, and the job runners it hands them to.
Why here Running a cut is split in three roles, each doing one thing: the core writes and signs, the operator schedules and tracks, the job runners send and report. It runs Trino's coordinator, so it knows when Trino may restart.
To run it
Needs the core and Trino
In this platform · the operator fires schedules and tracks every job; it also runs and manages the Trino coordinator
in every installationThe operator fires the schedules, keeps each job's state and retries with backoffMain server · Operator
in every installationTwo job runners take jobs in parallel: each checks the signature of the core's SQL and sends it to TrinoMain server · Job runner 1; Main server · Job runner 2; Main server · Quality Data · API; Main server · Trino coordinator
in every installationRuns and manages the Trino coordinator, on the main server beside itMain server · Operator; Main server · Trino coordinator
in every installationBefore Trino restarts, it lets the running jobs finish and holds new onesMain server · Operator; Main server · Trino coordinator
in every installationJob runners are light and process no data: they send the signed SQL and report; more can be addedMain server · Job runner 1; Main server · Job runner 2
in every installationThey report only names, counts, snapshot ids and any failed stage back to the coreMain server · Job runner 1; Main server · Job runner 2; Main server · Quality Data · API
Trino
A distributed SQL query engine: a coordinator splits each query into tasks, and workers run them in parallel; connectors let it read many databases and table formats with one SQL.
Why here One engine for every job and every dashboard: it reads the organisation's databases and the lake, and it grows by adding workers.
To run it
Memory about 13 GB for Trino on a worker machine, to start*
Disk a spill disk of its own
In this platform · its coordinator runs on the main server, managed by the orchestrator; its workers run on machines of their own
in every installationThe coordinator plans each query and splits it into tasksMain server · Trino coordinator
in every installationThe worker runs the tasks: it reads the sources, writes bronze and silver, evaluates the rules into goldTrino worker · Trino worker; cable Trino coordinator ↔ Trino worker
in every installationReads the organisation's databases, read only, with each engine's own protocolTrino worker · Trino worker; Source databases · source tables; Source databases · read-only login; cable Trino worker → source databases, read only
in every installationReads a provider's batch where it was delivered, read only, into quarantineTrino worker · Trino worker; the provider's desk; cable Trino worker → the provider's delivered batch, read only
in every installationReads and writes the lake through its gate: S3 for files, Iceberg REST for tablesTrino worker · Trino worker; Lake server · Lake gate · Traefik; Lake server · Iceberg REST catalog; cable Trino worker → lake gate · S3 and Iceberg REST
in every installationA query too big for memory spills to the worker's own diskTrino worker · spill disk
in every installationAnswers Superset's dashboards, reading gold as the person who is lookingMain server · Superset; Main server · Trino coordinator; Trino worker · Trino worker
Scaling out
Adding machines that share the work, rather than a bigger machine.
Why here Trino's workers keep nothing between queries, so a worker machine is added or removed without moving any data; the coordinator spreads each query over all of them.
To run it
Each worker the same as the first: about 13 GB for Trino and a spill disk*
In this platform · when the data outgrows one worker, the installation adds Trino workers; nothing else changes
in every installationOne worker machine is enough to startTrino worker · Trino worker; Trino worker's stack
optionalAdd a worker machine: the coordinator splits each query over every worker, each on its own part of the dataTrino worker's stack; Trino worker · Trino worker; Main server · Trino coordinator; cable Trino coordinator ↔ an added Trino worker (optional)
optionalEach added worker reads and writes the lake through the same gateTrino worker · Trino worker; Lake server · Lake gate · Traefik; cable an added Trino worker → lake gate (optional)
optionalEach has its own spill disk, agent and AlloyTrino worker · spill disk; Trino worker · qd agent; Trino worker · Alloy
in every installationThe main server and the lake server stay as they areMain server · Trino coordinator; Lake server · Lake gate · Traefik
RustFS
Open-source object storage, written in Rust, that speaks the S3 protocol, and serves an Iceberg REST catalog.
Why here The S3 protocol is what Trino, Loki and Mimir already speak, and its replication with object lock gives a copy nobody can erase early.
To run it
Disk the lake server's drives: they grow with the data
In this platform · object storage that speaks S3, on the lake server, behind its gate
in every installationThe lake's tables, bronze, silver and gold, as filesLake server · RustFS · S3; Lake server · Iceberg REST catalog
in every installationLoki's logs and Mimir's metrics, each in a bucket of its ownLake server · RustFS · S3; Main server · Loki; Main server · Mimir; cable main server → lake gate · the core's lake adapter, Loki and Mimir
in every installationThe audit log's archive and the rules catalog's backupsLake server · RustFS · S3; Main server · PostgreSQL; Main server · Dolt · rules catalog
in every installationOnly connections with a certificate of the installation pass its gateLake server · Lake gate · Traefik; cable Trino worker → lake gate · S3 and Iceberg REST; cable main server → lake gate · the core's lake adapter, Loki and Mimir
optionalA replica at another site keeps every object for 30 days, and nobody can delete it soonerLake replica's stack; Lake replica · RustFS · object lock; cable lake server → lake replica at another site (optional)
Apache Iceberg
An open format for analytic tables: Parquet files plus metadata that records each version of a table as a snapshot.
Why here Each cut stays the same when read later, a bad load can be undone, and the tables are open: no engine owns them.
To run it
Needs RustFS, which serves its catalog
In this platform · the lake's open table format, with its REST catalog served by RustFS
in every installationBronze: each cut as copied from its sourceLake server · Iceberg REST catalog; Trino worker · Trino worker; cable Trino worker → lake gate · S3 and Iceberg REST
in every installationSilver: the same data with the dataset's mapping appliedLake server · Iceberg REST catalog; Trino worker · Trino worker
in every installationGold: the quality results, the system of recordLake server · Iceberg REST catalog; Trino worker · Trino worker; Main server · Superset
in every installationEvery write is a snapshot, committed at once: a cut always gives the same resultsLake server · Iceberg REST catalog
Apache Superset
An open-source application for dashboards and data exploration.
Why here Dashboards embedded in the application's pages, read through Trino as the person looking, so each one sees only what their policy allows.
To run it
Needs Trino, Valkey, and a database in PostgreSQL
In this platform · the dashboards of the quality indicators, read from gold through Trino
in every installationEach dataset's dashboard, embedded in the application's own pageMain server · Superset; people's browser; cable browser → Traefik :443 on the main server
in every installationReads gold through Trino as the person who is looking, never the lake's filesMain server · Superset; Main server · Trino coordinator; Trino worker · Trino worker; cable Trino coordinator ↔ Trino worker
in every installationSigns people in at the core, with their roles from the platform's policiesMain server · Superset; Main server · Sign-in · OIDC
in every installationIts own metadata in a database of its own in PostgreSQLMain server · Superset; Main server · PostgreSQL
Valkey
An open-source, in-memory key-value store that speaks the same protocol as Redis.
Why here A dashboard many people open at once asks Trino once; what it holds can be lost without harm.
To run it
Memory small: results kept a few minutes
In this platform · an in-memory store, Superset's alone
in every installationKeeps dashboard results for a few minutes, so many readers ask Trino onceMain server · Valkey · cache; Main server · Superset
in every installationPublishes no port: only Superset reaches it, on the module's own networkMain server · Valkey · cache
Grafana
An open-source application for dashboards and alerts over logs, metrics and SQL databases.
Why here Operations in one place, apart from the quality indicators, which Superset draws.
To run it
Needs Loki, Mimir and PostgreSQL
In this platform · dashboards and alerts for whoever runs the installation (being built)
in every installationTechnical logs of every service, read from LokiMain server · Grafana; Main server · Loki
in every installationMetrics of every server and service, read from MimirMain server · Grafana; Main server · Mimir
in every installationNever reads the core's database: the quality charts are Superset'sMain server · Grafana
in every installationOpened from the apps menu as Monitoring; signs in at the coreMain server · Grafana; Main server · Sign-in · OIDC; people's browser; cable browser → Traefik :443 on the main server
Grafana Loki
An open-source log store that indexes a few labels and keeps the lines compressed in object storage.
Why here Its data lives in the lake, so the logs are kept and copied with it.
To run it
Disk in the lake, 90 days
In this platform · the store of every service's technical logs, which carry no personal data
in every installationReceives the logs Alloy collects on every serverMain server · Loki; Main server · Alloy; Trino worker · Alloy; Lake server · Alloy
in every installationKeeps them in the lake, in a bucket of its ownMain server · Loki; Lake server · RustFS · S3; cable main server → lake gate · the core's lake adapter, Loki and Mimir
Grafana Mimir
An open-source store for metrics, compatible with Prometheus, that keeps its blocks in object storage.
Why here The same storage model as Loki: its data in the lake, a client certificate required.
To run it
Disk in the lake
In this platform · the store of every server's and service's metrics, compatible with Prometheus
in every installationReceives the metrics Alloy collects on every serverMain server · Mimir; Main server · Alloy; Trino worker · Alloy; Lake server · Alloy
in every installationKeeps them in the lake, in a bucket of its ownMain server · Mimir; Lake server · RustFS · S3; cable main server → lake gate · the core's lake adapter, Loki and Mimir
Grafana Alloy
An open-source collector: on each machine it reads logs and metrics and sends them on.
Why here One collector for both logs and metrics, so nothing reaches into a machine from outside.
To run it
Needs the machine's certificate
In this platform · on every machine, it reads the services' logs and the server's metrics and sends them on
in every installationOne on each machine, set up when the machine joinsMain server · Alloy; Trino worker · Alloy; Lake server · Alloy
in every installationPushes over HTTPS with the machine's certificateMain server · Alloy; Trino worker · Alloy; Lake server · Alloy; Main server · Loki; Main server · Mimir; cable Trino coordinator ↔ Trino worker; cable main server → lake gate · the core's lake adapter, Loki and Mimir
optionalOn an added worker tooTrino worker · Alloy
qd and AWS
The installation's agent, a system service on each machine; on the main server it installs and updates every module. Versions are published in AWS: S3, ECR, KMS and IAM Roles Anywhere.
Why here Installations pull: a version is trusted by the signature on its index, never by where it came from, and an installation opens no port for it.
To run it
Network outbound HTTPS to AWS from the main server; no inbound rule
In this platform · installs and updates every module from signed versions, pulled from AWS; nothing comes in
in every installationReads the signed version index in S3 and checks it against the key it carriesMain server · qd agent; AWS · S3 · signed index; AWS · KMS · signing key; cable qd agent → AWS · outbound HTTPS only, nothing comes in
in every installationProves who the installation is with its certificate, for one-hour credentialsMain server · qd agent; AWS · IAM Roles Anywhere; cable qd agent → AWS · outbound HTTPS only, nothing comes in
in every installationPulls the images by digest from ECRMain server · qd agent; AWS · ECR · images; cable qd agent → AWS · outbound HTTPS only, nothing comes in
in every installationBacks up and checks the backup, applies in steps, and goes back by itself if it failsMain server · qd agent; Main server · PostgreSQL; Main server · Dolt · rules catalog
in every installationOn every machine, an agent keeps its certificate renewedMain server · qd agent; Trino worker · qd agent; Lake server · qd agent
Docker Compose
A tool that starts a set of containers from one file: their images, networks, volumes and secrets.
Why here Each module is one Compose file inside its package: added, updated and removed as a whole, its images pinned by digest.
To run it
Needs Docker on every machine
In this platform · every part runs as a container; each module ships one Compose file, run by the agent
in every installationEvery module's containers on the main serverMain server's stack
in every installationTrino's worker, and the lake server's servicesTrino worker's stack; Lake server's stack
in every installationImages by digest, as the signed index lists themMain server · qd agent; AWS · ECR · images
optionalAn added worker or the replica runs the same wayTrino worker's stack; Lake replica's stack
In the room
a unit where the technology runs, in every installation
a unit where it runs only if the installation adds it: outlined and marked optional
a unit where it takes no part
red, bold, with a dot: the resource this machine uses most, the one that limits it first
on each machine's top: Disk, CPU and RAM, each a proposed starting point, marked *; the table below says what each comes from
a cable it speaks on, and its plugs, in the strong ink; an optional one outlined in amber. A cable stands for every connection between its two machines
a connection opened, from the side that opens it to the one that listens
Lines by group
People · every line at people's desk or the provider's
Updates · the agent's line to AWS, opened from the installation only
Lake · every other line at a lake machine: Trino's workers and the main server to the lake's gate, the lake to its replica
Trino · the rest: the coordinator on the main server and Trino's workers
Machines · what each needs to run · * proposed starting points, not measurements
Role
Machines
Disk
CPU
RAM
Limits first
Size driven by
Ports
Main server
1
500 GB SSD*PostgreSQL with its audit log, Dolt, the modules' volumes, the container images and the backups taken before each update; the lake's data is on the lake server
8 vCPU*every service of the core, the orchestrator, Superset and the observability stores; the heavy query work runs on Trino's workers, not here
32 GB*the same services held in memory at once, among them PostgreSQL, Superset and the Trino coordinator, which plans queries but runs none of their work
RAMit holds the most services in memory at once; none of them computes a query's work
how many people and modules use it at once
:443 from people's network; outbound HTTPS to AWS
Trino worker
1 to start; add more for big data
100 GB SSD*Trino's spill disk, for a query too big for memory, and the container images; it holds nothing once a query ends
8 vCPU*a worker reads and evaluates in parallel: more cores, more of a query at once
16 GB*about 13 GB for Trino, the size of the single-node starting tier, split between quality jobs and dashboard queries, plus the system
RAMa query runs in a worker's memory and spills to its disk past it: Trino's memory is what limits a job's size
the size of the largest jobs and how many run at once
none from people; out to the source databases' own ports
Lake server
1
4 × 4 TB*bronze, silver and gold, the logs and metrics Loki and Mimir keep there, and the old versions of objects; it grows with the data copied from the sources, so size it from them
4 vCPU*RustFS, its catalog and its gate: the queries' work runs on Trino's workers
16 GB*RustFS, its catalog and its gate, Alloy and the agent
Diskwhat grows is the lake: every cut copied into bronze and silver, and its results in gold
how much data is copied from the sources, and for how long it is kept
none from people
Lake replica · optional
1, at another site
as the lake*at least the lake's data, plus the versions it keeps locked for 30 days; large, slow disks are enough
2 vCPU*one RustFS and its gate
8 GB*one RustFS and its gate
Diskit holds every object of the lake and its locked versions
the lake's size, plus 30 days of locked versions
from the lake server only
What an administrator provides
A private network between the machines
only Traefik's :443 on the main server is reached by people
Outbound HTTPS from the main server
to AWS's public endpoints for S3, ECR and IAM Roles Anywhere
A time source
synchronised clocks on every machine: certificates last about a day
Read-only logins to the source databases
one per source, kept as the core's secrets
Cables · the technologies that speak on each
People
browser → Traefik :443 on the main server
Traefik, Quality Data, OIDC, Superset, Grafana
Trino worker → the provider's delivered batch, read only
Trino
Updates
qd agent → AWS · outbound HTTPS only, nothing comes in
qd · AWS
Lake
Trino worker → lake gate · S3 and Iceberg REST
Traefik, CA · mTLS, Trino, RustFS, Iceberg
an added Trino worker → lake gate (optional)
optional: Big data
main server → lake gate · the core's lake adapter, Loki and Mimir
Traefik, Quality Data, CA · mTLS, RustFS, Loki, Mimir, Alloy
lake server → lake replica at another site (optional)
optional: Traefik, RustFS
Trino
Trino coordinator ↔ Trino worker
Traefik, OIDC, CA · mTLS, Trino, Superset, Alloy
Trino worker → source databases, read only
Trino
Trino coordinator ↔ an added Trino worker (optional)
optional: CA · mTLS, Big data
Superset → Trino coordinator
both on the main server; the coordinator hands the work to the worker · not drawn as a cable
orchestrator's job runners → the core, and → the Trino coordinator
all on the main server, through Traefik's internal entry point · not drawn as a cable
Alloy and the agent on each machine → the main server
over the machine's own cable to it · not drawn as a cable
Three machines run an installation: the main server, with the core, the orchestrator and the Trino coordinator it manages, Superset with Valkey and the operations stack; a Trino worker, which holds the memory; and the lake server, which holds the data. Every machine runs Alloy and the qd agent. For big data, the installation adds Trino workers: the second one is drawn faint and marked optional, and so is the lake replica at another site. Every size on a machine's top is a proposed starting point, marked *, not a measurement: size a real installation from its data. A technology lights every unit where it runs and every cable it speaks on; where it runs only on an optional machine the unit is outlined in amber and marked optional. The room's sizes are not to scale.
A quality cutCutThe dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. goes this way: the operator fires it on
its scheduleScheduleWhat starts a dataset's cuts on its own: daily, weekly, monthly…; the core compiles the cut’s statements from the rulesRuleIt applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on the
catalog’s main line and signs them; a job runner of the orchestrator fetches them, checks
the signature and sends each one to Trino with a token that is valid for that
job only; Trino reads the sourceSourceA database the organisation already runs. Quality Data reads it and never writes to it., writes the copy to bronze, derives
silver, evaluates the rules and writes the results to gold. The job
runner reports only names and counts back to the core.
The simulation shows the same figure on a page of its
own, wider, with room to read each technology’s part.
Data:PostgreSQL, the platform’s database;
Dolt, the versioned rules catalogRules catalogWhere Quality Data keeps every dataset's mapping and rules, with their history and the approved version, main.; RustFS, the
lakeLakeQuality Data's own store, where it keeps the cuts it copies from the sources.’s storage; Apache Iceberg, the lake’s table
format.
Processing:Trino, the one SQLStructured Query LanguageThe standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. engine; the
orchestrator and its job runners.
The current release runs part of this architecture. These parts are still
being rolled out:
Trino as the one engine. Trino is replacing the engine that runs
extraction and rulesRuleIt applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. in the current release. For a while both run side
by side on the same cutsCutThe dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. and their results are compared; Trino takes
over once they agree.
Job runners apart from the operator. The orchestrator becomes the
operator that schedulesScheduleWhat starts a dataset's cuts on its own: daily, weekly, monthly… and tracks jobs, and its job runners take each
job, send its signed SQLStructured Query LanguageThe standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. to Trino and report. They are light and process
no data: two run jobs in parallel on the main server, and more can be
added.
Gold as the record of results. The quality results move to the
lakeLakeQuality Data's own store, where it keeps the cuts it copies from the sources.’s gold tables. Until then the platform’s database keeps them.
Apache Superset and Valkey. Superset ships as a module, with its
connection to Trino made from the query module’s endpoint; the indicator
dashboardsDashboardEach dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. it will carry are designed and not yet shipped. Until they
are, the application draws its own charts.
Monitoring. The observability module, Grafana with Loki, Mimir and
Alloy on every machine, is being built.