SlideShare a Scribd company logo
1 of 15
Download to read offline
An application framework
to distribute work
Presenter: Biswajit Maji, Mindfire Solutions
Date: 1/04/2014
Presenter: Biswajit Maji, Mindfire Solutions
OCP – Oracle certified
professional developer
About Me
Skills : Mysql, php, jQuery, html,
VCS(svn, git), Webservices, Linux
Connect Me:
Facebook: https://www.facebook.com/biswajitmaji.tech
LinkedIn: http://www.linkedin.com/profile/view?id=133902574
Google+: https://plus.google.com/105085556902166170611/
Contact Me:
Email: biswajitm@mindfiresolutions.com / biswajitmaji.tech@gmail.com
Skype: mfsi_biswajitm
Presenter: Biswajit Maji, Mindfire Solutions
AGENDA
• Why Gearman
• What is Gearman
• Terminology
• How Gearman works
• Available APIs
• Advantages
Presenter: Biswajit Maji, Mindfire Solutions
Why GEARMAN
Presenter: Biswajit Maji, Mindfire Solutions
What is Gearman
Open source application framework
To distribute appropriate computer tasks to multiple computers
So large tasks can be done more quickly
In some cases, load balancing rather than raw speed may be the main
goal
A Web server, can use Gearman to send tasks to another computer
which is optimized to do that particular task (may be running on a
different architecture, using another operating system, or loaded with a
different computer language better suited to a particular operation).
It is an application framework to distribute work
Presenter: Biswajit Maji, Mindfire Solutions
Terminology
Create jobs to be run and send them to
a Gearman server
Register with a Gearman server and
grab jobs to run
Coordinates assignment from
clients to workers, handles restarts
Client
Worker
Gearman
Server
Presenter: Biswajit Maji, Mindfire Solutions
Gearman Working Structure
Presenter: Biswajit Maji, Mindfire Solutions
Gearman Work Flow
Presenter: Biswajit Maji, Mindfire Solutions
How Gearman works
Presenter: Biswajit Maji, Mindfire Solutions
Available Client and Worker Libraries
.NET
C
Django
Drizzle
Java
JMS
Lisp
MySQL
Node.js
Perl
PHP
Postgre
SQL
Python
Ruby
Twisted
...
Presenter: Biswajit Maji, Mindfire Solutions
Advantages
Speed up work
Load balance since the job server only sends new jobs to idle
workers
Parallel and asynchronous work
Scales well
Architecture-based workload distributing
Fault tolerance using multiple server.
Can be used as an interface between a client and a worker written
in different languages.
Presenter: Biswajit Maji, Mindfire Solutions
References
http://gearman.org/
http://blog.zitec.com/2011/parallel-processing-with-php-and-gearman/
http://www.phpclasses.org/blog/post/108-Distributing-PHP-processing-with-G
http://www.cirello.org/2012/05/scalable-architecture-with-gearman-job-server/
Presenter: Biswajit Maji, Mindfire Solutions
Question and
Answer
Presenter: Biswajit Maji, Mindfire Solutions
Thank
you
www.mindfiresolutions.com
https://www.facebook.com/MindfireSolutions
http://www.linkedin.com/company/mindfire-solutions
http://twitter.com/mindfires

More Related Content

Similar to Gearman To Distribute Server Load

Republica 2014 open-source_in_the_wild
Republica 2014 open-source_in_the_wildRepublica 2014 open-source_in_the_wild
Republica 2014 open-source_in_the_wildAcquia
 
2019-11-16 SPS Leicester - Integrate Power Platform with SharePoint
2019-11-16 SPS Leicester - Integrate Power Platform with SharePoint2019-11-16 SPS Leicester - Integrate Power Platform with SharePoint
2019-11-16 SPS Leicester - Integrate Power Platform with SharePointPatrick Guimonet
 
Fast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 ExpoFast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 ExpoRashmi Sinha
 
Agencies Developer Products
Agencies Developer ProductsAgencies Developer Products
Agencies Developer ProductsJeff Eddings
 
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...Hiram Fleitas León
 
Microsoft Teams and Planner Global Azure Bootcamp
Microsoft Teams and Planner Global Azure BootcampMicrosoft Teams and Planner Global Azure Bootcamp
Microsoft Teams and Planner Global Azure BootcampHeather Newman
 
MVP & Startup, with OpenSource Software and Microsoft Azure
MVP & Startup, with OpenSource Software and Microsoft AzureMVP & Startup, with OpenSource Software and Microsoft Azure
MVP & Startup, with OpenSource Software and Microsoft AzureFrancesco Fullone
 
Cloud Study Jam - 1 (AI/ML & GCP)
Cloud Study Jam - 1 (AI/ML & GCP)Cloud Study Jam - 1 (AI/ML & GCP)
Cloud Study Jam - 1 (AI/ML & GCP)Shiv Prakash
 
