0

I have multiple message types being consumed from the same Kafka topic ingress. While I can extend the message types to a 'wrapper' super class then downcast them after they are de-serialized, this does not seem like a good option. Are there any alternatives?

David Anderson
  • 39,434
  • 4
  • 33
  • 60
cal
  • 11
  • what SDK are you using? if you are using remote functions you can simple get the raw bytes of a message and handle serialization in your functions. If you are using the embedded SDK, you can still achieve that by using a payload (for example Protobuf Any) – Igal May 31 '21 at 09:50
  • thanks for the suggestion Igal. Will try the protobuf any option – cal Jun 03 '21 at 04:17

0 Answers0