How to split a stream of events into substreams

Question:

How do I split events in a Kafka topic so that the events are placed into subtopics?

Edit this page

Code example:

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