What is Gearman?
German?
GEARMAN != GERMAN
GEARMAN✤   Application Framework to distribute work✤   System where server accepts tasks from clients, sends them to    wo...
MANAGE  R
MANAGE   RGEARMA   N
Client     Client         Client     Gearman Job Server        (gearmand)Worker    Worker      Worker
✤   Open Source✤   Multi-language✤   Flexible✤   Fast✤   Embeddable✤   No single point of failure
Gearman Client<?php$client= new GearmanClient();$client->addServer();print $client->do("reverse", "Apple pie");
Gearman Worker#!/usr/bin/pythonimport gearmandef my_reverse(job):   return reverse(job.data)gm_worker = gearman.GearmanWor...
Reverse                                 Reverse        “Apple pie”         “Apple pie” Worker Client             Gearman  ...
Campaigns QueueCampaigns To Contacts
Campaigns Queue   Queue DaemonCampaigns To Contacts
Campaigns Queue     Queue Daemon                            Gearman ClientCampaigns To Contacts      Gearman Job Server
Campaigns Queue              Queue Daemon                                      Gearman Client Campaigns To Contacts       ...
Campaigns Queue              Queue Daemon                                      Gearman Client Campaigns To Contacts       ...
Campaigns Queue              Queue Daemon                                      Gearman Client Campaigns To Contacts       ...
Campaigns Queue              Queue Daemon                                      Gearman Client Campaigns To Contacts       ...
Campaigns Queue               Queue Daemon                                           Gearman Client Campaigns To Contacts ...
Campaigns Queue               Queue Daemon                                           Gearman Client Campaigns To Contacts ...
Campaigns Queue               Queue Daemon                                           Gearman Client Campaigns To Contacts ...
Questions?
Gearman
Upcoming SlideShare
Loading in...5
×

Gearman

421

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
421
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Gearman

  1. 1. What is Gearman?
  2. 2. German?
  3. 3. GEARMAN != GERMAN
  4. 4. GEARMAN✤ Application Framework to distribute work✤ System where server accepts tasks from clients, sends them to workers, and dispatches results back✤ It “does nothing” except telling workers what to do and getting “thank you” from clients
  5. 5. MANAGE R
  6. 6. MANAGE RGEARMA N
  7. 7. Client Client Client Gearman Job Server (gearmand)Worker Worker Worker
  8. 8. ✤ Open Source✤ Multi-language✤ Flexible✤ Fast✤ Embeddable✤ No single point of failure
  9. 9. Gearman Client<?php$client= new GearmanClient();$client->addServer();print $client->do("reverse", "Apple pie");
  10. 10. Gearman Worker#!/usr/bin/pythonimport gearmandef my_reverse(job): return reverse(job.data)gm_worker = gearman.GearmanWorker()gm_worker.register_task(reverse, my_reverse)while True: gm_worker.work()
  11. 11. Reverse Reverse “Apple pie” “Apple pie” Worker Client Gearman JobGearman Server Gearman Client “eip elppA” “eip elppA” Worker API API
  12. 12. Campaigns QueueCampaigns To Contacts
  13. 13. Campaigns Queue Queue DaemonCampaigns To Contacts
  14. 14. Campaigns Queue Queue Daemon Gearman ClientCampaigns To Contacts Gearman Job Server
  15. 15. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker
  16. 16. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker
  17. 17. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker Messages Queue
  18. 18. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker WorkerClient Client Client Client Messages Queue Gearman Job Server
  19. 19. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker WorkerClient Client Client Client Messages Queue Gearman Job Server Worker Worker Worker Worker Worker
  20. 20. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker WorkerClient Client Client Client Messages Queue Gearman Job Server Worker Worker Worker Worker Worker
  21. 21. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker WorkerClient Client Client Client Messages Queue Gearman Job Server Worker Worker Worker Worker Worker
  22. 22. Questions?

×