Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Distributed FIFO queues?

by jettero (Monsignor)
on Aug 15, 2007 at 15:00 UTC ( [id://632760]=note: print w/replies, xml ) Need Help??


in reply to Re: Distributed FIFO queues?
in thread Distributed FIFO queues?

How on earth does that module send coderefs to other machines? That's magic.

-Paul

Replies are listed 'Best First'.
Re^3: Distributed FIFO queues?
by Rhandom (Curate) on Aug 15, 2007 at 22:58 UTC
    How on earth does that module send coderefs to other machines? That's magic.

    (me - confused... ) Um. Neither I nor the OP mentioned sending coderefs to other machines. If you are basing this off of the part where I said "should be able to do just about anything," I am sorry I wasn't more clear. I also think that it would not allow you to achieve world domination or various other things unrelated to message queuing (which I didn't specify specifically).

    On another note - I think that if you wanted to open up your system to arbitrary code execution, and if your coderefs were simple enough, you could pass them through the message queue using B::Deparse and eval.

    I guess really that module doesn't do anything that you don't tell it too.

    my @a=qw(random brilliant braindead); print $a[rand(@a)];
      For the record, I mistook the on_complete trigger from the example for sending a coderef to one of the job servers. Upon re-reading it, I see only the string code (1+2) goes to the servers... my bad.
      use Gearman::Client; my $client = Gearman::Client->new; $client->job_servers('127.0.0.1', '10.0.0.1'); $taskset->add_task( "add" => "1+2", { on_complete => sub { ... } });

      It's still pretty magical imo, but nolonger seems like some kind of dark arts.

      -Paul

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://632760]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-16 18:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found