3 ms·
Hm? Give the message a type. Service A or B would fail to compile, depending on whether the static type of X is a string or an integer.
by continuational 5y ago
Hm? Give the message a type. Service A or B would fail to compile, depending on whether the static type of X is a string or an integer.
- fndex 5y agoAFAIK, kafka messages doesn't have "types", and even if they did, you would be relying on an external system, not your type system. If you are not convinced, test it by yourself, create two services and a kafka topic and produce a message from one service to another with different types on each service.