If the work behind your SOAP process is simple (which it sounds like it is), a significant portion of your time is spent opening the connection and shoving the data back and forth with very little time actually processing. This leads to a few possibilities:

Bulk up your soap call. Instead of just doing one piece of work, send a whole list of items to do. Now your paying the connection cost once for 10x (or more) processes instead of 1x.

Threaded soap calls. Most SOAP connections and servers can't process one call quickly, but they can handle a bunch at the same time. This lets the calls overlap so you can get more done in the same time. From some rough tests, I think you can thread SOAP::Lite if your careful and test well (I wont guarentee this).

Dump SOAP and open a simple telnet/TCPIP connection to send strings to eval back and forth. Or you could use FreezeThaw or something else to encode data structures to send back and forth. You can see a big benifit in this if you are able to keep a connection open for a while and many calls instead of constantly opening new connections. This will require much more work and testing to get up and going than the SOAP route. Start with an echo server/client and build from there. Probably though, there is a better solution. Also, don't forget about security issues inherent with this method.

Fendaria

In reply to Re: Faster than soap ? by Fendaria
in thread Faster than soap ? by jeteve

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.