Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Horizontal Scaling of PHP Applications

Horizontal Scaling of PHP Applications

To meet up with the high demands of businesses it is important to scale PHP Applications.

Horizontal scaling ensures you're always available, and is the only practical way of scaling large systems.

To achieve this a load balancer is used to route requests to multiple web servers and to ensure consistency distributed sessions and file storage services are key.

Adegoke Obasa

April 23, 2016
Tweet

More Decks by Adegoke Obasa

Other Decks in Programming

Transcript

  1. Horizontal Scaling of PHP Applications By Adegoke Obasa adegokeobasa.me |

    @goke_epapa | https://ng.linkedin.com/in/adegokeobasa
  2. Vertical Scaling (scale up/down) To add resources to (or remove

    resources from) a single node in a system.
  3. Why Horizontal Scaling? • Ensures you're always available. • It

    is the only practical way of scaling large systems. • Generally, it is the only way in the big league
  4. Load Balancing • HAProxy • Amazon Web Services (AWS) -

    Elastic Load Balancer (ELB) • Microsoft Azure - Load Balancer • Google Cloud - Load Balancer
  5. User file consistency 25 22 Distributed File Services • Amazon

    Web Services (AWS) Simple Storage Service (s3) • Google Cloud File Storage Also • Object Storage
  6. Resources • Bondi, André B. (2000). Characteristics of scalability and

    their impact on performance. Proceedings of the second international workshop on Software and performance - WOSP '00. p. 195. • http://www.slideshare.net/LucasArruda3/inter-con-phpscalingphp?qid=4422d631-e3cd-4d8c-be74- 25c9167e491a&v=&b=&from_search=6 • https://www.digitalocean.com/community/tutorials/how-to-set-up-a-redis-server-as-a-session-handler- for-php-on-ubuntu-14-04 • http://bits.ng/2012/06/jobberman-cto-taiwo-orilogbon-on-how-to-scale-your-startup/ • https://www.digitalocean.com/company/blog/horizontally-scaling-php-applications/ • https://en.wikipedia.org/wiki/Object_storage • https://blogs.oracle.com/WebScale/entry/scaling_wikipedia_with_lamp_7