Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

Realtime quotes

 
Ajay Oruganti
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
I need to display some realtime data on a web-based application. The data has to be accurate to the tune of 0.25 seconds (ideally). As such, refreshing the page is out of question. What is the best way to do this? The data is read from XML feeds.
In the worst case, it is possible to make it a non-web-based application (i.e., stand-alone app). Would this help me in anyway?
Thanks
Ajay
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Report post to moderator
not sure about the online version, but as for your worst case scenario, it should be doable. Kind of depends on how you are displaying the data and if you can update the data more often than .25 secs. If you can go faster and your displaying the data isn't too intensive, you should have no problems. just pump your read/update thread to run every 150-200 millisecs. That time gap plus your visual update should put you in around 250 ms. You can tweak it to start faster than 150 ms if you find you aren't meeting the 250 ms deadline.
Hope you can find a way to do what you want tho. I'm going in that direction soon but all I need is 500ms updates.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question on multiple forums. It can be a waste of time when people don't realize a question has already been answered. Post followups to this thread here. Thanks...
 
    Bookmark Topic Watch Topic
  • New Topic