I am building a webapp that has the following characteristics:
So essentially: very few pages with 90% static information. One page with client-side work and potentially a lot of GETting/POSTing of JSON.
I have built a POC of this using PHP/Smarty, jQuery and mySQL. User details are stored in mySQL and so is the JSON data. Webpages are cached by Smarty on disk.
Now I'm thinking about scalability and the obvious question is should I be storing the often-changed JSON data in mySQL or should I be using memcacheDB or some other key-value store? Would you go for the easy mySQL option or introduce a key-value store now or would you wait to see if scale issue arise? Am I realistically ever going to reach a point where mySQL is the bottleneck?
I'm planning to host this on Slicehost to begin with and then move it if need be.
Question is, would there be any lookups based on these values or not? Is there going to be updates for specific values at database level or not... Serilaized data or json is going to be faster and more efficient(storage wise) if all you do is pull the entire string and have no requirements to query or modify it.
Based on how you scale though, you may want to keep a key/value structure along with a flat data representation for lookup purpose.
Also consider using apache AB for some benchmarking and getting ideas on how your changes effect your concurrent output.
Good luck :)