title: Efficient video game server data storage?
body: <p>I'm currently developing a multiplayer iOS video game where I want the players data to be stored in the cloud. In the game the player creates an area by placing items, planting trees etc which other players can then visit and walk around in realtime.</p>
  
  <p>From the game map side what needs to be stored is:</p>
  
  <ul>
  <li>A 50x50 tile grid - The type of tile (grass etc) and the height of
  the tile</li>
  <li>All of the placed items and any associated item specific data (A tree for example would store when it was planted)</li>
  </ul>
  
  <p>On the player side I need to store their:</p>
  
  <ul>
  <li>Character customisation</li>
  <li>Inventory</li>
  </ul>
  
  <p>The information would need to be read fairly infrequently (every time a client connects to the area) but would need to be written back to fairly regularly (every time an item is placed etc) so that any future connecting client would be reading the correct data.</p>
  
  <p>My question really is where to start with regards to storing this data in an efficient way for the server? I considered using several XML files to store different portions of the map and then storing each of the other parts (Inventory, Character etc) in their own XML file. But is this the most efficient way of doing it from the servers perspective? I want to minimise the amount of data it has to write back when the client updates :)</p>