Reputation: 488
I have some questions regarding Kafka streams and how they work, I am experienced with general Kafka consumers and producers paradigm, however, this is my first time I am trying to use Kafka streams.
Questions:
KAFKA -> KAFKA
but instead have KAFKA -> PROCESS(STORE IN DB) -> KAFKA
, can Kafka Streams even solve this use case?Upvotes: 2
Views: 1351
Reputation: 192023
The Consumer API is still working behind the scenes in the exact same way. To answer the question - you start more running instances of the application; these don't necessarily have to be on completely different servers
It's not really recommended to use Kafka Streams to do remote work that's not confined to Kafka-Kafka
interaction. At least not without accepting this introduces latency, and therefore shouldn't be done when doing topic joins that are dependent upon time windows, for example.
Kafka Connect can be your system to take data from a topic to a database
Again, Kafka Streams is just a layer over the Producer/Consumer APIs. You'll still get the same network exceptions, or if you read a corrupt record, there are options for handling poison pill records
Upvotes: 3