Skip to main content
Version: 0.1.0

QueryFlux architecture documentation

This section describes how QueryFlux is put together: why it exists, how SQL is translated, and how traffic is routed to cluster groups and individual clusters.

DocumentWhat it covers
Motivation and goalsProblem statement, goals, and how QueryFlux fits multi-engine estates.
System mapEnd-to-end query lifecycle, major crates, and component status (high level).
Query translationDialect detection, sqlglot integration, when translation runs, and schema-aware mode.
Routing and clustersRouter chain, routingFallback, cluster groups, load-balancing strategies, and queueing.
ObservabilityPrometheus metrics, Grafana dashboard, QueryFlux Studio, and the Admin REST API.
Adding engine supportChecklist for new backend engines (Rust adapters), Studio (lib/studio-engines/ manifest + catalog slots), and frontend wire protocols (e.g. Postgres wire).
Auth / authz designAuthentication and authorization design notes.

Start with Motivation and goals if you are new to the project; use System map as the single-page map of the system.

The canonical Markdown sources live under docs/ in the repository.