This is a publisher suscriber simple model where a master function decides who is going to write in a exchange FanOut queue, where the information written is distributed to all the other queues binded to it.
- First you need to have pywren correctly set up and have your configuration file with all the URLs in the path ~/.pywren_config
It's very important to have an entry for RabbitMQ in this file to correctly execute the application.
You can find how to do it in the following repository https://github.com/pywren/pywren-ibm-cloud
-
Execute the file model1.py :
python3 model1.py (number_of_functions)
- First you need to have pywren correctly set up and have your configuration file with all the URLs in the path ~/.pywren_config
It's very important to have an entry for RabbitMQ in this file to correctly execute the application.
You can find how to do it in the following repository https://github.com/pywren/pywren-ibm-cloud
-
Execute the file model2.py :
python3 model2.py (number_of_functions)