• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection pooling using which design pattern ?  RSS feed

 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

connection pooling is using which design pattern ?. I have read somewhere else it is using singleton pattern ?. Could someone explain about this ?

Or give some links ?

Thanks
Praveen.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need to use the Singleton pattern together with a connection pool. I'd actually advise against it.

There are a number of other patterns that could be used in combination with a connection pool - for example the Proxy pattern. It really depends very much on the specific requirements and design problems.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!