Hi, 1. Based on your design, it can be one or more topics. You can design one topic per region or one topic for all region devices.
2. Yes, you need to listen to web socket messages and write to kafka server using kafka producer. In your use case, you can also send messages using Kafka Rest Proxy from confluent. http://docs.confluent.io/2.0.1/kafka-rest/docs/index.html On Wed, Mar 23, 2016 at 1:59 PM, Maria Musterfrau <daniela_4...@gmx.at> wrote: > Hi > > I am new and I have a question regarding Kafka. I have devices in > different regions. Every device opens a websocket connection when it gets > active and it sends its messages over the opened websocket connection to a > server. My question is: is every region a topic or is every websocket > connection (means every device) a topic? Or can I choose which one is used > as topic? > > Is it true that I need a piece of code as Kafka cannot consume messages > directly from the websocket connection? > > Thank you and regards, > Daniela >