What my networking setup looks like:
=> Player performs action
=> Action checked and executed server-side with PHP
=> Information is grabbed or updated from SQL DB
Game Setup
Apocalyptic city simulator. Players can interact with each other (Attacking, trades, messaging) and players can interact with their own cities. The game follows along the lines of old FB games like Mafia. You can track stats, upgrade units/structures, attacking a city would be pretty simple (click the attack button on a city's page, yourForces - theirForces, subtract some forces from the losing side, subtract some resources from the losing side, end of battle.)
Question
Is SQL fast enough to track all of these things? Will SQL be fast enough to track players stats, update them quick enough, and be able to output stats in real time to other players? Will SQL be fast enough to carry out all the actions of the players connected to the game?
I don't expect much traffic for the game < 100 players at any given time (if that).
If SQL is fast enough what are some things I could do to speed up the time of queries?
Thanks!