How it works...
This recipe combines ideas from previous recipes in this chapter. Like previous recipes, we set up a Kafka consumer and producer. This recipe uses the synchronous producer from the Using Kafka With Sarama recipe, but could have also used an asynchronous producer instead. Once a message is received, we enqueue it on an in channel just like we did in the Goflow for dataflow programming recipe. We modify the components from this recipe to uppercase our incoming string rather than base64 encoding it. We reuse the print components and the resultant network configuration is similar.
The end result is that all messages received through the Kafka consumer are transported into our flow-based work pipeline to be operated on. This allows ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access