> From: Pid [mailto:p...@pidster.com]
> Subject: Re: Performance with many small requests
> 
> Would a single thread executor service alongside an atomic counter be
> useful here?  (my concurrency knowledge isn't so hot).

Sounds like overkill just for ordering.  Synchronization with the single thread 
doing the logging work would still be necessary, so nothing's really gained.

> You could be dumping runnables into it during the post which would
> return quickly for the next request.  You'd have to consider
> exec.shutdown() & exec.shutdownNow() in your servlet destroy to ensure
> you didn't drop data during a shutdown or app restart

Way, way too much complexity for the problem at hand.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to