On 10 May 2013, at 18:12, Peter Gutbrod wrote: > I'm thinking about serving the html for this site from Apache as well and > include the dynamic A4D contend via SSI or PHP-includes within Apache.
Peter - Just my personal opinion, but I would not do this. Although it sounds a nice idea at face value, you would be creating a nasty coupling between Apache and 4D that you might come to regret. * (See below) Delineating image content and html content between the two machines is ok, because images are a separate request. However, having 2 machines build the page is going to be difficult to test, develop and maintain. (Actually, it's logically a 3-tier web server instead of 2, because you have 2 web server layers plus a database query layer). Besides, you would hardly gain anything. Optimisation gains are generally achieved by reducing the amount of dynamic code that needs to be served, not by moving static serving from one machine to another. Apache-Active4D combination is fast and there are better ways to optimise (for example caching recent dynamic requests in a Blob array or pseudo array). Again, just my opinion (based on some scientific evidence :) Peter * one example of this is loss of context. Active 4D is able to provide your dynamic code with a whole lot of context information about the original request. This would all have to be re-created in the relay request for the "include" and somehow fed to Active4D another way if any of it was required ** another problem is redundancy in the debug cycle. You would either need to include Apache in your development environment or re-create it artificially by building the full page in Active4D just for debugging purposes *** a third issue is redundancy in your dynamic code. Since your includes now have to function independently, they can't take advantage of logic carried out by "other" fuses other than by calling them directly. i.e. an include would have to be fully self supporting and run all its own database queries and logic on board _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
