|
|
Thread Tools | Display Modes |
01-03-2010, 06:44 PM | #1 |
Member
Join Date: Jan 2010
Posts: 58
Rep Power: 15 |
What are object pooling and connection pooling and difference? Where do we set the M
Object pooling lets you control the number of connections you use, as opposed to connection pooling, where you control the maximum number reached. When using connection pooling, creation is on the same thread, so if there is nothing in the pool, a connection is created on your behalf. With object pooling, the pool might decide to create a new object. However, if you have already reached your maximum, it instead gives you the next available object. This is crucial behavior when it takes a long time to create an object, but you do not use it for very long. Enforcement of minimums and maximums. This is not done in connection pooling. The maximum value in object pooling is very important when trying to scale your application. You might need to multiplex thousands of requests to just a few objects. |
01-03-2010, 08:18 PM | #2 |
Tech. Support
Join Date: Dec 2009
Location: Bangalore
Posts: 2,771
Rep Power: 35 |
Nice information dude. Agli baar interview ki preparation ke liye tumhare paas hi aaoonga.
__________________
|
01-03-2010, 08:27 PM | #3 |
Member
Join Date: Dec 2009
Posts: 152
Rep Power: 15 |
You are real DotNet guru.. thanks for sharing your knowledge with us..
|
Bookmarks |
Tags |
.net, connection pooling, interview questions, object pooling |
|
|