Menu

From a cluster to SQL on a Cloudflare Worker: Kafka data in R2 with KafScale 2.2.0
πŸ“°

From a cluster to SQL on a Cloudflare Worker: Kafka data in R2 with KafScale 2.2.0

DEV Community: opensourceΒ·Alexander AltenΒ·3 days ago
#iaH7HdZh
#devtoopensource#devto#dev#kafscale#iceberg
Long article (2503 words) β€” no AI summary yet.
Reading 0:00
15s threshold

I wanted one copy of my Kafka data, in object storage, that I could query two ways: live SQL from an app, and Iceberg from a laptop with DuckDB.

KafScale 2.2.0 is a Kafka-compatible broker that writes every record to object storage. I pointed a cluster at Cloudflare R2, produced 3000 orders, and force-deleted one broker while the producer was still running. The producer finished at 3000 acked. A consume came back with 3000 distinct keys. A Cloudflare Worker, sitting in front of the SQL processor running as a Container, also counted 3000. DuckDB, reading Iceberg tables in R2's catalog, counted 3000 as well. Nothing was lost or duplicated. kcat and a Java consumer agreed on the same path.

That is the idea. The records live in R2. The Worker is SQL for apps. Iceberg is for analytics. Nobody copies the data into a second store.

I work on KafScale, so this is a walkthrough from the person who ships it, not a review. The long form of the cluster and Iceberg setup is How to run KafScale on Cloudflare R2 .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.