Personally, rather than a central application parcelling data up, dispatching it to one of a list of known workers, then polling the workers for their results before retrieving them, and dispatching the next batch, I'd turn things around. Use the web server model--and a websever too.

Workers hit one page to get data, and another page to return results. The central controller can be any webserver you like from Apache2 to HTTP::Daemon.

The workers could use LWP to fetch the work_to_do. The page they fetch would contain the data to process and even an embedded code section to use to process it, plus a form on which to return the results. That easily allows for multiple uses and clean segregation of the returned data as the code comes from the page called and the processed data is dispatched back to the address referenced by the form.

Testing can be done by accessing the server using a standard web browser and pasting "processed data". If the application needs to deal with large volumes of return data, use POST instead of GET.

The security of the application can use the standard webserver authentication mechanisms. Assuming that the server is properly controlled and vetted, I'm assuming a LAN/intranet environment, then the code segments should be as secure as the server is. You can even use https: to provide encryption if required.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

In reply to Re: Perl Grids by BrowserUk
in thread Perl Grids by Eyck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.