I am currently receiving messages from kafka and the payload is protobuf. A customized MessageConverter
is used to decode the content before passing to my function. What I am trying to do now is to inspect the incoming payload and conditionally discard the message if it is not what I want. The issue is that the payload I received in my MessageRoutingCallback::routingResult
is raw bytes and my MessageConverter
isn't invoked yet. I know that I can manually decode it right in the callback function and dispatch to the corresponding function definition. I am just wondering if there is a better way to wire the things in correct order.
The version of spring cloud function I am using is 3.2.1