Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# chowdhue 6/9/2006 8:28 AM
Hi Folks,

We're interested in using cuyahoga as the basis of our system because it's the cleanest and best architected .NET CMS we've researched. However, our plans require us to scale to thousands of users and we wanted to implement a master/slave replication as our way of handling this scalability issue. In this replication scenario all changes happen on a central db server which are then replicated to N number of slave READ-ONLY servers. Since in a CMS the ratio of reads/writes is 99/1 this scheme works really well to reduce the db bottleneck as you start adding more servers to a cluster. Each app server can have a dedicated db server and you can scale by just adding more servers to the server farm without adding too much complexity to your hosting and software development environment.

I've started looking at the cuyahoga code but I'm not too familiar with the IOC container you're using and I'm not sure how hard it is to separate the reads/writes in an environment such as nHibernate. Can anyone with some more experience tell us if what we want is possible to do without too much rewriting or would we have to architect our own system from scratch to handle this?

Much obliged
Edward Chowdhury

# martijnb 6/9/2006 11:55 AM
Hi Edward

There is another option that can be beneficial: caching. Cuyahoga can be setup in such a way that a single request results in zero database queries. Of course, when the cache times out, things have to be reloaded again, but you gain a lot with some aggressive caching settings.
# chowdhue 6/10/2006 8:05 AM
Where is the cache implemented? At the nhibernate level or is it internal to the cuyahoga codebase?

I presume the cache just handles modules and db calls within the core cuyahoga codebase right? And for custom developed modules like say a calendar we'd have to manage our own caching..

thanks for your quick reply.
# martijnb 6/10/2006 8:43 AM
The core Cuyahoga objects (Node, Section, Permissions) are cached via NHibernate, but for the modules, output caching is used. For authenticated users, module ouptut caching is disabled because it makes personalization pretty complex.