Sunday, 15 August 2010

Apache Commons Pool LIFO vs FIFO -



Apache Commons Pool LIFO vs FIFO -

i'm wondering advantages of lifo stack vs fifo queue in implementation of pool apache commons pool. wouldn't more "secure" default fifo avoid getting timeout connections (opened @ start not used until peak hours) , avoid having test on idle?

i'd appreciate opinions. give thanks much.

some advantages lifo (the default) can be

the idle object evictor work more if turned on work may concentrated on smaller number of instances, reusing more used resources.

whether or not these benefits depends on pooled objects are, load distribution is, how of import maintain workload concentrated on little number of instances , how beneficial reuse more used resources.

you right using lifo can cause instances sit down idle in pool longer periods. if keeping pool trimmed downwards , concentrating load not advantages, timeouts problem , load distribution such fifo access works maintain instances fresh, configuration can create sense. why configuration alternative there.

apache pool

No comments:

Post a Comment