Is there any implementation of web socket in this project ? Otherwise how come real time bet updates are taking place ?
But, I read here that using Ajax for a dice site may make things terrible.
A socket is an open connection between the client (browser) and server with bidirectional communication. If you make a bet, you send the info through the socket (and you get the result) and if others bet you get the bets from there. So it's all real-time, you only connect once. There are different libraries/servers for this, Socket.io is a popular one made in node.js. Perfect for a dice site.
An alternative is indeed getting new data with AJAX requests. With that, the browser would make a connection/request every x seconds to see if there are new bets. Obviously for a dice site this would be pretty terrible and give big lag and other problems. However AJAX is useful for other purposes.
Chat uses ajax though.
Is chat using a conventional DB or a flat file for conversation storage ?