On 6/6/05, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
> um, that's what I thought. Was chatting with coworkers today about this too.
> Their concern was thread use. Threads used in the async gateway are part of
> the pool in the JRun instance, no? So, if you have a box getting good load,
> introducing a script that runs in this parallel fashion, this would eat up
> more threads, eh? So, is it really beneficial? I suppose the answer is, 'it
> depends', but curious on thoughts on this.

Well, yes, "it depends". I've posted a series of three articles on my
blog about asynchronous development that covers some of the issues
that you can run into by over-parallelizing your applications:

http://corfield.org/search/asynchronous+development

Whether parallel execution will help or not depends on a lot of
factors so there are very few hard rules in this area, I'm afraid. If
it's any help, here's a couple of the things we're using the
asynchronous gateway for:

- fetching large files from one server to another

- invoking slow web services to post data updates

Neither of these need the calling code to wait for the result and in
both cases the main line execution does not call the asynchronous task
in all cases.
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208765
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to