Due to historical reasons, our system is deployed on windows server and apache is used as a web service. and cannot be replaced.
Current situation: Another department pushes data to our system through API, we receive the data and then store it in the database.
The problem encountered is: the amount of data pushed is large and there are many requests, which causes apache to be blocked and the web system page cannot even be opened. Most of the time, after restarting apache, it dies again within half a minute.
How to deal with and optimize under the existing environment configuration? Use a queue?
The performance of apache under win is much worse than that under Linux. If you really want to optimize, 1: Install an fcgid module and call php through fastcgi 2: Lighten the PHP framework, remove ORM, etc., evaluate the number of visits to the existing system, and evaluate the maximum load capacity of the existing system. Use pressure tools such as webbench, jmeter, etc., and add machines when appropriate
Apache does not need to be optimized under windows, because if it is under windows, it must be iis
Don’t take mistakes as mistakes, otherwise you will go further and further down the wrong road