Closed
Description
Currently, there are Producer API
, Consumer API
for basic IO operations on message queues.
For many scenes, users like to process messages in Streams.
The Stream API
is lightweight, not as same as the distributed streaming systems like Apache Storm, Flink, Spark-Streaming. And its implementation can be embeded in any java applications.
It provides the most common stream operations like filter
,flatMap
,map
,reduce
,groupBy
,join
,count
,max
,min
,window
, etc.
It's different from the existing StreamingConsumer
, which is a low level Consumer API for processing consumer positions, etc. (IMHO, the class name of StreamingConsumer
should be renamed to a more reasonable one, the current might be confused for users.)