• Post Reply Bookmark Topic Watch Topic
  • New Topic

Instance Pooling  RSS feed

 
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
Boost this thread!