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 8075757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:05:45+00:00 2026-06-05T15:05:45+00:00

Since REST is stateless, each request that comes in has no knowledge of the

  • 0

Since REST is stateless, each request that comes in has no knowledge of the previous request that comes in. Is connection pooling possible in this situation?

If connection pooling were to be implemented, it would open the connection pool and close it upon each request just like a standard database connection.

How can REST be implemented to take advantage of connection pooling?

  • 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-06-05T15:05:46+00:00Added an answer on June 5, 2026 at 3:05 pm

    You need to understand what is connection pooling (object pool), caching and difference.

    Connection pools are created to avoid the expense of creating these expensive resources. They are mostly created and stored somewhere and after being used, they return back to pool and can be used again. this was you avoid the expense of creating these resources over and over. such as database connections.

    for REST, how do you make a request to a REST service? lets say over HTTP via PUT,GET, POST etc. so you need HTTP connection. if you are worried about the server, depending on the server you are using, most of them uses threads.

    I have a feeling, you might be confused with caching and object pooling. with object pool, just like a thread pool, you create X amount of that object and store it in a pool (usually queue). Whenever you need one, you ask one from the pool. after you are done with it you return it to the pool.

    REST in connection pool context make too much sense.

    What you might want is caching… REST is stateless but each object has a unique identifier, so you can cache it based on that ID.

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

Sidebar

Related Questions

Has anyone been able to successfully integrate netbeans with Redmine since the new rest
Since I got my spaces replaced with   's, the previous question is answered,
Since type variables cannot hold poly-types, it seems that with Rank*Types we cannot re-use
I'm sure that there's a really simple solution to this that will make me
Edit: Since it appears nobody is reading the original question this links to, let
Since I can't find a chuffing job, I've been reading up on ReST and
We are currently designing a REST API that we want to publish in a
I'm learning to use the Glassfish 3 REST interface directly, since the admin web
I'm using WCF to communicate to a 3rd party REST/JSON service. Since it's WCF,
UPDATE I've accepted my answer since I believe that the OnePerRequest module shouldn't clear

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.