search

Home  >  Q&A  >  body text

An Nginx+PHP request processing problem is extremely slow, please help!

Now there is a php page, which will use http requests to request some data from itself during data processing. In this case, nginx execution is extremely slow (it has not been encountered in the apache php environment). This Why? How to solve it?

The environment is: Nginx php redis mysql

The reason for writing this is that the same program will be deployed on multiple servers, so some common data uses the stupid method http Request to obtain

孙艺飞孙艺飞2092 days ago1341

reply all(1)I'll reply

  • 孙艺飞

    孙艺飞2019-04-19 14:38:01

    To add: The page requested by http will first get the redis data. If redis does not get the data from the database, then write it to redis and return the corresponding data.

    There is no lag on the page when redis has data. Only when redis is deleted and regenerated, it will be very slow and the amount of data is not large. The maximum is 49914 characters.

    reply
    0
  • Cancelreply