Re: [Simpleweb-Support] Non Executor-based Asynchronous Service
Brought to you by:
niallg
From: Luis A. <lan...@gm...> - 2014-06-13 09:40:54
|
I see that there are exactly 8 servicing threads for requests by default, in the pool. If I don't use an Executor, and I get 8 requests that are long-running, or blocking, then any other requests that come in must wait to be serviced. On Thu, Jun 12, 2014 at 12:30 PM, Niall Gallagher <gal...@ya... > wrote: > Then dont use an Executer, put the Request and Response in a hashmap and > send the reply whenever you want. Its fully asynchronous already... > > -------------------------------------------- > On Thu, 12/6/14, Luis Antunes <lan...@gm...> wrote: > > Subject: Re: [Simpleweb-Support] Non Executor-based Asynchronous Service > To: "Simple support and user issues" < > sim...@li...> > Received: Thursday, 12 June, 2014, 9:21 AM > > Thanks > everyone for your responses, but perhaps I wasn't very > clear in my original message. I am simply trying to > implement a Container that does not create a new thread for > every request that requires an asynchronous response. In the > Asynchronous services example I quoted in the original post, > a java.util.concurrent.Executor is used, and that does > create a new thread for each request. I can't see an > obvious way to use a single separate thread and NIO in this > case. > > > On Wed, > Jun 11, 2014 at 10:20 PM, Brad McEvoy <br...@mc...> > wrote: > > > > On 12/06/14 14:06, Niall Gallagher wrote: > > > I have also implemented WebSockets for Simple, ill > release it within a few months when I get some time. > > That would be cool :) > > > > Simple is integrated into milton.io > (webdav server framework) and while > > most people use milton with servlets there are always some > using the > > simple integration, particularly for embedded webdav > servers. > > > > And push notifications are coming to webdav where websockets > will be the > > main transport mechanism. > > > > > ------------------------------------------------------------------------------ > > HPCC Systems Open Source Big Data Platform from LexisNexis > Risk Solutions > > Find What Matters Most in Your Big Data with HPCC Systems > > Open Source. Fast. Scalable. Simple. Ideal for Dirty > Data. > > Leverages Graph Analysis for Fast Processing & Easy Data > Exploration > > http://p.sf.net/sfu/hpccsystems > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from > LexisNexis Risk Solutions > Find What Matters > Most in Your Big Data with HPCC Systems > Open > Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing > & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |