The moose likes EJB and other Java EE Technologies and the fly likes cache and pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "cache and pool" Watch "cache and pool" New topic

cache and pool

eswar kumar
Ranch Hand

Joined: Oct 20, 2002
Posts: 98
what is the difference betweeen caching and instance pooling ?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Caching = Storing data locally (in memory) to prevent recurring database queries when the data changes infrequently in the database.
Instance pooling = Re-using object instances to prevent the overhead of creating new objects for each incoming request.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: cache and pool
It's not a secret anymore!