Results 1 to 9 of 9
  1. #1
    C.I.A. Platinum Member carmicael's Avatar
    Join Date
    Jul 2007
    Gender
    Male
    Posts
    2,142

    Default An Inquiry on PHP code optimization


    guys, any tips on how to optimize PHP code? say, for example, i have at most 4000 user requests going on at the same time, how can i help reduce stress on the hardware?

  2. #2
    Kung naa kay 4000 requests at a time, bisan pinaka optimized na ang PHP code nimo kulang gihapon na.

    Best bet nimo is to load balance. Gamit ka multiple servers. If your PHP code was coded without load balancing in mind, mag usab gyud ka ana.

  3. #3
    C.I.A. Platinum Member carmicael's Avatar
    Join Date
    Jul 2007
    Gender
    Male
    Posts
    2,142
    wa pa man ko ga start ug code. so here's a bigger picture: [1]up to 4000 "simple" user requests (i.e. viewing profile information) and [2]about a few hundred "more complex" requests(i.e. adding users, editing user information, adding stuff to database, calculating some basic mathematics[add, subtract, multiply]). although both will never happen at the same time.

    [::]Load Balancing will be used
    [::]Multiple servers are being considered(can tech guys set this up locally?)
    [::]How about uploading it to a webhost?

  4. #4
    Kung nag expect ka nga 4000+ concurrent requests, you seriously need to consider a dedicated server with load balancing.

    Pero sa initial release sa imo web applicatoin, ok ra mag webhost ka kay sure ko nga dili na kaabot ug 200 concurrent requests.

    Most important is to code your web application with load balancing, multiple servers and possibly with database clustering in mind, para kung nagka-ngilngig na imong app, dali ra pag migrate.

  5. #5
    C.I.A. Platinum Member carmicael's Avatar
    Join Date
    Jul 2007
    Gender
    Male
    Posts
    2,142
    so, given that there would be a few hundred requests at any given time, kaya ra sa webserver? ang bandwidth lang ang i consider?

    about multiple servers, can tech guys set this up locally?

  6. #6
    C.I.A. Platinum Member carmicael's Avatar
    Join Date
    Jul 2007
    Gender
    Male
    Posts
    2,142
    and can a (local)server withstand a few hundred concurrent requests?

  7. #7
    OO kaya ra 100-200 concurrent requests sa usa ka capable server. Usually, mga webhosting karon have powerful servers even hosting multiple web applications in one server. As long as dilii lang kaonon tanan CPU cycles sa imong site ok ra nila.

    Kung kabalo imo tech guys mo setup sa servers why not? Depends on their knowledge.

  8. #8
    C.I.A. Platinum Member carmicael's Avatar
    Join Date
    Jul 2007
    Gender
    Male
    Posts
    2,142
    ok. thanks a lot.

  9. #9
    mmm my best bet would optimize first your query codes then the hardware structure..

  10.    Advertisement

Similar Threads

 
  1. Inquiry on SM Cebu space rent
    By Carlos X in forum Business, Finance & Economics Discussions
    Replies: 43
    Last Post: 07-12-2014, 04:33 AM
  2. Replies: 5
    Last Post: 03-01-2013, 02:05 AM
  3. Replies: 4
    Last Post: 01-11-2011, 10:08 AM
  4. An Inquiry on Server Requirments
    By carmicael in forum Computer Hardware
    Replies: 5
    Last Post: 08-05-2009, 11:42 PM
  5. inquiry on altec
    By boting in forum Computer Hardware
    Replies: 6
    Last Post: 11-12-2005, 09:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top