Streaming Kafka Events in Real Time via WebSocket APIs
Imagine that you need to know the exact location of the train that you’re about to catch. Trains can be equipped with IoT sensors that can publish location coordinates via Kafka streams in real time. You will be using a mobile application to view a train’s location. Mobile applications and web applications are compatible with WebSocket, a web-friendly protocol, but the location data is received via a Kafka stream. How do we convert the real-time Kafka feed into a real-time WebSocket feed?