Introduction
â
Like everyone else, weâre thrilled at the announcement of Confluentâs new TableFlow feature (great name!). The convergence of operational and analytical data systems is the core value of our business and having it validated by such a large and reputable company as Confluent is brilliant!
One question I was asked constantly at the recent Kafka Summit was how Streambased differs from this Confluent offering. There arenât many technical details available on how Confluent intends to achieve its goals but there are enough to highlight some key similarities and some key differences in the Confluent and Streambased approaches.
Please bear in mind this is based on the (very limited) information on TableFlow available today and subject to our understanding of it. This is not a fully fledged comparison of the two approaches (that will follow later) but a few initial thoughts based on what weâve seen so far.
â
Similarities between TableFlow and Streambased
â
- Both TableFlow and Streambased recognise Kafka as a valuable analytical data source â It wasnât long ago that Kafka was viewed as a mere transport mechanism for communicating data between services. With the exposure of message data for analytics as enabled by TableFlow and Streambased this role is greatly expanded. Feature enhancements (e.g practically unlimited cheap storage (KIP-405) and expanded metadata capabilities (KIP-833)) and the rise of âstreaming firstâ architectures mean that Kafka is often the landing point for all new data into an organisation, a true source of high volume, raw, historical data or to put it another way: A Datalake!
- TableFlow and Streambased are both focused on Analysts rather than Data Engineersâ A good friend of mine once said âThe Streaming Datalake is Kafka for people that donât have a Github accountâ. I love this as it easily explains that analytical users are likely to be more focused on the data itself than the manner in which it is obtained. Creating a frictionless experience for this will be key. TableFlow does this via Iceberg and Streambased via JDBC but the goal is the same, to ensure that Kafka datasets are available with the tools and techniques that analysts are used to and with minimal engineering requirements:
â
â
Thatâs not to say we donât like data engineers at Streambased, we love them! In fact we love them so much that we want to save them the grunt work of surfacing the data and provide direct connections. This leaves engineering free to focus on governance, performance and all the other needle moving tasks that get lost in the forest of ELT/ETL pipeline requests.â
3. Both rely on the Kafka ecosystem for metadata â The Kafka ecosystem has created a solid set of tools and principles for describing the data they hold and ensuring that data can evolve in a way that can be gracefully handled by the applications that work with it. We can take these same tools and principles (mostly encapsulated in Confluentâs Schema Registry and equivalents) and applythem to analytical workers. This smooths the transition from stream to table representation, itâs not a fully fledged data catalogue solution but itâs a great start!
â
And now some differences
1. TableFlow speaks files, Streambased speaks messages â Itâs hard to get more fundamentally different than this! To achieve its analytical goals, TableFlow will transform Kafka data into a file format more suited to analytics. Streambased will never move, copy or transform the underlying Kafka data, instead retaining it in the raw form it was created. This guarantees total consistency between operational and analytical workloads and ensures:
A. All the Kafka goodness weâve become used to (transactions, compaction etc.) is preserved with no further work.
B. Like any other client, Streambased can transparently mix hot and cold set data ensuring minimum latency in data availability for analytics.
C. Streambased seamlessly handles data at rest manipulation. For example, if messages are encrypted at rest the Streambased client can interact with it in the same way any other client would. No need for any special handling of keys or processes to get at the data for analytics.
2. Streambased degrades gracefully â If your data isnât fully loaded for analytical purposes yet, Streambased can fall back to a simple read from Kafka. There is an obvious performance hit to doing this but the query will complete and will be correct. If you are relying on Iceberg/Parquet to satisfy your queries then the query can only complete after all data relevant to this query has been converted. Letâs say you have a large topic and decide to use it for analytical purposes, if you flip the switch to enable this (both Streambased and TableFlow have switches đ ) and then immediately run a query itâs likely that the extra information required to use the topic for analytical purposes will not be ready yet. You can end up with the situation below where the query you are executing operates on data not yet transformed:
â
â
In Streambased the query will still execute correctly (all but with degraded performance), the data read will become just regular consumer access to the data. Itâs not the best experience but it will finish and give the correct answer. It remains to be seen how this will be handled in TableFlow but the signs we have seen so far indicate that it will be a much more binary experience. Either the data has been converted and is available or it is not and the query cannot complete successfully.
â
3. Streambased brings analytics principles to the stream rather than streams to analytics â Streambased brings data analytics principles to the stream. Using features such as indexing, pre-aggregation, topic statistics and many more data access to Kafka can be massively accelerated for analytical workloads. This is different to the TableFlow approach in which a much more traditional ETL/ELT operation is performed to bring the data from the stream to the analytics. There are pros and cons to both approaches but not being tied to a particular format and feature set means the Streambased approach is free to explore new exciting and experimental advances in analytics principles without having to wait for them to be supported by Iceberg or other dependencies.
â
Itâs too early to determine the relative benefits and fit of one solution over another and this post doesnât claim to do that in any way. Iâm sure more posts will follow in this regard but it is exciting (and rare) to see such a variety of solutions to this problem. Weâre aware of a number of vendors addressing this market and Iâm glad to say they have all tackled this from a different angle. I look forward to continuing the same positive and energetic conversation we have had up until now. Go Streaming Datalake!
â