Skip to content

Technology stack

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 rulesRule It 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 dashboardDashboard Each 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 catalog Where 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 lakeLake Quality 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 Language The standard language for querying databases; the platform turns each rule into SQL for the engine that runs it. engine that reads the sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it. and the lake and runs the quality rulesRule It 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 schedulesSchedule What 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 dashboardsDashboard Each 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 Service Amazon'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 Language The 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 workersWorker A 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.

ORGANISATIONpeople and their databasesPeople · browserGovernment DataQuality Data · rulesSuperset dashboardsGrafana · operationsthis guideoptionalread-only loginoptionalPUBLISHERoutside the installationsource tablesoptionalSource databasesthe organisation's ownIAM Roles AnywhereoptionalKMS · signing keyoptionalECR · imagesoptionalS3 · signed indexoptionalAWSpublished versions · read onlyINSTALLATION · the organisation's serversprivate network · mutual TLS · only :443 faces peopleDisk500 GB SSD*CPU8 vCPU*RAM32 GB*Main serverthe core, the orchestrator, indicators, operationsTraefik · edgeoptionalQuality Data · weboptionalQuality Data · APIoptionalSign-in · OIDCoptionalCA · certificatesoptionalPostgreSQLaccounts · auditjobs · modules' DBsoptionalDolt · rules catalogoptionalOperatoroptionalJob runner 1optionalJob runner 2optionalTrino coordinatorrun and managedby the orchestratoroptionalGrafanaoptionalLokioptionalMimiroptionalAlloyoptionalqd agentoptionalValkey · cacheoptionalSupersetoptionalAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Trino workera machine of its ownPROVIDERa third party, outside the organisationAlloyoptionalqd agentoptionalspill diskoptionalTrino workerreads the sourceswrites the lakeoptionalDisk100 GB SSD*CPU8 vCPU*RAM16 GB*Provider · a third partyTrino worker · optionaladd more for big dataA providerdelivers a batchwhere agreedsees nothing backoptionalANOTHER SITE · optionala copy of the lake, away from itAlloyoptionalqd agentoptionalIceberg REST catalogbronze · silvergold · resultsoptionalRustFS · S3optionalDisk4 × 4 TB*CPU4 vCPU*RAM16 GB*Lake gate · TraefikoptionalLake servera machine of its owngate · TraefikoptionalRustFS · object lockoptionalDiskas the lake*CPU2 vCPU*RAM8 GB*Lake replica · optionalanother site

The stack · the current technology is lit · click one

  1. 1Traefik6 roles · 11 places
  2. 2Quality Data6 roles · 10 places
  3. 3OIDC4 roles · 11 places
  4. 4CA · mTLS4 roles · 9 places
  5. 5PostgreSQL4 roles · 4 places
  6. 6Dolt3 roles · 3 places
  7. 7Orchestrator6 roles · 5 places
  8. 8Trino7 roles · 13 places
  9. 9Big data5 roles · 11 places
  10. 10RustFS5 roles · 12 places
  11. 11Iceberg4 roles · 4 places
  12. 12Superset4 roles · 8 places
  13. 13Valkey2 roles · 2 places
  14. 14Grafana4 roles · 6 places
  15. 15Loki2 roles · 6 places
  16. 16Mimir2 roles · 6 places
  17. 17Alloy3 roles · 8 places
  18. 18qd · AWS5 roles · 10 places
  19. 19Compose4 roles · 7 places

What it is, and where it takes part · point at a row to light only its places

  1. 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
  2. In this platform · the installation's only entry point, for people and for machines, and the gate in front of the lake
  3. 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
  4. 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
  5. 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
  6. in every installationRoutes come from the modules' manifests, written by the agent when a module is addedMain server · Traefik · edge; Main server · qd agent
  7. 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
  8. optionalThe replica's gate, at the other siteLake replica · gate · Traefik; cable lake server → lake replica at another site (optional)

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

RoleMachinesDiskCPURAMLimits firstSize driven byPorts
Main server1500 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 server8 vCPU*every service of the core, the orchestrator, Superset and the observability stores; the heavy query work runs on Trino's workers, not here32 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 workRAMit holds the most services in memory at once; none of them computes a query's workhow many people and modules use it at once:443 from people's network; outbound HTTPS to AWS
Trino worker1 to start; add more for big data100 GB SSD*Trino's spill disk, for a query too big for memory, and the container images; it holds nothing once a query ends8 vCPU*a worker reads and evaluates in parallel: more cores, more of a query at once16 GB*about 13 GB for Trino, the size of the single-node starting tier, split between quality jobs and dashboard queries, plus the systemRAMa query runs in a worker's memory and spills to its disk past it: Trino's memory is what limits a job's sizethe size of the largest jobs and how many run at oncenone from people; out to the source databases' own ports
Lake server14 × 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 them4 vCPU*RustFS, its catalog and its gate: the queries' work runs on Trino's workers16 GB*RustFS, its catalog and its gate, Alloy and the agentDiskwhat grows is the lake: every cut copied into bronze and silver, and its results in goldhow much data is copied from the sources, and for how long it is keptnone from people
Lake replica · optional1, at another siteas the lake*at least the lake's data, plus the versions it keeps locked for 30 days; large, slow disks are enough2 vCPU*one RustFS and its gate8 GB*one RustFS and its gateDiskit holds every object of the lake and its locked versionsthe lake's size, plus 30 days of locked versionsfrom the lake server only

What an administrator provides

Cables · the technologies that speak on each

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 cutCut The 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 scheduleSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…; the core compiles the cut’s statements from the rulesRule It 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 sourceSource A 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.

Each page says what the technology does in Government Data, which module brings it, how it talks to the rest and where its data lives.

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 rulesRule It 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 cutsCut The 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 schedulesSchedule What 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 Language The 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 lakeLake Quality 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 dashboardsDashboard Each 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.

Government Data · Guide v0.8.1