Database – how to simulate sequential consumers in Kafka

I have a kafka consumer who obtains kafka data and performs some process if some circumstances are found and they send it for another consumer to do their job.

How can I build something like this?

One way in which I think is in the consumer-1 obtain data from a topic-1 process them and send the result to the topic-2 so that the consumer-2 consumes them. Is there any better way to do it like using kafka Streams?