-
Notifications
You must be signed in to change notification settings - Fork 51
case classes #42
Comments
Can u please clarify what u mean by use kafka-streams-scala with case classes ? Maybe an example of what u want to do .. |
I mean to use case classes as the value of the message for the between steps in the stream processing topology. |
Currently we don't have higher level APIs towards this end. |
could you perhapses still share then the idea how that can be used in the meanwhile ? |
The example with |
Would you support the higher level abstractions ? any roadmap to follow ? |
@mazorigal To give you some pointers I'm using spray-json serialization for my case classes for "internal" messaging (see https://gist.github.com/jeroenr/2895de32accd440c2558261a49952cab) and I'm using a Serde implementation (see https://gist.github.com/jeroenr/8b0cc0a4ce3b4d521de28267867bc003) based on avro4s (https://github.com/sksamuel/avro4s) to consume from Kafka Connect, which uses the avro format. Hope this helps :) |
Thanks, its indeed helpful |
Yeah I use JSON for doing joins, for instance. Generally it's easier to filter and transform on. For internal state store I'm using Array[Byte] for the values. |
Hi @mazorigal - In the latest release Does this answer your question ? |
thanks! so if I would like to have my specific serde for case classes, all I need is to extend the custom serde class with StatelessScalaSerde trait and implement:
? Does Just to make sure, the signature of the custom serde class the example is specific for AVRO serde implementation ?
thnaks, |
@mazorigal All of this is confusing to me and I've opened a PR to add better helpers: |
Hi,
is there any example how to use kafka-streams-scala with case classes ?
Thanks,
The text was updated successfully, but these errors were encountered: