Kafka Stream Processor:

Pragya Keshap answered on February 16, 2023 Popularity 5/10 Helpfulness 1/10

Contents


More Related Answers


Kafka Stream Processor:

0
Tip Pragya Keshap 1 GREPCC

Processor is both Producer and Consumer. It consumes the data from 1 topic and produces data for another topic.

In our case, we have to do the following

consume the data from numbers topic

remove the odd numbers

squares the even number

write back into another topic.

Lets create the processor by using the corresponding Functional Interface in Java which is Function.

We consume the data which is KStream

We do some processing

Then we return the KStream. Do note that the return type could be anything. Does not have to be same as Input type.

Popularity 5/10 Helpfulness 1/10 Language java
Source: Grepper
Tags: java stream
Link to this answer
Share Copy Link
Contributed on Feb 16 2023
Pragya Keshap
0 Answers  Avg Quality 2/10


X

Sign in with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.