• Like
  • Save
Gearman
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Published

 

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
389
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. What is Gearman?
  • 2. German?
  • 3. GEARMAN != GERMAN
  • 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. MANAGE R
  • 6. MANAGE RGEARMA N
  • 7. Client Client Client Gearman Job Server (gearmand)Worker Worker Worker
  • 8. ✤ Open Source✤ Multi-language✤ Flexible✤ Fast✤ Embeddable✤ No single point of failure
  • 9. Gearman Client<?php$client= new GearmanClient();$client->addServer();print $client->do("reverse", "Apple pie");
  • 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. Reverse Reverse “Apple pie” “Apple pie” Worker Client Gearman JobGearman Server Gearman Client “eip elppA” “eip elppA” Worker API API
  • 12. Campaigns QueueCampaigns To Contacts
  • 13. Campaigns Queue Queue DaemonCampaigns To Contacts
  • 14. Campaigns Queue Queue Daemon Gearman ClientCampaigns To Contacts Gearman Job Server
  • 15. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker
  • 16. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker
  • 17. Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker Messages Queue
  • 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. 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. 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. 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. Questions?