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?
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?
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.
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?
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.
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?
and can a (local)server withstand a few hundred concurrent requests?
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.
mmm my best bet would optimize first your query codes then the hardware structure..
Similar Threads |
|