When I first touch this terminology, I feel so confused because almost all the blogs shows the REST API is good for Decoupled Integration. I was thinking the MVC also do the decoupled Integration separates the front-end (view) and the back-end (controller and model) . So why we still need. And today I gonna organize my understanding in this field.
When I first touch this terminology, I feel so confused because almost all the blogs shows the REST API is good for Decoupled Integration. I was thinking the MVC also do the decoupled Integration separates the front-end (view) and the back-end (controller and model) . So why we still need. And today I gonna organize my understanding in this field.
Mrs. Thompson: The elderly and dedicated librarian.
Cyan: A local software developer and regular library patron.
The town's beloved library, a cozy place filled with shelves of books and an old computer system for managing checkouts and returns. Cyan is willing to help Mrs. Thompson to update the old system. He chooses a conventional approach where the front-end and back-end are closely integrated. The community loves the new system. Who wants to more if life can just be this.
When Cyan deploy. And now even the new function need we change the database, add table or create new properties. It won't effect the front-end, even we didn't change anything on it. For example, if a back-end method returns a new data format, the corresponding JSP/Thymeleaf templates in the front-end might don't need to be rewritten to accommodate this change.
Also back to the first question. MVS also seperates the front-end and back-end and what's diff?
Even though Spring MVC separates the front-end (view) and the back-end (controller and model), they are often tightly integrated. For instance, the view layer might be designed to expect data in a specific format or structure directly from the back-end. If the backend logic changes – say, the structure of the data model – this can directly impact how the data needs to be handled or displayed in the frontend.
Alright! We have captured the essence of the REST API approach quite well. So much for it.