kafkajs
kafkajs copied to clipboard
Is it possible to consume a topic with multiple schemas ?
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.
Describe the solution you'd like A clear and concise description of what you want to happen. Please include links to other clients' solutions and/or KIPs for Kafka features if applicable.
Additional context Add any other context or screenshots about the feature request here.
Multiple schema as in ?
Let us assume 2 schemas
interface User {
id: string
name: string
}
interface Employee {
id: string
userId: string
companyId: string
}
Now you can receive the message of the above both types in the same topic and no issues will be faced. Kafka is just a message broker and nothing more so schema usually doesn't matter....
Do let me know if anything more is here for discussion.