What is the difference between object pooling and connection pooling?

 Posted by Tripati_tutu on 12/27/2010 | Category: C# Interview questions | Views: 10236 | Points: 40

In case of object pooling, you can control the number of connections. In this case the pool will decide whether the maximum is reached or not for creation of objects. If it reached to the maximum level then the next available object will returned back. The drawback is, it increases the time complexity for heavy objects.

In case of connection pooling, you can control the maximum number of connections reached. When you are using this pool, since there is nothing in the pool, still it will create connection on the same thread.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response