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

Distribute the Workload. PHP UK 2012, day 1

Distribute the Workload. PHP UK 2012, day 1

Many services / applications now a day are ill equipped with handling a sudden rush of popularity, as is often the case on the internet now a days, to a point where the services either become unavailable or unbearably slow.
By taking a chapter from the ant colonies in the wild, where their strength lies in their numbers and the fact that everyone works together towards the same goal, we can apply the same principle to our service by using systems such as
- load balancers
- message queues
- gearman
- daemons
and a few others, you can achieve greater performance, more redundancy, higher availability and have the ability to scale your services up and down as required easily.

During this talk attendees will be lead through the world of distributed systems and scalability, and shown the how, where and what, of how to take the average application and splitting it into smaller more manageable pieces.

Helgi Þorbjörnsson

February 27, 2012
Tweet

More Decks by Helgi Þorbjörnsson

Other Decks in Programming

Transcript

  1. Teamwork When faced with a problem they will solve the

    problem as one. Monday, 27 February 12
  2. Add some intelligence to add / remove servers as needed

    based on current information. Monday, 27 February 12
  3. Get a highly available and resilient setup by following a

    few of those recommendations Monday, 27 February 12
  4. Your Client Code Gearman Client API (C, PHP, Perl, MySQL

    UDF, ...) Gearman Job Server gearmand Gearman Worker API (C, PHP, Perl, Python, ...) Your Worker Code Your App Gearman Monday, 27 February 12
  5. Cron Gearman Job 1 1 2 3 4 5 Web

    Services 1 4 3 2 5 Processing Monday, 27 February 12
  6. Good for Image Processing Distributed Logs Data Mining Mass Emails

    Intensive transformation Search Monday, 27 February 12