Camelioflux, the data platform
core-udf 1.0.0 is on Maven Central

Data pipelines made of parts you can plug in

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.

See the plugins Browse the code

orders.pipeline Try it: move the slider, unplug the function
Fetch

orders

ItemUnitsBonus
Filter

big orders

Plugin

ADD

Sums an array of numbers.

addition-udf.jar

Result

report

ItemUnitsTotal

A simplified illustration that runs in your browser. It does not call Spark.

How a pipeline runs

Data moves through four steps. This is where each one stands today.

  1. Fetch

    Read from a source into a Spark dataset. Each kind of source is a strategy; a database (JDBC) strategy is the first.

    In development
  2. Filter

    Describe conditions as JSON, including nested AND and OR groups, and turn them into Spark column expressions.

    In development
  3. Transform

    Call Spark SQL functions that are delivered as plugins and discovered with Java's ServiceLoader.

    Plugin contract released
  4. Load

    Write the result to where it is needed, with the same plugin approach as the other steps.

    Planned

Plugins

A plugin implements one small interface, SparkUdf. Put its JAR on the classpath and the function is available in Spark SQL.

  • 1.0.0 on Maven Central

    core-udf

    The plugin contract that every function implements.

  • 1.0.0 being released

    addition-udf

    ADD, the sum of an array of numbers.

  • In development

    More arithmetic

    Subtraction, multiplication and division.

<dependency>
    <groupId>com.camelioflux.plugins.udf</groupId>
    <artifactId>core-udf</artifactId>
    <version>1.0.0</version>
</dependency>

Built the way a real product would be

The point of the project is to practise good habits, so the plumbing gets as much care as the code.

One shared pipeline

Every repository includes the same GitLab CI configuration, so a fix is made once.

  • Test
  • Scan
  • Analyse
  • Document
  • Tag
  • Publish

Checks on every push

Library pipelines look at the code and at what it depends on.

  • Strict build rules
  • Static security analysis
  • Secret detection
  • OWASP Dependency-Check
  • OSV-Scanner

A readable report

Each library pipeline sends one e-mail that explains its results in plain words.

Signed releases

Versions are tagged, signed and sent to Maven Central by the pipeline.

Infrastructure as files

The CI runner is described with Docker Compose, with Kubernetes manifests and a Helm chart alongside.

  • Docker Compose
  • Kubernetes
  • Helm

Open licence

The plugin libraries are published under Apache 2.0.

Roadmap

Done

  • Plugin contract released on Maven Central
  • Shared build, scan and release pipeline
  • CI runner described as code

Building now

  • Arithmetic function plugins
  • Fetch and filter engine on Spark
  • Web interface for drawing pipelines, in React

Lokesh Mannem

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.

  • Java
  • Apache Spark
  • GitLab CI/CD
  • Docker
  • Kubernetes
  • React

My GitLab profile