On Jun 8, 8:59 pm, DanielMedia <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a site thats running on CakePHP and we've had to switch servers
> a few times to handle the traffic growth. Things seem ok now but it
> got me thinking about how to deal with more growth on the future.
>
> I was thinking that if necessary, I can have two extra servers that
> will handle serving images and videos.
>
> Maybe the sub-domains would look like this:
>
> http://images.domain.com/
>
> http://videos.domain.com/
>
> My question is, would I need to have a whole separate cake instance
> running on each new server (including cake libs)?
Hi Daniel,
I don't have specific experience of what you are asking but if you
wanted to put several domains on the same server (yes, that is not
what you are asking), you could have a single cake install which you
share amongst all of them. If you wanted to have 2+ servers and each
of them needs to use cake you would put cake on each of them - sharing
across a network doesn't make sense to me at all.
Do your image and video domains require cake though? Seems unnecessary
to me - If you don't need access control to your images/videos you
definitely don't but if you do, as you are going to be putting <a
href="http://images.mydomain/anImageUrl" >... in your app code - you
can put anything in there such that your subdomains have as little
logic as possible to meet your requirements (e.g. shared sessions
across subdomains, check for x, if present serve requested image/video
otherwise no).
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---