in reply to Re: mod_perl and MVC
in thread mod_perl and MVC

Sir, Thanks a lot for the explanation.It really helped me to understand that the MVC is in the app.server side.You also mentioned that the business data objects like the product data is cached and if my understanding from the doc.is right,you mentioned that the caching mechanism in written in C (for performance in the app side).So the question is , are you using socket in the model layers to communicate it to the cache to fetch the data objects? If so, do we have any custom written message protocol to accomplish this. Too much of interest in your article is making me to ask these kind of foolish questions, so kindly bear with me.

Replies are listed 'Best First'.
Re: Re: Re: mod_perl and MVC
by perrin (Chancellor) on Apr 15, 2002 at 13:04 UTC
    The caching of data objects was done using BerkeleyDB. We wrote a simple cache interface on top of it to keep track of an expiration time for each entry and only return unexpired items. These days, you could just use Cache::Cache for this. That module wasn't around when we started.

    The part in C was a daemon on each app server to broadcast shared data to all the other app servers. The only data we shared was the read-only product data which should be the same on any server.