This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instance Pooling

 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can any body explain what is mean by Instance Pooling ?
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Graham Thorpe:
Hi can any body explain what is mean by Instance Pooling ?


Rather than creating a new object instance for each request and destroying that object instance after the request is served a number of object instances is created and held in an instance pool. When a "request" is received one (random) instance is selected from the instance pool to process that request. That instance returns to the pool after it has completed the request - ready to be selected for another request.

Pooling is usually used where you have to serve the requests of a large number of clients simultaneously. If those (stateless) requests come in relatively infrequently from each client, you can serve all those clients with a small number of object instances, conserving server resources, while running only a single thread on each object instance.
 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK YOU FOR YOUR GUIDLINES..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic