Replies: 2 comments
-
Hi @PeterWone Can you share the configuration of the Consumer/Producer? Are you using the |
Beta Was this translation helpful? Give feedback.
-
The point of the exercise is to avoid using KafkaFlow altogether - it doesn't play well with the effects of our plugin system on dependency injection. But we are talking to other systems that use KafkaFlow, so I must deserialise what KafkaFlow serialises. The actual problem was the presence of type information, as described in the question above, and I have since discovered that So I think that's the answer to my question - "use If you guys know how to get To answer your question, yes I was trying to use the |
Beta Was this translation helpful? Give feedback.
-
KafkaFlow doesn't play well with our plugin system. For whatever reason, producers work but consumers don't handle messages even though middleware registered in the same statement does handle the messages.
Never mind why, I'm handling messages directly and it works. But other systems use KafkaFlow so object serializations are polluted with the type annotations that KafkaFlow presumably uses to dynamically reference types.
I can't just stuff that into
System.Text.JsonSerializer.Deserialize
and expect an object graph to emerge.So I tried to use the KafkaFlow deserialiser...
which doesn't barf, but also doesn't work. The object is created in the right type but property values are not set. StackOverflow is completely useless, it doesn't have a single question mentioning KafkaFlow.Serializer.
I really hope someone familiar with the internal operation of KafkaFlow can advise me on a straightforward way to deserialise this format.
Beta Was this translation helpful? Give feedback.
All reactions