Abstract
Modern organizations manage their data with a wide variety of specialized cloud database engines (e.g., Aurora, BigQuery, etc.). However, designing and managing such infrastructures is hard. Developers must consider many possible designs with non-obvious performance consequences; moreover, current software abstractions tightly couple applications to specific systems, making it difficult to change after initial deployment. In this paper, we present a technique called blueprint planning that achieves this vision. The key idea is to project data infrastructure design decisions into a unified design space (blueprints). We then systematically search over candidate blueprints using cost-based optimization, leveraging learned models to predict the utility of a blueprint on the workload. We use this technique to build BRAD, the first cloud data virtualization system. BRAD users issue queries to a single SQL interface that can be backed by multiple cloud database services. BRAD automatically selects the most suitable engine for each query, provisions and manages resources to minimize costs, and evolves the infrastructure to adapt to workload shifts. Our evaluation shows that BRAD meets user-defined performance targets and improves cost-savings by 1.6-13x compared to serverless auto-scaling or HTAP systems.
Introduction
The "Cloud Paradox" highlights a growing challenge: while specialized, high-performance database engines are more accessible than ever, the complexity of managing them has exploded. Data engineers are currently tasked with manually choosing engines, partitioning data, routing queries, and provisioning hardware—a process that is manual, error-prone, and often leads to massive overspending.
Conventional wisdom, such as always using a data warehouse for analytics, is frequently suboptimal. Factors like query selectivity, latency Service Level Objectives (SLOs), and system load constantly shift the "optimal" design. BRAD addresses this by treating infrastructure design as a cost-based optimization problem, virtualizing the cloud data management layer to allow developers to specify requirements declaratively.
The BRAD Architecture
BRAD acts as a virtualization layer for cloud data infrastructure, managing multiple specialized engines as a single logical unit. The system is composed of three primary components: a Front End Server, a Blueprint Planner, and a Blueprint Optimizer.
The Front End Server provides a unified SQL interface and handles query routing. The Blueprint Planner monitors system metrics and triggers re-optimization when workload shifts occur. The Blueprint Optimizer performs the heavy lifting of searching for new "blueprints"—complete system plans defining engine selection, hardware configurations, data placement, and routing policies.
Blueprint Planning and Performance Prediction
A core innovation in BRAD is its ability to score a blueprint without requiring the physical execution of queries on a running engine. This is achieved through a Logical Graph Neural Network (GNN) Predictor. The GNN predicts runtimes using only logical features such as SQL text, table schemas, and selectivity estimates. This allows BRAD to "imagine" how an engine would perform before it is even deployed.
To account for varying hardware and load, BRAD applies analytical adjustments. It uses Amdahl’s Law to scale predictions for different CPU counts and Queuing Theory (M/M/1 models) to account for system latency under high concurrency. The design space is explored using a greedy beam search ($k=100$) to incrementally assign queries and place tables, retaining only the most promising blueprints.
Key Results
To evaluate BRAD, the researchers introduced QuickFlix, a workload modeling a movie theater chain using a 160 GB IMDB dataset. The workload includes a mix of transactions and hundreds of analytical query templates reflecting real-world diurnal patterns.
The evaluation demonstrated that conventional designs are often inefficient. For example, replacing a dedicated Redshift cluster with an Aurora replica plus serverless Athena saved 2× in cost while improving some query latencies by 48×. Overall, BRAD achieved 1.6× to 13× cost savings compared to standard AWS serverless auto-scaling while meeting all latency SLOs. Against popular HTAP systems, BRAD was 4.6× cheaper and maintained significantly lower transaction latency.
Conclusion
BRAD demonstrates that cloud data infrastructure can be unified and automatically optimized. By abstracting the physical realization of data management into blueprints and leveraging learned performance models, BRAD enables organizations to meet performance targets at a fraction of the cost of manual management. Future work includes expanding engine support to services like Snowflake and BigQuery and addressing more complex cross-engine consistency models.
Summary updated