orders
| Item | Units | Bonus |
|---|
CamelioFlux is an ETL platform on Apache Spark that I am building to learn. New functions arrive as small libraries, and the application finds them by itself.
| Item | Units | Bonus |
|---|
Sums an array of numbers.
addition-udf.jar
| Item | Units | Total |
|---|
A simplified illustration that runs in your browser. It does not call Spark.
Data moves through four steps. This is where each one stands today.
Read from a source into a Spark dataset. Each kind of source is a strategy; a database (JDBC) strategy is the first.
In developmentDescribe conditions as JSON, including nested AND and OR groups, and turn them into Spark column expressions.
In developmentCall Spark SQL functions that are delivered as plugins and discovered with Java's ServiceLoader.
Plugin contract releasedWrite the result to where it is needed, with the same plugin approach as the other steps.
PlannedA plugin implements one small interface, SparkUdf. Put its JAR on the classpath and the function is available in Spark SQL.
The plugin contract that every function implements.
ADD, the sum of an array of numbers.
Subtraction, multiplication and division.
<dependency>
<groupId>com.camelioflux.plugins.udf</groupId>
<artifactId>core-udf</artifactId>
<version>1.0.0</version>
</dependency>
implementation "com.camelioflux.plugins.udf:core-udf:1.0.0"
for (SparkUdf udf : ServiceLoader.load(SparkUdf.class)) {
udf.register(spark);
}
The point of the project is to practise good habits, so the plumbing gets as much care as the code.
Every repository includes the same GitLab CI configuration, so a fix is made once.
Library pipelines look at the code and at what it depends on.
Each library pipeline sends one e-mail that explains its results in plain words.
Versions are tagged, signed and sent to Maven Central by the pipeline.
The CI runner is described with Docker Compose, with Kubernetes manifests and a Helm chart alongside.
The plugin libraries are published under Apache 2.0.
I build CamelioFlux in my own time, as a long-term project for learning how a data platform is designed, tested, released and run. It is not a commercial product and is not built for client use.