DEV Community

Discussion on: Realtime Chat app using Kafka, SpringBoot, ReactJS, and WebSockets

Collapse
 
nonefornothing profile image
None for Nothing

because you need websocket , if you want display data to browser.
if you only use kafka and try rest api to display to browser , then it can't be works ( data thats you transfer is null). its happen because when you produce something to kafka, kafka automatically consume that data.
btw : its happen to me :D

Collapse
 
axellageraldinc profile image
Axellageraldinc Adryamarthanino

Hi, thanks for the reply.
Though my question was about using only websocket without kafka, not the other way around.
Could you help on the question? Big thanks in advance!

Thread Thread
 
nonefornothing profile image
None for Nothing

yes , you can do it, if you only using websocket for event streaming.

Some comments have been hidden by the post's author - find out more