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

Gearman

on

  • 525 views

 

Statistics

Views

Total Views
525
Slideshare-icon Views on SlideShare
525
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Gearman Gearman Presentation Transcript

    • What is Gearman?
    • German?
    • GEARMAN != GERMAN
    • 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
    • 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.GearmanWorker()gm_worker.register_task(reverse, my_reverse)while True: gm_worker.work()
    • Reverse Reverse “Apple pie” “Apple pie” Worker Client Gearman JobGearman Server Gearman Client “eip elppA” “eip elppA” Worker API API
    • 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 Gearman Job ServerWorker Worker Worker Worker
    • Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker
    • Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker Worker Messages Queue
    • Campaigns Queue Queue Daemon Gearman Client Campaigns To Contacts Gearman Job ServerWorker Worker Worker WorkerClient Client Client Client Messages Queue Gearman Job Server
    • 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
    • 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
    • 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
    • Questions?