Distributed computing is a research direction in computer science. It studies how to divide a problem that requires very large computing power into many small parts, and then allocate these parts to multiple computers for processing, and finally put these parts into The calculation results are combined to get the final result.
#Distributed network storage technology is to store data dispersedly on multiple independent machines and devices. The distributed network storage system adopts a scalable system structure, uses multiple storage servers to share the storage load, and uses location servers to locate storage information. This not only solves the bottleneck problem of a single storage server in traditional centralized storage systems, but also improves the reliability of the system. performance, availability and scalability. (Recommended learning: PHP video tutorial)
php distributed refers to multiple servers processing different tasks, which refers to general business, such as multiple servers Processing logs are distributed to some servers, and some processing orders are distributed to some servers.
As a guarantee of collaborative development specifications and development efficiency, the framework has to be introduced into daily development. However, once the framework is added, it will inevitably affect the overall performance of the PHP interface.
The performance of php code based on php7 swoole has surpassed the statically compiled go language.
Laravel, the currently popular PHP framework, has indeed solved many standardization and development efficiency issues; however, its bloated architecture and encapsulation implemented in PHP have made its performance poor.
In view of this situation, this architecture chooses the c extension framework phalcon as the development framework to minimize the performance loss caused by the framework.
After deploying using the Web cluster method, the first thing to adjust is the user status information and attachment information. The user status can no longer be saved to the Session, the cache cannot use the file cache of the local Web server, and the attachments cannot be saved on the Web server.
Because it is necessary to ensure that the status of each web server in the cluster is completely consistent. Therefore, user status, cache, etc. need to be saved to a dedicated cache server, such as Memcache. Attachments need to be saved to cloud storage.
Web Load Balancing
Web load balancing (Load Balancing), simply put, is to allocate "work tasks" to our server cluster and use appropriate allocation methods , very important for protecting the web server at the backend.
The above is the detailed content of What is php distributed. For more information, please follow other related articles on the PHP Chinese website!