Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should we use PHP framework for a high scalable web site? [closed]

We are preparing to build a web site with high scale potential. If the scale comes, we want to be ready for it! We decided to use PHP, Apache and MySQL. Should we use some kind of PHP framework (PHPulse, CodeIgniter, CakePHP, Zend,...), or it's better to build everything from the scratch? The nature of web site will be similar to Facebook, but there will be mostly text data (not many images, videos). Web site will be hosted on cloud.

What would you recommend?

Regards...

like image 956
Cartoonle Avatar asked May 13 '11 07:05

Cartoonle


People also ask

Should you use a PHP framework?

A framework provides a basic structure for streamlining web application development. However, a PHP framework is not always the ideal solution for web application development. For projects with unique needs or very small applications, the extra overhead that comes with a framework is not always worth it.

Why is PHP not scalable?

PHP doesn't separate views and business logic as NodeJS/MEAN Stack combination do. PHP views and server code is written same way, as a result, the code maintainability and scalability is poor, and it's often hard to introduce new functions and thus difficult in managing large code bases.

Why we use PHP framework for website development?

PHP frameworks simplify the maintenance of websites or web apps, by enabling PHP developers to write readable and maintainable code. Thanks to features like MVC and ready-to-use code snippets, interpreting and modifying code per your needs is simple.

What is scalable PHP architecture?

It is the practice that allows a team to develop cohesive software faster by automating multiple phases such as code building and testing to detect integration errors as quickly as possible.


1 Answers

This question has been asked many times. The general consensus is always do what you can do. Don't worry about making it too scalable from the start, just keep it in your mind slightly. Trying to build too scalable from the start is exhausting and you would most likely give up.

If you do start getting problems due to massive popularity, thats great! You are then popular enough and hopefully earning enough to start having to worry about paying for more expensive hosting and higher end programming/database frameworks and engines.

like image 56
Craig White Avatar answered Oct 10 '22 06:10

Craig White