Overview: The code will take items off a work queue, post the information to an external web form, put the results in an out queue for further processing (by another process). The work queue will never become empty as new items from earlier on in the assembly line will continuously be added. I am fairly sure WWW::Mechanize is the one of the right tools for the job.
One of the first things I am not sure about is how to handle the work queue:
Error handling is also a concern. First, I want to be sure there is a good locking mechanism so two workers do not attempt to work on the same item from the work queue. Additionally, if there is a problem with the form processing I want it to be re-tried a configurable number of times before being placed in a "bad queue".
I also have no idea what my work queue should look like. Beyond a single flat file, very simplistic database, or a queue directory where each file is a work item - I don't have the first clue as to what to use.
Thanks in advance for your time and consideration in this matter.
L~R
In reply to Managing a web form submission work queue by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |