Let"s start with the picture above. The questions are listed below. I hope you can greatly solve your doubts.
in order to prevent cross-channel responses, first talk about your understanding of front-end separation. The back-end manages the model layer, business processing / data, etc., and the front-end is responsible for the view or Controller layer (such as the jump after form submission, etc.). For example, suppose there is a SPA application that only provides API (not managed by the Controller layer and view layer) in the development process, and all the front-end pages are displayed. Jump and so on are all controlled by the front end itself, and the only way to communicate between the front and back end is API.
- suppose that there is a list that requests directly with node, rendering the template to finally display the page, and directly initiating an ajax request on the page, and then rendering the page with js, will there be any difference (regardless of SEO)
- suppose I have a form submission now. Normally, I call the API to get the return value and then make the corresponding operation. In the case of node as the middle tier, the service of node is invoked, and then node invokes the back-end service (such as: API),). What is the difference between calling api directly from the front end? What are the advantages and disadvantages of
- node as the front-end architecture of the middle tier? (similar to the seo, before and after the separation of professional people to do professional things, needless to say, feel that the online things are too scattered, each global vision)