in reply to Re^5: Parallel Search using Thread::Pool
in thread Parallel Search using Thread::Pool

Hi,
Instead of instantiating a new perl instance of perl on other port can I use SOAP::Lite?
Actually I am using SOAP::Lite to create a Parallel Server so that any number of threads or process(I am not sure what am I going to use?) can be created on different web server at different Physical Location.()
Now If you look at it, there are two perl instances running<bt>1. Main Perl Instance i.e. (main.pl)
2. Which runs on separate server using SOAP::Lite(soap_para_search.pl).
In main.pl, I am creating session, cookies, search object for each sources to search etc. Now I can pass search objects and query using SOAP::Lite to soap_para_search.pl.
Now my queries are:(for threads)
  1. Can I use same server(main.pl) as Parallel Server? yes, I am using mod_perl.
  2. What will be the sample code? I am also using TT2 for display.
Thanks
  • Comment on Re^6: Parallel Search using Thread::Pool

Replies are listed 'Best First'.
Re^7: Parallel Search using Thread::Pool
by BrowserUk (Patriarch) on Jun 04, 2009 at 07:33 UTC
    I am using SOAP::Lite ... I am also using Template::Toolkit v2

    Your using those, but the threads--which you haven't yet decided whether to use or not--is responsible for the slowness of your app. Yeah right!

    1. Can I use same server(main.pl) as Parallel Server?

      No.

    2. What will be the sample code?

      Whatever sample code you chose to cut & paste.

    Your problem has nothing to do with threads (or processes, or the decision between the two) and everything to do with writing a web application which you apparently do not understand the first principles of.

    I cannot help you further.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Hi,
      Could you please tell how can I open up the connection(or request) between browser and Server till last set of recodes come.
      Thanks
        Could you please tell how can I open up the connection(or request) between browser and Server till last set of recodes come.

        I don't even understand the question. Does anyone?


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
        Hi shanu_040, BrowserUk said "I cannot help you further." , so no, I think he cannot tell you :(