Essay · 15 Nov 2026

The users just see tables

Getting an ETRM's events onto Kafka is half the job. Reports want a table that is current and keeps its history, and Apache Fluss is built to be one.

The energy trading and risk management (ETRM) systems I have worked with have poor Kafka interfaces, or none. People build their own integrations and often pin their extract, transform and load (ETL) jobs to end-of-day workloads. Little is built event-native, and where Kafka does exist it rarely carries the entirety of trade events or simulation results.

The usual answer is to get everything onto Kafka. I think that answer stops one step short. A Kafka topic delivers events, and most of what sits downstream of an ETRM doesn't want events. It wants tables that are current and that also hold the history.

Storage built to be that table has arrived. Apache Fluss became a top-level Apache project in August 2026 and released version 1.0 in September. I think it changes how estates that have been slow to adopt event architectures get there, because it changes what the integration project is for.

§1One amended trade, two questions

Take a power trade booked at 100 MWh and amended that afternoon to 120 MWh. A position report asks what the trade is now, and needs one row that says 120 MWh. A reconciliation asks what the trade was, and needs the 100 MWh row and the time it changed.

Kafka can hold either answer, but not both in one place: turn on log compaction and the topic keeps the newest record for each trade. The 120 MWh is there, the 100 MWh is cleaned away sooner or later, and the only way to find one trade is still to consume the topic. Leave compaction off and keep the records for years, and both events survive, but the trade's current state is whatever a consumer works out by replaying them. Tiered storage, which would make those years affordable, isn't available for compacted topics. Either way the topic is a log to consume, and a report wants to run a query.

Apache Flink takes the next step. It consumes the topics and keeps results such as positions up to date as events arrive. Then the results need somewhere to live. Written back to a topic they can be consumed but not queried, so looking at live data means adding another system, and history means replaying the stream. The joins that enrich a trade hold their state inside the job, where it grows until checkpoints and recovery slow down.

You end up building caches, and persisting state into the medallion layers of a lakehouse. The 120 MWh goes to a cache for the position report. The 100 MWh goes somewhere in the lakehouse layers for the reconciliation. Both stores repeat a result that Flink already holds. Their writes succeed or fail separately, so until the slower one catches up the position report and the reconciliation can be looking at different versions of the same trade.

EVENTSPROCESSINGSTORES BUILT AROUND ITREADERSETRM eventson Kafka topicscustom integrationFlink jobsstate held in the jobCachecurrent stateLakehouse layersraw events to reporting tablesPosition reportReconciliation
Fig. 1With Kafka and Flink alone, current state and history live in separate stores that a team builds and keeps in step.

§3Fluss keeps the stream as a table

Fluss is open-source streaming storage that sits beneath Flink. The project's home page draws the line in two sentences: “Kafka is the streaming transport. Fluss is the streaming storage.” The Kafka integration still carries the events out of the ETRM. What Flink computes from them goes into Fluss tables, and those tables are what everything else reads.

In a primary-key table each key has one row, the latest, and every change to that row goes into the table's changelog. The amended trade shows as a single row of 120 MWh. The changelog carries the amendment as a pair: the 100 MWh row from before the update and the 120 MWh row from after it. That changelog is also a feed. Downstream systems subscribe to it, so the job that writes a position has published it in the same write.

A second Flink job tiers the table to a lakehouse format, which can be Apache Paimon, Apache Iceberg or Apache Hudi, every 3 minutes by default. A union read in Flink SQL or Spark SQL then answers one query from the tiered copy and the newer rows still in Fluss.

This is the part that matters for an ETRM estate. With union reads across the event stream and the large persistent store, the users, the reporting use cases and the downstream systems just see tables. The estate no longer chooses between a lake and a stream. It gets long-term cloud-native storage, the events and a real-time or near-real-time representation of trade state, and the caches and layers in between are what it stops building.

“Just see tables” is true wherever the query runs on Flink or Spark, whose Fluss connectors do the union. Trino and StarRocks see only the lake copy for now, so they are behind by up to one tiering interval; union reads for both are on the project's roadmap. A reporting tool needs Flink or Spark in front of it to read the history and the live edge as one table.

§4The key decides what history means

What a union read returns depends on the kind of table. From a primary-key table it returns one row per key, the latest. The position report gets its 120 MWh and the reconciliation gets no trace of the 100 MWh. That row survives in Fluss's changelog, which is read from Fluss and not from the lake copy, and is kept for 7 days unless the table is set to keep it longer.

A union read of an append-only log table returns every row, and an amendment is a new version of a trade. So I would store each version as a row in a log table, with a primary-key table of current trades beside it and the same job writing both. The primary-key table returns the book as it stands. The log table returns every version of a trade in one query, from the one booked a second ago back to the oldest tiered partition.

ONE TABLEHistory · lake storageLiveEVENTSOne queryReport · user · system
Fig. 2One table has two ends, a history held in lake storage and a live edge fed by events, and one query reads both.

A team that asks for everything on Kafka hasn't yet had to say what the table's key is. I think that choice matters more than any feature of the storage, because it decides whether the history is there to query.

§5What there is to run

Fluss is a cluster to run beside Flink: a coordinator, tablet servers and ZooKeeper, remote storage, and the tiering job, which the team deploys and watches like any other Flink job. A primary-key table's current rows are held in RocksDB on the tablet servers. The production users the project names are Alibaba, Xiaohongshu, Fresha, JD.com, Ant Group and iQIYI. No energy or commodity trading firm is among them yet.

Where minutes are enough, the simpler design is Flink writing straight to a lakehouse table such as Paimon. That gives one updatable table with no extra cluster, and it serves lookups and a stream of changes, minutes behind. Fluss earns its cluster where those have to come from rows written a moment ago. In trading I think that means live position and limit monitoring, enrichment against trade and reference data, and downstream systems fed from results as they change.

§6Plan for the table, and let Kafka feed it

None of this removes the integration. Streaming storage starts from a stream, and an ETRM that doesn't emit its trade events and simulation results still needs the work that gets them out. What changes is what that work is for.

If the goal is everything on Kafka, the project ends at the topic, and the caches and lakehouse layers follow as a second project. If the goal is a table, the scope reads differently from its first page: a table of current trades, a table of trade versions, their keys, and the engine the reports will query them through.

The move to events then doesn't have to be one cut-over. The end-of-day job reads those tables with batch SQL from the start, and end of day becomes a cut-off time in a query. An intraday consumer subscribes to the same tables when someone needs it.

ETRM estates have been slow to move to event architectures, and are still breaking apart scheduled ETL and SQL Server Integration Services (SSIS) workflows to get onto Kafka. For once the late start helps. An estate that hasn't yet built the caches and medallion layers around Flink doesn't have to build them. Fluss changes the route. An estate goes from end-of-day batch to tables that are current and hold their history. The events arrive underneath, the history tiers out to cloud storage, and the users just see tables.

Cite this

BibTeX

@misc{morris2026users,
  author       = {Morris, Gary},
  title        = {{The users just see tables}},
  year         = {2026},
  month        = nov,
  howpublished = {\url{https://cognerys.com/writing/the-users-just-see-tables}}
}

APA

Morris, G. (2026, November 15). The users just see tables. Cognerys. https://cognerys.com/writing/the-users-just-see-tables

Gary Morris

Founder, Cognerys · PhD Candidate, University of Bath

Gary Morris founded Cognerys after a decade in energy trading technology, working across platform engineering, data systems and solution architecture. About

Cognerys works with energy trading firms on questions like this. Related service: Architecture and transition review. gary@cognerys.com