[Which technology to use]
I'm currently in the planning stages of creating a simple web app and unsure which technology to use to achieve best results.
App Details
- Sport scoring app used by 2 refs on either end of the field so I need to keep both the time and the scores in sync.
- The game lasts for 1 hour so data would need to be transferred throughout the entire time
- Both refs need to be able to update both teams score.
- The only data that would be transferred is the current time and 2 integers for each of the scores. Very small piece of data.
With all this in mind, what technology would be best in this case. I was originally going to use AJAX-polling to refresh the score every minute (guaranteed new data), but that interval is a bit to long I want the refs to be in sync as much as possibly.
I started looking a websockets (very new to me) and the more I read, the more I saw that polling is considered a "hack", beyond the original purpose of AJAX. So im not sure if it's worth my time to implement AJAX polling or use websockets instead?
Which technology is best for my requirements? AJAX, Websockets or something else?
Thanks in advance