How does the engine of a webgame works? I'm thinking of games like tribalwars, grepolis and forge of empires.
How does that keeping alive work. I mean, a user is building an building, and quit the browser... The building is built even when the session of the user is expired. But the points of the user are updated when the building is finished... So how does that works.
What do you guys think? Do they have some kind of cronjob that is fired every second, and that walks throug the database, and search for finished buildings, and updates the stuff? Or do you guys think that they do it differently?
I hope that I was clear. -NOTE- I don't need any code, I'm just intrested in the progress behind the game...