Freelancer profile / Pasi Vuorio
Freelancer profile / Pasi VuorioFreelancer profile / Pasi Vuorio
Freelancer profile / Pasi VuorioPasi Vuorio
 
The first hundred thousand users are always the hardest
The first hundred thousand users are always the hardestThe first hundred thousand users are always the hardest
The first hundred thousand users are always the hardestFakeSteve
 
First 100k users are always the hardest
First 100k users are always the hardestFirst 100k users are always the hardest
First 100k users are always the hardestRashmi Sinha
 
Sarada_profile
Sarada_profileSarada_profile
Sarada_profilesarada das
 
Hire Professional PHP Developer
Hire Professional PHP DeveloperHire Professional PHP Developer
Hire Professional PHP Developerdeveloperonrents
 
CloudEngine at Dev8D 2011
CloudEngine at Dev8D 2011CloudEngine at Dev8D 2011
CloudEngine at Dev8D 2011Nick Freear
 

Similar to Gearman To Distribute Server Load (20)

Republica 2014 open-source_in_the_wild
Republica 2014 open-source_in_the_wildRepublica 2014 open-source_in_the_wild
Republica 2014 open-source_in_the_wild
 
PHP Developer
PHP DeveloperPHP Developer
PHP Developer
 
2019-11-16 SPS Leicester - Integrate Power Platform with SharePoint
2019-11-16 SPS Leicester - Integrate Power Platform with SharePoint2019-11-16 SPS Leicester - Integrate Power Platform with SharePoint
2019-11-16 SPS Leicester - Integrate Power Platform with SharePoint
 
Fast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 ExpoFast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 Expo
 
Agencies Developer Products
Agencies Developer ProductsAgencies Developer Products
Agencies Developer Products
 
PHP Developer
PHP DeveloperPHP Developer
PHP Developer
 
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
 
Microsoft Teams and Planner Global Azure Bootcamp
Microsoft Teams and Planner Global Azure BootcampMicrosoft Teams and Planner Global Azure Bootcamp
Microsoft Teams and Planner Global Azure Bootcamp
 
MVP & Startup, with OpenSource Software and Microsoft Azure
MVP & Startup, with OpenSource Software and Microsoft AzureMVP & Startup, with OpenSource Software and Microsoft Azure
MVP & Startup, with OpenSource Software and Microsoft Azure
 
Info session 2021
Info session 2021Info session 2021
Info session 2021
 
Cloud Study Jam - 1 (AI/ML & GCP)
Cloud Study Jam - 1 (AI/ML & GCP)Cloud Study Jam - 1 (AI/ML & GCP)
Cloud Study Jam - 1 (AI/ML & GCP)
 
Freelancer profile / Pasi Vuorio
Freelancer profile / Pasi VuorioFreelancer profile / Pasi Vuorio
Freelancer profile / Pasi Vuorio
 
The first hundred thousand users are always the hardest
The first hundred thousand users are always the hardestThe first hundred thousand users are always the hardest
The first hundred thousand users are always the hardest
 
First 100k users are always the hardest
First 100k users are always the hardestFirst 100k users are always the hardest
First 100k users are always the hardest
 
Sarada_profile
Sarada_profileSarada_profile
Sarada_profile
 
Low and No Cost ICT tools
Low and No Cost ICT tools   Low and No Cost ICT tools
Low and No Cost ICT tools
 
Hire Professional PHP Developer
Hire Professional PHP DeveloperHire Professional PHP Developer
Hire Professional PHP Developer
 
Ice dec05-04-wan leung
Ice dec05-04-wan leungIce dec05-04-wan leung
Ice dec05-04-wan leung
 
CloudEngine at Dev8D 2011
CloudEngine at Dev8D 2011CloudEngine at Dev8D 2011
CloudEngine at Dev8D 2011
 
Purva pravesh
Purva praveshPurva pravesh
Purva pravesh
 

More from Mindfire Solutions (20)

Physician Search and Review
Physician Search and ReviewPhysician Search and Review
Physician Search and Review
 
diet management app
diet management appdiet management app
diet management app
 
Business Technology Solution
Business Technology SolutionBusiness Technology Solution
Business Technology Solution
 
Remote Health Monitoring
Remote Health MonitoringRemote Health Monitoring
Remote Health Monitoring
 
Influencer Marketing Solution
Influencer Marketing SolutionInfluencer Marketing Solution
Influencer Marketing Solution
 
ELMAH
ELMAHELMAH
ELMAH
 
High Availability of Azure Applications
High Availability of Azure ApplicationsHigh Availability of Azure Applications
High Availability of Azure Applications
 
IOT Hands On
IOT Hands OnIOT Hands On
IOT Hands On
 
Glimpse of Loops Vs Set
Glimpse of Loops Vs SetGlimpse of Loops Vs Set
Glimpse of Loops Vs Set
 
Oracle Sql Developer-Getting Started
Oracle Sql Developer-Getting StartedOracle Sql Developer-Getting Started
Oracle Sql Developer-Getting Started
 
