7

How Scalable is Codeigniter V Other PHP Frameworks? I'm new to Codeigniter and love to know how scalable it is when compared to other PHP Frameworks?

hakre
  • 193,403
  • 52
  • 435
  • 836
Imran
  • 11,350
  • 20
  • 68
  • 78
  • 1
    Scalable in what aspect? – jondavidjohn Dec 29 '10 at 23:30
  • 2
    possible duplicate of [What is the best PHP MVC framework for scalability?](http://stackoverflow.com/questions/132056/what-is-the-best-php-mvc-framework-for-scalability) – mario Dec 29 '10 at 23:35
  • @mario: In all fairness, that thread is over two years old. – treeface Dec 30 '10 at 00:48
  • Codeigniter (I talk about version 3) can be scalable if you develop/made your app to be scalable from the beginning. You have to handle the session and storage to support load balancing, etc. – Dendi Handian Dec 11 '20 at 03:58

3 Answers3

7

CodeIgniter is massively scalable because it does very little. That might sound slightly ridiculous coming from a CodeIgniter enthusiast but that is exactly why I love it.

CodeIgniter is ridiculously lightweight. It has no conventions, no real overhead and has been reccomended by Rasmus as the most lightweight framework around.

Scalability is about growing your application, in traffic, performance and general size. General size does not matter as it only loads what you load, traffic is fine with some correct caching and performance works brilliantly as I have already pointed out: it is light as hell.

I have a bunch of websites ranked 100,000 and higher on Alexa and they haven't struggled yet.

Phil Sturgeon
  • 30,637
  • 12
  • 78
  • 117
  • Thanks for the comment and insight as always. Out of curiosity, have you ever used Kohana? If so, what about it did you wish CI had, and what about it did you hate? Vague questions, I know, but I'm curious to see what you think. – treeface Dec 30 '10 at 01:05
  • I have used Kohana to build a few apps and it was both enjoyable and hugely frustrating. I really love their Cascading File System and the PHP5 models (and autoloading in general) was a lovely change from $this->load. Sadly it's undocumented and a bit of a mess. Look at FuelPHP http://fuelphp.com/ for the perfect mixture of CI, Kohana, Rails and others. – Phil Sturgeon Dec 30 '10 at 14:31
3

Generally when speaking of Scalability, most people tend to think in one direction and that is in terms of growth. Many frameworks handle growth fine, but CI's strong suit is being able to control the footprint of the framework to scale both up AND down depending on the use. You, the developer have ultimate control over resource efficiency and this generally means that even as your application grows, you retain this control, so that even if your application demands it, you can continue to utilize resources accordingly.

Ask 10 Web Application Developers and you'll probably get 4 or 5 different answers going along with the tags you used.

And it's a chicken or the egg question when you ask if they are using it because the like it, or like it because they use it.

jondavidjohn
  • 61,812
  • 21
  • 118
  • 158
1

CodeIgniter is for PHP4. Kohana is the best choice out of those you have tagged. CI is great but I don't know how scalable can it be comparing to these.

Dejan Marjanović
  • 19,244
  • 7
  • 52
  • 66
  • 3
    That is bull, CodeIgniter 2.0 no longer supports PHP4. CI has beat Kohana in every benchmark I have come across, but I am always happy to see now ones. – Phil Sturgeon Dec 30 '10 at 00:33
  • Ok, where is the Download CI 2.0 button? – Dejan Marjanović Dec 30 '10 at 00:47
  • @webarto: download the latest tip from here: https://bitbucket.org/ellislab/codeigniter – treeface Dec 30 '10 at 01:01
  • @Phil @webarto Though I do wish there was a more obvious way to get to that link from the website. I haven't found any issues with CI 2.0 that weren't there in 1.x – treeface Dec 30 '10 at 01:09
  • 1
    @webarto This is not accurate. As Phil has noted CI 2 is dropping support for PHP 4 and even of you use 1.7.3 you can use PHP 5.x if your server supports it. –  Dec 30 '10 at 02:01
  • Okay, seems logical, I meant for current stable releases, doesn't matter. Like @jondavidjohn stated, a chicken or egg question. – Dejan Marjanović Dec 30 '10 at 02:13
  • @Phil Can you show me these benchmarks please? – biakaveron Dec 30 '10 at 06:20
  • CI 2 has been on BitBucket for months now and its generally known that the framework is stable enough to use. The community edition (and most likely 2.0) will be out in January. @biakaveron cant remember where I saw those benchmarks but it was months ago so you can strike those from the record. – Phil Sturgeon Dec 30 '10 at 14:29
  • http://www.beyondcoding.com/2009/03/02/choosing-a-php-framework-round-2-yii-vs-kohana-vs-codeigniter/ , http://www.sheldmandu.com/php/php-mvc-frameworks/php-mvc-framework-performance-part-1 , comparing to kohana 2.x, current stable release is 3.0.8., we'll just have to wait for Kohana3 vs CI2 :) Cheers. – Dejan Marjanović Dec 30 '10 at 15:42
  • 1
    Hah! first time i've ever heard of a technology being knocked for being backward compatible. – jondavidjohn Dec 30 '10 at 18:40