We are hosting a contest on our website where visitors can vote for their favorite contest entry. We are getting a lot of traffic, and a lot of votes.
We would like to add a ticker to our homepage that updates live whenever a vote is cast to show the total number of votes.
Our website is run on a Coldfusion 10 server.
The only way I know how to do this is by running a JavaScript function that runs every second or so and that would run an ajax command to call another page that just runs the query to return the total votes. That seems like it would eat up a lot of bandwidth when you take hundreds of users polling every second.
Is there a better way that would not result in a huge bandwidth drag? Maybe some sort of "push" functionality for Coldfusion that can be used?