Skip to content

Apache DataFusion SQL Query Engine

ARROW-12329: [Rust] [Ballista] Add Ballista README

Andy Grove5f547e2f2d4d
diff --git a/rust/README.md b/rust/README.md
index 7e435203a6..7fdef29bcd 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -31,6 +31,7 @@ This part of the Arrow project is divided in 4 main components:
|Parquet | Parquet support | [(README)](parquet/README.md) |
|Arrow-flight | Arrow data between processes | [(README)](arrow-flight/README.md) |
|DataFusion | In-memory query engine with SQL support | [(README)](datafusion/README.md) |
+|Ballista | Distributed query execution | [(README)](ballista/README.md) |
Independently, they support a vast array of functionality for in-memory computations.
diff --git a/rust/ballista/README.md b/rust/ballista/README.md
new file mode 100644
index 0000000000..288386f016
--- /dev/null
+++ b/rust/ballista/README.md
@@ -0,0 +1,64 @@
+<!---
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+# Ballista: Distributed Compute with Apache Arrow
+
+Ballista is a distributed compute platform primarily implemented in Rust, and powered by Apache Arrow. It is built
+on an architecture that allows other programming languages (such as Python, C++, and Java) to be supported as
+first-class citizens without paying a penalty for serialization costs.
+
+The foundational technologies in Ballista are:
+
+- [Apache Arrow](https://arrow.apache.org/) memory model and compute kernels for efficient processing of data.
+- [Apache Arrow Flight Protocol](https://arrow.apache.org/blog/2019/10/13/introducing-arrow-flight/) for efficient
+ data transfer between processes.
+- [Google Protocol Buffers](https://developers.google.com/protocol-buffers) for serializing query plans.
+- [Docker](https://www.docker.com/) for packaging up executors along with user-defined code.
+
+Ballista can be deployed as a standalone cluster and also supports [Kubernetes](https://kubernetes.io/). In either
+case, the scheduler can be configured to use [etcd](https://etcd.io/) as a backing store to (eventually) provide
+redundancy in the case of a scheduler failing.
+
+# How does this compare to Apache Spark?
+
+Although Ballista is largely inspired by Apache Spark, there are some key differences.
+
+- The choice of Rust as the main execution language means that memory usage is deterministic and avoids the overhead of
+ GC pauses.
+- Ballista is designed from the ground up to use columnar data, enabling a number of efficiencies such as vectorized
+ processing (SIMD and GPU) and efficient compression. Although Spark does have some columnar support, it is still
+ largely row-based today.
+- The combination of Rust and Arrow provides excellent memory efficiency and memory usage can be 5x - 10x lower than
+ Apache Spark in some cases, which means that more processing can fit on a single node, reducing the overhead of
+ distributed compute.
+- The use of Apache Arrow as the memory model and network protocol means that data can be exchanged between executors
+ in any programming language with minimal serialization overhead.
+
+# Status
+
+The Ballista project was donated to Apache Arrow in April 2021 and work is underway to integrate more tightly with
+DataFusion.
+
+One of the goals is to implement a common scheduler that can seamlessly scale queries across cores in DataFusion and
+across nodes in Ballista.
+
+Ballista issues are tracked in ASF JIRA [here](https://issues.apache.org/jira/issues/?jql=project%20%3D%20ARROW%20AND%20component%20%3D%20%22Rust%20-%20Ballista%22)
+
+
+