Welcome Guest, Not a member yet? Register   Sign In
building a high traffic web portal
#1
Information 
(This post was last modified: 11-26-2014, 01:09 PM by sans.)

Idea
i am building a web portal using codeigniter.
would like to know the traffic it can handle and which areas need to be improvised or taken care of.
also any hardware specs as i am expecting 1-10 million visitors after successful launch.
any lights or suggestions would be helpful .

TIA
Reply
#2

(11-26-2014, 12:39 PM)sans Wrote: Idea
i am building a web portal using codeigniter.
would like to know the traffic it can handle and which areas need to be improvised or taken care of.
also any hardware specs as i am expecting 1-10 million visitors after successful launch.
any lights or suggestions would be helpful .

TIA

The first thing you can do is run a Apache AB test on it.

http://httpd.apache.org/docs/2.2/programs/ab.html

Hit a few different urls and compare the results.

Secondly you want to look into a siege test

http://www.joedog.org/siege-home/

That thing can really put a hurting on your server(s).

Finally, remember PHP is a shared nothing language. You can always fire up another box and put a load balancers in front of them.
Reply
#3

(11-26-2014, 12:39 PM)sans Wrote: i am expecting 1-10 million visitors after successful launch.

1-10 million every day? Month? Year?
Reply
#4

(11-26-2014, 07:06 PM)includebeer Wrote:
(11-26-2014, 12:39 PM)sans Wrote: i am expecting 1-10 million visitors after successful launch.

1-10 million every day? Month? Year?


Monthly...
Reply
#5

(This post was last modified: 11-27-2014, 02:32 AM by alroker.)

It's difficult to answer a question like that, but it's one that gets asked a lot. CI is light and fast in the general scale of PHP frameworks. However, "How much traffic can it handle?" depends on so many factors. It's more a question of... How much traffic can your coding handle? How much traffic can the server(s) hosting it handle? How much traffic can the network your server(s) are connected to handle? etc.

It's probably fair to say that you are "hoping for" rather than "expecting" 1-10 mil per month once the site becomes established. CI has some good benchmarking built right in so you can get some idea of how your code and DB queries are performing and use those results to refine and streamline your code. As mentioned above, benchmarking the production server with your app on it will give you a good idea how much traffic it will handle and show up some problem areas.

It's always best to keep your code as efficient as you can while you are developing the application, but many bottle necks and other issues normally won't show up until you are in production and start getting high bursts of traffic from marketing campaigns and the like. Processes running on the server in a high traffic environment can cause issues too, such as log rotations, as well as well as cron jobs for sending emails etc on a site as the quantities grow. Dos attacks are another possibility on a popular site, so having systems to try and reduce the impact of those is another issue.

At the end of the day though, there are many very high traffic sites out there built on much slower frameworks than CI. So how much traffic CI can handle isn't a relevant question. Perhaps instead you should be asking... How efficient is your coding? How big is your hardware budget? How are you going to make a really good site? How are you going to reach your traffic targets? Have you set up the infrastructure to make migration of the site to a more robust hosting solution quick and easy when and if the traffic levels and monetization warrant it? etc.
Reply
#6

(11-27-2014, 02:22 AM)alroker Wrote: It's difficult to answer a question like that, but it's one that gets asked a lot. CI is light and fast in the general scale of PHP frameworks. However, "How much traffic can it handle?" depends on so many factors. It's more a question of... How much traffic can your coding handle? How much traffic can the server(s) hosting it handle? How much traffic can the network your server(s) are connected to handle? etc.

It's probably fair to say that you are "hoping for" rather than "expecting" 1-10 mil per month once the site becomes established. CI has some good benchmarking built right in so you can get some idea of how your code and DB queries are performing and use those results to refine and streamline your code. As mentioned above, benchmarking the production server with your app on it will give you a good idea how much traffic it will handle and show up some problem areas.

It's always best to keep your code as efficient as you can while you are developing the application, but many bottle necks and other issues normally won't show up until you are in production and start getting high bursts of traffic from marketing campaigns and the like. Processes running on the server in a high traffic environment can cause issues too, such as log rotations, as well as well as cron jobs for sending emails etc on a site as the quantities grow. Dos attacks are another possibility on a popular site, so having systems to try and reduce the impact of those is another issue.

At the end of the day though, there are many very high traffic sites out there built on much slower frameworks than CI. So how much traffic CI can handle isn't a relevant question. Perhaps instead you should be asking... How efficient is your coding? How big is your hardware budget? How are you going to make a really good site? How are you going to reach your traffic targets? Have you set up the infrastructure to make migration of the site to a more robust hosting solution quick and easy when and if the traffic levels and monetization warrant it? etc.

we will be taking care of message queue as well ddos attacks.but some of your points helpful as bench marking.i will be using linode or aws or digital ocean or rackspace. reaching traffic target we have already worked out.
Reply
#7

(11-26-2014, 05:36 PM)dmyers Wrote:
(11-26-2014, 12:39 PM)sans Wrote: Idea
i am building a web portal using codeigniter.
would like to know the traffic it can handle and which areas need to be improvised or taken care of.
also any hardware specs as i am expecting 1-10 million visitors after successful launch.
any lights or suggestions would be helpful .

TIA

The first thing you can do is run a Apache AB test on it.

http://httpd.apache.org/docs/2.2/programs/ab.html

Hit a few different urls and compare the results.

Secondly you want to look into a siege test

http://www.joedog.org/siege-home/

That thing can really put a hurting on your server(s).

Finally, remember PHP is a shared nothing language. You can always fire up another box and put a load balancers in front of them.

Thanks for the tips i will look into it...
Reply




Theme © iAndrew 2016 - Forum software by © MyBB