title: Should I use web sockets to pull data from server or just a flag and use that flag to send API request for data?
body: <p>I am working on a project which is basically a Customer Feedback Analysis Dashboard. There are few graphs on the dashboard and data for each graph is fetched from the server through API requests.</p>
  
  <p>Right now the dashboard is updated every time the page is refreshed. I want it to be updated immediately when there is a new feedback in the system. I am confused, whether I use websockets to send data for each graph or just a flag and use that flag to fetch data through API requests. </p>
  
  <p>Like, facebook/twitter does. They tell you about new posts/tweets and when you click that button your feed/wall gets updated.</p>