Font Size: a A A

The Design And Implementation Of The PHP Middle Layer In Baidu Poster Bar

Posted on:2015-11-21Degree:MasterType:Thesis
Country:ChinaCandidate:Y J WangFull Text:PDF
GTID:2348330422992347Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Baidu's Post Bar is an independent brand, the world's largest Chinese community. After10years of precipitation, Baidu Post Bar has600million registered users,4.5million of it, the total daily topic of hundred million, the number of monthly active users,200million, accounting for39%of China's total Internet users. Post Bar is a solution based on the results of LAMP architecture currently supports dozens of sub-systems, billions of traffic, the amount of ten million, and T-stage submission data. Post Bar is needed for a high-performance, high stability, high scalability, faster response time, better user experience and rapid development/easy maintenance architecture/code. As the burden of carrying such a PHP middle layer are facing a lot of problems, not a good solution to paste it high concurrency, high load demand.This paper products from the demand point of departure paste it to specific macroeconomic framework and background processing as a starting point, problem analysis system PHP middle layer, summed bottlenecks and defect processes on the system, and to propose specific functional requirements of the system and related technology improvements solution. From a technical perspective on the specific implementation details of the improvement program, such as architecture reconstruction, process optimization, process synchronization, etc., to provide the theoretical basis and reference for the concrete realization of the program after.This paper has developed the middle layer for php, using C and PHP Language, carrying high concurrency and high load demand.The design is divided into six modules: Resource Locator, health checks, load balancing, protocol support, unified interface, automated configuration. First, through the reconstruction of the middle layer of the architecture, including resource location and health checks, as well as MySQL request architecture. Then work through the system highly abstract processes related processes, from the abstract process to analyze the system bottlenecks, and conduct in-depth research for bottleneck points, in order to determine design. On load balancing, through non-pilot type design, and interact with the synchronization process from the process critical point of view, developed in line paste it high concurrency, high system load, the average response time T to reach the next level of less than1request s requirements. In the external interface system and cross-system calls, it also elaborated on configuration and abnormal localization of critical services. Finally, system deployment, the system is also very good discussion about the smooth lines and related service mapping features. Through the above design, the system solves the bottleneck problems and meets the needs of performance, and enhances the user experience. After the actual test, as well as specific projects under the first phase of deployment, the middle layer proves the feasibility of specific technical solutions and perfect architecture reconstruction, through the results in line with expectations. Currently, PHP improvement program has been deployed to the middle layer and paste it back in12servers. The subsequent Phase II project will be fully deployed and extended to other sub-systems.
Keywords/Search Tags:Baidu Post Bar, middle layer, system architecture, high concurrent, loadbalance
PDF Full Text Request
Related items