How to rekey a stream with a function

Question:

How can you rekey records in a Kafka topic, making the key a variation of data currently in the payload?

Edit this page

Hands-on code example:

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