Abstract
Modern data ecosystems are often bifurcated into relational databases for transactional workloads and big data platforms for large-scale analytics. This separation necessitates complex "Lambda Architectures" that suffer from data staleness and high maintenance costs. This paper presents Wildfire, a hybrid transactional and analytical processing (HTAP) system developed by IBM. By embedding a high-performance columnar engine directly into Apache Spark and leveraging open data formats like Parquet, Wildfire provides ACID transactions and real-time analytics on a single, unified platform.
Introduction: The Transactional-Analytical Divide
For decades, the data management landscape has been split into two distinct camps. Relational Database Management Systems (RDBMS) excel at ACID transactions and point queries but often operate as "closed" systems that struggle with the massive scale-out required by modern machine learning and big data analytics. Conversely, Big Data platforms like Apache Spark are designed for massive, long-running analytical tasks on open data formats but historically lack the ability to handle frequent updates, deletes, or consistent transactions.
This split forces organizations to duplicate data across disparate systems, leading to complexity and "data silos." Wildfire addresses this by enabling HTAP—allowing high-volume data ingestion and complex analytical queries to coexist on the same data consistently and immediately.
System Architecture: Bridging Spark and Wildfire
Wildfire's architecture is a hybrid of Apache Spark and a specialized accelerator engine. It utilizes two types of nodes to balance transactional and analytical demands.
The system employs stateful nodes (daemons) to handle incoming transactions and store recent data on fast local storage, such as SSDs or NVRAM. Meanwhile, stateless nodes handle the bulk of analytical queries by reading older, "groomed" data from a shared file system (e.g., HDFS or S3). This separation allows the system to scale analytical capacity independently of transactional ingestion.
Data Lifecycle and Storage Management
A core innovation in Wildfire is its data lifecycle management. Transactions are initially written to local "side-logs." Once committed, a background grooming process merges these logs, cleanses the data, and converts it into the Parquet format for long-term storage in the shared file system.
This grooming process transforms messy, row-based transactional ingest into highly optimized, compressed, columnar blocks. By using Parquet, Wildfire ensures "openness," allowing other tools in the Spark ecosystem to read the data directly without proprietary barriers.
Consistency and Query Optimization
To maintain high availability in a distributed environment while providing necessary consistency, Wildfire adopts Snapshot Isolation and Last-Writer-Wins (LWW) semantics. This ensures that analytical queries see a consistent "high-water mark" of committed data without the performance penalty of global distributed locking.
Furthermore, Wildfire extends Spark’s Catalyst optimizer via a PushDownSource API. This allows Spark to offload complex operations—not just simple filters, but also joins and partial aggregations—directly into the high-performance Wildfire engine. This deep integration enables Spark to act as a powerful federation engine, joining Wildfire tables with external sources like JSON files while maximizing local execution speed.
Conclusion and Future Directions
Wildfire demonstrates that the gap between OLTP and OLAP can be bridged within the Spark ecosystem. By combining a native OLTP API with advanced push-down analytics and open storage formats, it offers a pragmatic path toward unified data processing.
Future work focuses on expanding the system's capabilities, including support for cross-shard transactions, deeper OLTP integration within the Spark API, and improved secondary indexing for point queries. As data types evolve, the team also aims to support complex nested structures like JSON and arrays directly within the Wildfire engine.
Summary updated