Skip to content

Fluxtion examples


A practical, copy‑and‑run catalog of small examples that show how to build high‑performance, type‑safe, event‑driven DataFlows with Fluxtion.

Fluxtion example repo

Fluxtion lets you compose real‑time streaming logic as declarative DataFlows. You connect sources, transformations, joins, windows, and sinks into an efficient runtime graph and push events through it with minimal overhead.

Why these examples exist

  • Give you a fast feel for the DataFlow API (minutes, not hours)
  • Demonstrate the core patterns you’ll actually use: map/filter, groupBy, joins, windows, triggers, sinks
  • Provide copy‑pasteable snippets you can adapt into your own project
  • Offer a gentle path from a tiny hello‑world to feature‑focused “cookbook” samples

Who this is for

  • Java developers building event processing, streaming analytics, or stateful, low‑latency services
  • Anyone exploring whether Fluxtion fits their problem (e.g., replacing ad‑hoc listeners with a clear dataflow)

If you’re new to Fluxtion, start with the getting‑started examples, then dip into the reference (cookbook) when you need one feature in isolation.

Getting Started git repo

Quick introductions and progressive tutorials that build intuition fast. This module contains simple, self‑contained examples to help you learn Fluxtion’s DataFlow API quickly. Start here if you’re new: run a tiny hello‑world flow, then explore short snippets for windowing, triggers, and multi‑feed joins. A tutorial series (Part 1–5) builds concepts step by step.

Reference git repo

This module is a cookbook of small, focused samples that each demonstrate one Fluxtion feature in isolation. Browse by area (functional ops, group-by, windowing, triggers, nodes, event feeds) and open the corresponding Java file. All samples are runnable from your IDE (look for a public static void main)

Functional building blocks

Grouping and joins

Windowing and triggers

Triggers

Working with nodes

Imperative node examples

Subscribe

Filtering

Callbacks

Triggering

Trigger overrides

Advanced

Event feeds and runners

Prerequisites

  • Java 21+ (examples include headers for newer JDKs and work on current LTS)
  • Maven 3.9+
  • jbang

Learn more

Contributing / feedback

Please open issues in the Fluxtion repository for questions, ideas, or any problems you find while using these examples.