October 4, 2023

Implementing Confluent Wire Format In Scala

I’ve been working with Confluent for the last few months. I’ve been mainly configuring the Terraform project and querying the API for some kSQL setup and tuning. When we had ready our sandbox environment, I wanted to test the throughput.

If you follow the docs is straightforward, you need to use the serializer from the Confluent library. In fact if you use Spark you can use some nice wrapper as ABRiS.

But I wanted to understand why I can’t use the plain avro format and do no add like 60MB in dependencies from the confluent package. That leaded me to the wire format

That implementation is quite straightforward, and here is the associate ScalaCLI code I’ve been using:

2017-2022 Adrián Abreu powered by Hugo and Kiss Theme