2009年8月26日星期三

[fw-db] Read and Write to different servers

Hi,

Sorry if this question has already been addressed (actually I've found this
:
http://www.nabble.com/OOP-Design-question-related-to-Zend_Db_Adapter-to21754
135.html
, but nobody has provided a solution to william0275).

I would like to provide an abstraction layer so that read db queries would
be routed to one server (say A) and write queries to another server (say B),
so that it is completely transparent to developers (they would continue to
use $db->select(), $db->insert(), $db->update() and $db->query() as usual) .
Is there a recommended solution for that ?

Jean-Michel

没有评论: