How to write Tp framework to write horizontally scalable programs!

WBOY
Release: 2016-10-10 11:56:16
Original
1161 people have browsed it

I watched a video yesterday about architecture. The CTO said that as an architect, the most important thing is to design a program that can be horizontally expanded

That is to say, your program can only run on one machine at the beginning, but as the number of users increases, your program must be able to expand the machine at any time. So what kind of ideas can be used to write a program that conforms to this design for the TP framework? Woolen cloth! Seeking advice from experts

How to write Tp framework to write horizontally scalable programs!

How to write Tp framework to write horizontally scalable programs!

How to write Tp framework to write horizontally scalable programs!
How to write Tp framework to write horizontally scalable programs!

Reply content:

I watched a video yesterday about architecture. The CTO said that as an architect, the most important thing is to design a program that can be horizontally expanded

That is to say, your program can only run on one machine at the beginning, but as the number of users increases, your program must be able to expand the machine at any time. So what kind of ideas can be used to write a program that conforms to this design for the TP framework? Woolen cloth! Seeking advice from experts

How to write Tp framework to write horizontally scalable programs!

How to write Tp framework to write horizontally scalable programs!

How to write Tp framework to write horizontally scalable programs!
How to write Tp framework to write horizontally scalable programs!

There is a stupid way that is simple enough

For example, the SegmengtFault official website has many modules, such as articles, questions, notes, headlines, etc., each of which is designed as an independent project and independent domain name. Do not use modules to separate them. This can be deployed separately on a single server in the early stage, and can be dismantled according to the module load in the later stage. Deployed separately, the separated ones can be further loaded and balanced to facilitate so-called horizontal expansion.

Then you can try some service-oriented architectural thinking in the early stage and split the back-end API by business, so that all clients can call each other's data and avoid copying the same functional code in various places in the project

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!