How to rekey a stream with a function

Problem:

you have a Kafka topic and you want to change the key of the messages. The new key is a variation of data you currently have in the messages. A small fragment of code could convert the data you have to the new key.

Edit this page

Code example:

A tutorial for this doesn't exist yet, but it could...
Help build it!