使用Apache Kafka和Spring WebSocket的实时仪表板



使用Spring Websocket在网页上进行实时更新。
可用的源代码位于:https://github.com/sulthan309/Live-Dashboard-using-Kafka-and-Spring-Websocket

检查教程:https://dzone.com/articles/live-dashboard-using-apache-kafka-and-spring-webso。

3 comments
  1. I am getting this error while running this application ?
    url: http://localhost:5656/home

    Error:
    Whitelabel Error Page
    This application has no explicit mapping for /error, so you are seeing this as a fallback.

    Sun Sep 02 10:37:59 IST 2018
    There was an unexpected error (type=Internal Server Error, status=500).
    Circular view path [home]: would dispatch back to the current handler URL [/home] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

    I am running Zookeeper server and Kafka both in my local.
    can you please provide the steps to Run This demo?

  2. Hi Sulthan, I really like whatever you have created in your demo, I am also implementing one application using similar Mechanism, I need bit help in that will you be able to help me ?

    Here you have posting data to Kafka topic and your Kafka Consumer is posting data Web socket topic temperature , and this topic is subscribed by your client i.e live dashboard,
    In My case I am getting live sensor data in my Kafka topic, Every Message(Data) has a tag ID, In my Live dashboard , User want's to see data of specific tag whenever he want's.
    Now how to filter these data at web socket so that if user is subscribe to a particular tag , He should be able to see the live data.

Comments are closed.