× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



David Gibbs skrev den 08-03-2008 20:02:
Ashish Kulkarni wrote:
but there is a draw back to this process, it can only
handle one request at a time, unless you use threads
in java to handle multiple request at a time, i do not like to use it is a absolute must.

Threads aren't very difficult at all ... I use them all the time.
Threads are very expensive objects to create so you should always use a thread pool for things like this, which allows you to avoid killing performance with new Threads if the Java stuff cannot keep up with the RPG requests.

You should also consider how you want the system to behave during peaks, because it might well be sufficient with e.g. ten threads in the pool and anymore than ten requests will just have to wait.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.