Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the execution speed and reduce execution time of a social website like 'Facebook' developed in PHPFox?

I've an already developed and running social website like 'Facebook'.

This website has been developed using PHPFox v3.0.7(which is a social networking platform created in php).

The website functions are working well, no issues with them.

The main, major and serious issue I'm facing with the website is the slow execution speed. For any kind of operation it takes too much time and user has to wait for that much time. This really irritates the user and is affecting the performance of a website.

So, I did research on 'Facebook'- The World's Largest Social Networking Website developed in PHP. If 'Facebook' can execute at rapid speed in spite of heavy user load and continuous operations why can't my site?

First thing is the site is developed using a framework called 'PHPFox' so the entire Database design, caching and all other things have been managed by the framework itself, I can't change the framework's settings but ultimately I want to increase the execution speed of my website.

So how should I achieve it? If you have any best in class solution please provide me the guidance for it.

Any kind of help would be highly appreciated.

Please feel free to ask me any of the queries you have regarding the issue I'm facing.

Thanks.

like image 269
PHPFan Avatar asked Jun 02 '15 11:06

PHPFan


1 Answers

Hi In your main question, what you are asking is for the advice to increase the performance of your PHPFox application. Whereas, in the different note section, you are looking for the solution to send the Push-Notifications.

I will be answering you regarding the 'Increasing the performance of your website'.

As you must be aware, performance tuning/optimization is the bigger task. It has various stages as listed by '@Myself Malay'. Some of them can be done quick and others will take time. So you need to know them, prioritize them. For ex: Reducing the requests of JS and CSS files, by making them load using the CDN, can be accomplished quickly. Serving your resources (HTML, CSS, JS) in compressed form (gzip) also can be done quickly.

Optimizing your queries will be time consuming. Enabling Cache should be quick. If you want to establish the load balancers then it will take some time.

Here, I am adding some reference links regarding the PHPFox, which will help you.

  1. http://www.ipragmatech.com/phpfox3-performance-xcache-apc-memcached.html#.VXkzXt93M_M
  2. How to optimize your database tables in PHPFox
  3. Speedup PHPFox V3
  4. PHPFox - Optimization Settings

Note: Some of the tweaks may require the modification of the core files. Be careful, while doing so as they will make auto-update very difficult. Always take your code and DB backup during modification to your core files. Make a document about the changes you have done as which files, where why etc, which will help you to re-apply all those changes again, in case of updating your code to new version.

Below, I am adding some of the links, which will help you in understanding the Performance Optimization to the next level

  1. Books for Building Scalable Web Applications? (DB Performance/Tuning, Networking, General Performance, etc.)
  2. Scalability and Performance of Web Applications, Approaches?

My personal favorite book is: Scaling PHP Applications by Steve Corona. This book is the best reference ever available for the PHP Developers.

Eventhough I am not able to give any direct solution to your problem, hope this helps upto certain extent. All the best :-)

like image 79
Vinod Tigadi Avatar answered Sep 20 '22 14:09

Vinod Tigadi