Menu
Back to Discussions

real-time data sync: kafka vs websockets for client updates

Chandan Rao
Chandan Rao
·2877 views
We're working on a tool for collaborative editing, and we need to send updates to clients right away. We're trying to decide between Kafka, because it guarantees delivery and can buffer things, and WebSockets, which offer direct, super-fast two-way communication. Kafka looks good for handling lots of edits coming in fast, but hooking it up straight to clients sounds complicated. WebSockets are easier for direct client-server stuff, but keeping track of everything and making sure all clients get updates even when the network's spotty feels like a headache. Has anyone else been in this spot? What did you end up choosing, and why?
29 comments

Comments

Loading comments...