Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 941469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:07:27+00:00 2026-05-15T22:07:27+00:00

What is the exact difference between object pool and connection pool? Is there any

  • 0

What is the exact difference between object pool and connection pool? Is there any difference to in their algorithm for utilizing memory.
msdn says “Object pooling lets you control the number of connections you use, as opposed to connection pooling, where you control the maximum number reached.”
What exactly this mean?

Please help me to clarify above.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:07:28+00:00Added an answer on May 15, 2026 at 10:07 pm

    A connection pool is an object pool that contains connection objects.

    “Object pooling lets you control the number of connections you use, as opposed to connection pooling, where you control the maximum number reached.”

    An object pool allows an application to limit the number of instances in use at any one time. If the application needs more instances than the limit, the object pool has to decide how to deal with that problem. There are a number of possible strategies:

    • return null
    • throw an exception
    • block until an instance is available
    • increase the size of the pool

    A connection pool is an object pool, so it has exactly the same decision to make.

    A specific implementation of an object pool (or connection pool) could use any one of these strategies, or several in combination.

    In my opinion the statement as quoted is misleading unless it is talking about specific implementations.

    A Simple Object Pool Example

    A pool has some configuration parameters. A simple pool might have a minimum_size and a maximum_size. When the pool is first available for use it will contain minimum_size objects. As clients ask for these objects, the pool will contain fewer unallocated objects. This number can also increase when clients return objects to the pool.

    At some point the pool might reach a state where it has no unallocated objects, but one or more clients requests an object. At this point, as long as the pool hasn’t reached maximum_size, it can create some new objects and add them to the pool. It can now return objects to the clients.

    If the pool has reached maximum_size, it cannot increase the size of the pool, so it has to deal with the clients in a different way – let’s say that it throws an ObjectPoolExhausted exception.

    A little while later, some clients return objects to the pool, and it can carry on as usual until it runs out of objects again.

    Back to the Question

    The MSDN article is saying that its specific object pool implementation will increase the size of the pool up to the specified maximum. When the maximum is reached, unlike the example above, instead of throwing an exception, it makes the client wait until an object is returned to the pool, and then gives the newly returned object to the waiting client.

    The MSDN article says that its specific connection pool implementation does not have a maximum size parameter – it will keep creating new connections to meet demand (eventually it will hit some system limit and the request will fail in some way that isn’t specified).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can any one describe the exact difference between loose coupling and tight coupling in
in C++, what is the exact difference between both following dynamic object creations :
Can anybody show with some examples the exact difference between .. and ... operator?
I need to know the exact difference between: <form method=POST action=https://mywebsite/signon.php> <input name=harv_acc value=940322903
Can anybody explain (or suggest a site or paper) the exact difference between triggers,
I would like to know what is the exact difference between a class snippet
Exact Duplicate: In C# what is the difference between myint++ and ++myint? Hopefully this
I have 2 classes that have exact two functions. The difference between them is
What is the exact difference between having myMethod(Thing& a) or myMethod(Thing a)? Because later
What is the exact difference between the scriptlet tags <%= some code %> and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.