How front-end and back-end work together

Source: Internet
Author: User
Tags bulk insert

Our process is such that the backend provides the data interface, or interface documentation.
Then our front desk carries out the razor template data logic nesting or html,css,js the entire process development.
The disadvantage is: the workload is full, the advantage is that all front-end view layer of things are controllable.
Pits are more, such as data problems, without an experienced front-end or back-end to be linked,
There are problems in a short period of time can not solve.


General and background cooperation is divided into these modes:
1. Only HTML pages are produced and then handed back to the backend to process the data.
But the downside is obvious. , back-end personnel workload is large, if there is Ajax or data added after the style problem,
It takes longer to make a joint adjustment.


2. Outputs a static php,jsp page, which is then handed back to the backend to process the data.
Easy to all kinds of joint adjustment, but the most fundamental problem is that the back end of the workload is slightly larger, and does not completely reduce the pressure of the back-end staff.
package release or need to rely on backend , and in the development of relying on the back end of the situation biased.


3. Output dynamic php,jsp pages with data, front-end and back-end packaging release completely independent.
This benefit is the performance of the front-end layer, the data is completely controlled by the front-end,
What issues can be resolved independently by the front end and packaged separately for publishing.
The disadvantage is that the front-end of the workload increased, the front-end technology storage requirements are high, labor recruitment has a certain degree of difficulty.

Since this distinction is sometimes difficult to determine, the advice given by friends in the group is:
1. The company's superiors determine, this deserves who to do
2. See the actual situation of the company, if the Fe people less, then to the RD
3. Differentiate treatment according to different languages.

There are other ways in which people work together:
1, put forward the demand, understand the front end to the interface effect. See whether the background personnel can meet such requirements, if there is a ready-made interface, the direct call is. If not, then consult with the back office to see if they can be developed again. Evaluate workload and finish date.
2, sometimes the backend design interface does not necessarily meet all the requirements, perhaps in a method has a ray, until you call to know. For example, in bulk inserting data, the foreground may call the save loop instead of BULK insert in the background. The foreground call in turn can be done, but efficiency is a problem that needs to be weighed well.

In cooperation with the backend, the backend does not provide the data interface, how to deal with it? There are several ways to do this:
1. Make your own simulation data
The disadvantage of this approach can sometimes cause the API to change when the update is not timely, the benefits are obvious, can quickly complete the front-end tasks.
2. Using http://mockjs.com/, Analog data generator

Other places with pits:
The accuracy of the data conversion is lost, the return data of the interface is inaccurate, and the data is incorrect due to the frequent modification of the configuration file.
We are the front-end own simulation of all data interfaces , the back end mates with us to do the interface, in turn.
front-end only need to provide some configuration to the backend , such as data request address and so on, back end with OK

interface communication, documentation with communication
Http://www.cnblogs.com/hustskyking/p/interface-in-development.html


The front and back division is not bad.

According to the above discussion, the following conclusions are drawn:
1. The front-end understanding of a back-end language helps improve productivity and is a big trend in the future.
2. The logical data of the front end can be completely separated, that is, different language types that can be used with the backend.

Reprinted from: http://www.cnblogs.com/jikey/p/4118088.html

How front-end and back-end work together

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.