How can I build my topics if I have multiple machines and users?


I would like to know how can I build the next scenario.

I have a web application that is communicating with a multiple machines.
The user 1 is using machine A, and the user 2 is using machine B
How can I build my logic or topics so the messages that user 1 is sending to machine A only arrives to that machine, and the messages that user 2 is sending to machine B only arrives to that machine?

Answered here java - How to make a partition of a topic in Kafka by user_id? - Stack Overflow

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.