Skip to content

AymenFJA/ZeroMQ-Function-Executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple zmq multiprocessing function executor.

Why not rabbitmq ?

Rabbitmq module is coming soon, i want to see what are the diferences that RMQ is offering compared to the ZMQ.

Usage

1- Give the zmq_client.py the function you want to execute and submit.

2- Run the zmq_server.py

3- The executor part will check the zmq queue,check for module to load and will get the function and create a processe for each task to execute it on the fly.

what does it is support :

I have tried 4 different functions to execute, example :

    msg = {
            "modules" :"",
            "executable" :'print "hello world"',
            "arguments":" "}
            
    msg = {"modules" :"numpy",
            "executable" :'numpy.sin(1+2)',
            "arguments":" "}
            
    msg = {"modules" :"os",
           "executable" :'os.system(ls -all)',
           "arguments":" "}
           
    msg = {"modules" :"time",
           "executable" :'time.time()',
           "arguments":" "}

About

Multiprocessing ZMQ based on the fly function executor .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages