advanced DB support and memcached

Hi,

I am starting some new projects and I want to learn and use Yii for my projects. The only problem that I see is the lack of documentation and help for high traffic websites and their setup. Does Yii support data partitioning, replication, memcached, and other advanced features like these? Can a Facebook or OpenSocial app be developed using Yii?

Any help would be truly appreciated.

thanks

In terms of the memcached, please refer to my cookbook here.

Out of the box Yii can suport memcache however data partitioning and replication are going to be more something your going to have to setup.

Yii can support multiple databases with a little work and has been discussed in other forum posts.

I've managed to put together a number of components that allow me to do data partitioning via sharding out the databases though at the moment i have only one host and database. I even utilize cache to cut down having to go back to the DB for pulling user data.

You can use Yii to build something like Facebook however Yii would be a part of your overall application as your bound to have other software and hardware to implement various features in a real time manner.

If you haven't already I would recommend searching on google about large scale web apps you can find stuff written about how facebook, flickr and other have their hardware setup and what software they use along with information about how they implemented things like data replication and partitioning.

That will give you an idea of where your app may end up if it becomes popular plus you can plan your app to make it easier to scale to meet the demand.

For instance right now I don’t really need the database sharding or even the multiple databases i have right now  or even caching but I’m designing my app with those features in mind so they are there and when we need them we won’t have as far to go to support them :)