A Python based scalable back-end service using RabbitMQ's pika library.
-
Start the reader component:
python reader.py
-
Start a couple of independent receiver components by assigning them an id:
python receiver.py 1
,python receiver.py 2
etc. -
Start the sender component:
python sender.py
or
python sender.py <urls>
with<urls>
being a file with urls, one per line. -
receiver.py
receives the requests for downloading the screenshots and downloads them. -
Request a screenshot by querying it to
sender.py
asget <url>
(<url> should be exactly the same as requested previously, or as in the<urls>
file, otherwise it will not be found in the existing screenshots, and a new request for downloading will be issued.
- Linux
- RabbitMQ
- RabbitMQ (pika) for python
- gnome-web-photo should be already built-in in Linux.