In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of what the php high concurrency processing method is, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this php high concurrency processing method. Let's take a look at it.
Treatment method
(1) Separation of applications from static resources
Place static resources (js,css, pictures, etc.) on a dedicated server.
(2) Page caching
Using the page cache generated by the application, you can save a lot of cpu resources. If some pages need to convert data frequently, you can use ajax for processing.
(3) clustering and distribution
The cluster and multiple servers have the same function and mainly play a diversion role. Separate different businesses to different servers, and multiple servers may be needed to process a request, which can improve the processing speed of a request. It is divided into static resource cluster and application cluster. The latter approach is complex and often requires consideration of session synchronization.
(4) reverse proxy
The server that the client accesses directly is not the server that provides the service directly, but takes the resources from other servers and returns the results to the user.
Broker and reverse proxy server:
The proxy server obtains the resource through access and then returns the result. For example, the proxy server accesses the external network. When we normally access one server, the server automatically calls another server, the reverse proxy server.
We take the initiative to use the proxy server for our service and do not need to have our own domain name; the reverse proxy server is for our own use, we do not know and do not have our own domain name.
(5) CDN
CDN is a special cluster page buffer server. The main difference between it and the general cluster page buffer server is that its storage location and request allocation are different.
CDN servers are distributed all over the country, and after receiving a request, the request is assigned to the most appropriate CDN server node to obtain the data. Each of its CDN nodes is a page cache server.
With the development of science and technology, we have come up with a new term for dealing with some visits, that is, high concurrency. Generally speaking, if there are a lot of people visiting during a period of time, the server must be under a lot of pressure.
Description
Concurrency in the network era, high concurrency usually refers to concurrent access. In other words, at a certain time, how many visits come at the same time.
This is the end of the article on "what is the method of high concurrency processing in php". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what is the method of php high concurrency processing". If you want to learn more knowledge, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un