1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Rep Power

    Question Need info on Performance

    Hi All,

    I am developing a portal in PHP (YII framework) and MySql DB.
    I have 2 queries related 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 domain. will it help in achieving 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 at least ten thousand hits a day)

    Also any further discussion on managing Portal/ Security of Portal is appreciated.

    Thx in Adv.
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Rep Power
    Unless you do something drastically wrong, the organization of your files and directories has very little effect on performance.

    Splitting the static resources onto separate sub-domains is normally done because the site has more than one server and it splitting the load across them. For a number of reasons, this approach will make your site load faster for some users at the cost of extra load on your servers.

    The term "cloud hosting" has no technical meaning. "cloud" is just a marketing term.

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    1) As oreo said, the file structure doesn't matter.

    2) You're just now writing a website and expecint 10,000 hits a day? Devshed has been around for nearly 20 years and barely gets that some days. However, for a properly designed site, 10,000 a day isn't a lot. You can start on a shared/cloud host and then move to a dedicated host if your traffic follows the pattern you think it will.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo