Techniques and methods of using php and vue together

  • 2021-12-11 17:23:15
  • OfStack

php and vue can be used together, and we can use vue and php for front and back end separation.

Benefits of front and rear end separation

After the separation of the front and back ends, the division of labor between the front and back end engineers can be clearer, and the back end engineers can focus on the realization of business logic, performance optimization and safety. Front-end engineers focus on user experience and interaction mode. Everyone performs their duties, improves work efficiency and gives full play to their respective strengths.

Disadvantages of front and rear end separation

1. Considerations on SEO

If it is an PC site, it is necessary to consider whether it needs to strongly support SEO, and the architecture of separating the front and back ends is likely to require spider of the search engine to finish js to get a complete page that can be included, while "executing js" is not supported by all search engines, which will inevitably affect the inclusion of the site.

2. Consideration of the company's development stage

In the initial stage of the company's development, there are fewer people, and the requirements for product iteration speed are higher. At this time, more engineers with a full stack are needed, and one person's development is done from front to back. If the front-end separation is implemented at this time, the theory of "joint debugging" 1 will be introduced, and the communication cost ratio will be increased, which may lead to a decrease in the speed of product iteration.

3. Consideration of personnel skills

In the traditional cooperation mode between FE and back-end PHP engineers, FE engineers do not need to have deep back-end skills. Once the front-end separation is introduced, the front-end students of node. js layer need to know more about the back-end knowledge system, which does not rule out the rejection of back-end skills by FE students, resulting in personnel instability.


Related articles: