简体   繁体   中英

MassTransit Kafka null message handling

In our application there is a possibility that the message on Kafka topic is null, while the key is not empty. We'd like to handle those messages, but they are skipped instead of being consumed. Is there a possibility to consume a message from Kafka topic even when it is empty?

I doubt it, since there is no body it would not be deserialized. Unless you configured your own custom deserializer that treated a null message body as something other than null.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM