AFAIK the Spring Cloud Stream project is based on Spring Integration. Hence I was wondering if there is a nice way to resequence a subset of inbound messages before the StreamListener
handler is triggered? Or do I need to assemble the whole IntegrationFlow
from scratch using XML or Java DSL config from Spring Integration?
My use case is as follows. Most of the time I process inbound messages on a Kafka topic as they come. However, a few events have to be resequenced based on CORRELATION_ID
, SEQUENCE_NUMBER
, and SEQUENCE_SIZE
headers. In other words I'd like to keep using StreamListener as much as possible and simply plug in resequencing strategy for some events.