SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
-
Sep 21, 2007, 11:23 #1
- Join Date
- Feb 2002
- Location
- Milwaukee, WI
- Posts
- 296
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Zend Framework - Multiple Sites with one copy of code
Would there be any sort of downside to sticking one copy of the Zend Framework in a base directory somewhere on a webserver and have multple sites include and use that one copy of the framework code? Are there any sort of resource usage issues or performance issues that could/would occur? Would it be better to have a copy of the framework installed separately for each site on a server?
-
Sep 21, 2007, 11:29 #2
There are no problems at all, The Pear framework does the same thing.
-
Sep 21, 2007, 11:29 #3
- Join Date
- Sep 2006
- Location
- Fairbanks, AK
- Posts
- 1,621
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Either way you do it, you have multiple sites accessing the files on the same desk, so you'll end up with the same bottleneck: disk I/O. Since PHP does not lock files as they are being executed, you will not end up with Site A waiting around twiddling its thumbs while Site B is using the ZF library.
The short answer: There will be no performance penalty for using a single ZF library for multiple sites. In fact, there may even be a performance bonus due to the hard disk and/or the OS caching frequently-accessed files, albeit a very slight and probably unnoticeable one.
I would recommend a single centralized ZF library. This will make maintenance/upgrades easier as you have a single directory to manage instead of several.
-
Sep 21, 2007, 11:34 #4
- Join Date
- Feb 2002
- Location
- Milwaukee, WI
- Posts
- 296
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Sep 21, 2007, 12:23 #5
- Join Date
- Oct 2006
- Location
- France, deep rural.
- Posts
- 6,869
- Mentioned
- 17 Post(s)
- Tagged
- 1 Thread(s)
Kind of on-topic but reading this makes me wonder, on a "multi-site from one Framwork" idea like this, does ZF play nicely with APC?
Bookmarks