Thursday, October 28, 2010

Coherence: One thread is not enough!


You inform me, that no Part must be missing if the finest Effects are to be had, but you can not but know how hard it is to be sure.


- "The Case of Charles Dexter Ward", H.P. Lovecraft
It surprised me no end to find out that the when using a Distributed Cache for Coherence, the default number of daemon threads used to process incoming requests was zero, meaning that all work is performed on the service thread for that cache. This will make a major impact when you are using a cache to handle a large number of concurrent requests. Fortunately, it's not hard to fix this.