Jump to content

Performance Info Required


deepakfugo

Recommended Posts

Hi All,

I am developing a portal in PHP(Thinking of using YII framework) and MySql DB.

I have 2 queries releated to performance of a portal.

 

1> How to organize the file/directory structure so that the file/s will be accessed at optimal performance.

for ex : if we take website like Facebook we can see that they are keeping Javascript, CSS and images in different domain(or some websites storing these files in sub domain) What is the use of keeping the scripting files (JS,CSS,Image folders, etc) in another domin. will it help in acheiving greater performance?

 

2> I want to know about hosting, whether hosting on a dedicated server is better or Cloud hosting is better. (Since i am expecting atleast ten thousand hits a day)

 

Also any further discussion on managing Portal/ Security of Portal and choosing framework is appriciated.

 

Thx in Adv.

Edited by deepakfugo
Link to comment
Share on other sites

  • 2 weeks later...

I am a little late, but anyways... I would recommend that you use a subdomain for your static files (Javascript, images, CSS, etc.) because then you can easily put them on a different physical server if you experience load issues. The primary reason I would encourage this, though, is that then it will be easy for you to use a Content Delivery Network (CDN), which basically means that your files are stored on third party servers around the world. By using a CDN, you can free your web server from sending static files to your visitors and let it focus on the server side scripting.

 

I have always been running using a shared hosting environment (will switch to cloud hosting when my current project is ready), but I would personally go with cloud hosting because it is easy to scale up and down based on the current demands. If you go with a cloud hosting provider, I would recommend spending some time reading reviews around the Internet about the various providers, because "cloud" is still a buzz word in the industry; from what I have seen, many providers promise everything in the world and in reality, half of them are not nearly as reliable as they claim. Obviously there are good providers out there - you just have to find them.

Link to comment
Share on other sites

  • 4 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.