Adaptive Layout In iOS 8
Adaptive Layout In iOS 8Adaptive Layout In iOS 8
Adaptive Layout In iOS 8
 
Introduction to Auto-layout : iOS/Mac
Introduction to Auto-layout : iOS/MacIntroduction to Auto-layout : iOS/Mac
Introduction to Auto-layout : iOS/Mac
 
LINQPad - utility Tool
LINQPad - utility ToolLINQPad - utility Tool
LINQPad - utility Tool
 
Get started with watch kit development
Get started with watch kit developmentGet started with watch kit development
Get started with watch kit development
 
Swift vs Objective-C
Swift vs Objective-CSwift vs Objective-C
Swift vs Objective-C
 
Material Design in Android
Material Design in AndroidMaterial Design in Android
Material Design in Android
 
Introduction to OData
Introduction to ODataIntroduction to OData
Introduction to OData
 
Ext js Part 2- MVC
Ext js Part 2- MVCExt js Part 2- MVC
Ext js Part 2- MVC
 
ExtJs Basic Part-1
ExtJs Basic Part-1ExtJs Basic Part-1
ExtJs Basic Part-1
 
Spring Security Introduction
Spring Security IntroductionSpring Security Introduction
Spring Security Introduction
 

Recently uploaded

OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingShane Coughlan
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxUnderstanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxSasikiranMarri
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesKrzysztofKkol1
 
Mastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptxMastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptxAS Design & AST.
 
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdfSteve Caron
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLionel Briand
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfkalichargn70th171
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shardsChristopher Curtin
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jNeo4j
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITmanoharjgpsolutions
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecturerahul_net
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 

Recently uploaded (20)

OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxUnderstanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
 
Mastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptxMastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptx
 
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdfPros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh IT
 
Understanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM ArchitectureUnderstanding Flamingo - DeepMind's VLM Architecture
Understanding Flamingo - DeepMind's VLM Architecture
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 

Gearman To Distribute Server Load

  • 1. An application framework to distribute work Presenter: Biswajit Maji, Mindfire Solutions Date: 1/04/2014
  • 2. Presenter: Biswajit Maji, Mindfire Solutions OCP – Oracle certified professional developer About Me Skills : Mysql, php, jQuery, html, VCS(svn, git), Webservices, Linux Connect Me: Facebook: https://www.facebook.com/biswajitmaji.tech LinkedIn: http://www.linkedin.com/profile/view?id=133902574 Google+: https://plus.google.com/105085556902166170611/ Contact Me: Email: biswajitm@mindfiresolutions.com / biswajitmaji.tech@gmail.com Skype: mfsi_biswajitm
  • 3. Presenter: Biswajit Maji, Mindfire Solutions AGENDA • Why Gearman • What is Gearman • Terminology • How Gearman works • Available APIs • Advantages
  • 4. Presenter: Biswajit Maji, Mindfire Solutions Why GEARMAN
  • 5. Presenter: Biswajit Maji, Mindfire Solutions What is Gearman Open source application framework To distribute appropriate computer tasks to multiple computers So large tasks can be done more quickly In some cases, load balancing rather than raw speed may be the main goal A Web server, can use Gearman to send tasks to another computer which is optimized to do that particular task (may be running on a different architecture, using another operating system, or loaded with a different computer language better suited to a particular operation). It is an application framework to distribute work
  • 6. Presenter: Biswajit Maji, Mindfire Solutions Terminology Create jobs to be run and send them to a Gearman server Register with a Gearman server and grab jobs to run Coordinates assignment from clients to workers, handles restarts Client Worker Gearman Server
  • 7. Presenter: Biswajit Maji, Mindfire Solutions Gearman Working Structure
  • 8. Presenter: Biswajit Maji, Mindfire Solutions Gearman Work Flow
  • 9. Presenter: Biswajit Maji, Mindfire Solutions How Gearman works
  • 10. Presenter: Biswajit Maji, Mindfire Solutions Available Client and Worker Libraries .NET C Django Drizzle Java JMS Lisp MySQL Node.js Perl PHP Postgre SQL Python Ruby Twisted ...
  • 11. Presenter: Biswajit Maji, Mindfire Solutions Advantages Speed up work Load balance since the job server only sends new jobs to idle workers Parallel and asynchronous work Scales well Architecture-based workload distributing Fault tolerance using multiple server. Can be used as an interface between a client and a worker written in different languages.
  • 12. Presenter: Biswajit Maji, Mindfire Solutions References http://gearman.org/ http://blog.zitec.com/2011/parallel-processing-with-php-and-gearman/ http://www.phpclasses.org/blog/post/108-Distributing-PHP-processing-with-G http://www.cirello.org/2012/05/scalable-architecture-with-gearman-job-server/
  • 13. Presenter: Biswajit Maji, Mindfire Solutions Question and Answer
  • 14. Presenter: Biswajit Maji, Mindfire Solutions Thank you