My Hindi Forum

Go Back   My Hindi Forum > Miscellaneous > Tech Talks
Home Rules Facebook Register FAQ Community

Reply
 
Thread Tools Display Modes
Old 01-03-2010, 06:44 PM   #1
DotNet
Member
 
Join Date: Jan 2010
Posts: 58
Rep Power: 15
DotNet is on a distinguished road
Default What are object pooling and connection pooling and difference? Where do we set the M

Object pooling is a COM+ service that enables you to reduce the overhead of creating each object from scratch. When an object is activated, it is pulled from the pool. When the object is deactivated, it is placed back into the pool to await the next request. You can configure object pooling by applying the ObjectPoolingAttribute attribute to a class that derives from the System.EnterpriseServices.ServicedComponent class.
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.
DotNet is offline   Reply With Quote
Old 01-03-2010, 08:18 PM   #2
jitendragarg
Tech. Support
 
jitendragarg's Avatar
 
Join Date: Dec 2009
Location: Bangalore
Posts: 2,771
Rep Power: 35
jitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant futurejitendragarg has a brilliant future
Default

Nice information dude. Agli baar interview ki preparation ke liye tumhare paas hi aaoonga.
__________________
jitendragarg is offline   Reply With Quote
Old 01-03-2010, 08:27 PM   #3
neha
Member
 
neha's Avatar
 
Join Date: Dec 2009
Posts: 152
Rep Power: 15
neha will become famous soon enough
Default

You are real DotNet guru.. thanks for sharing your knowledge with us..
neha is offline   Reply With Quote
Reply

Bookmarks

Tags
.net, connection pooling, interview questions, object pooling


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +5. The time now is 08:01 PM.


Powered by: vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
MyHindiForum.com is not responsible for the views and opinion of the posters. The posters and only posters shall be liable for any copyright infringement.