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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:00:09+00:00 2026-05-26T10:00:09+00:00

Let say I use Redis to store my session in PHP (previously I use

  • 0

Let say I use Redis to store my session in PHP (previously I use mySql 5.0), and the Redis Server is in different server from the PHP App server. So, when there is request coming in, session will be created / load from Redis, it will take one socket from the PHP App Server. When if there is 100 concurrent requests, will there be 100 sockets to Redis? or just one?

  • 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-26T10:00:10+00:00Added an answer on May 26, 2026 at 10:00 am

    Redis doesn’t have any built-in connection pooling and I don’t think current Redis bindings for PHP offer anything like that, so by default there would be one socket/connection opened per PHP thread. So if your web server (Apache/Nginx/IIS) tries to service those 100 concurrent requests with 100 PHP threads, there would be 100 connections to Redis.

    If the server is instead configured to limit the number of PHP threads (more common I think) then those 100 concurrent requests will be serviced by maybe 5 PHP threads (each handling ~20 requests, one-after-the-other) which means at any time there would be 5 open connections to Redis.If they are not persistent connections then you’ll have 100 connections to Redis and 100 disconnects, with only 5 open at any given moment. If the connections are persistent then you’ll have just 5 connections open, closing only when if the parent PHP thread terminates.

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

Sidebar

Related Questions

I have here is an example directly got from express document. app.use(express.cookieParser()); app.use(express.session({ secret:
First, we create classes that represent db entities, ok, done. Let's say we use
Let's say I need to use Python and C++. I can call Python function
Let's say I'm creating a program in C that needs to use a tempfile.
Let's say I have some_value = 23 I use the Integer 's times method
Let's say I have a hashref constant like the following: use constant DOGS =>
Let's say I have the following XML: <Account> <AccountExpirationDate>6/1/2009</AccountExpirationDate> </Account> I want to use
Can someone provide a simple example of how to properly use Html.RadioButtonFor? Let's say
I've a file in the config directory, let's say my_policy.txt. I want to use
Consider: print $foo, AAAAAAAA, $foo, BBBBBBBB; Let's say I want to use this code

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.