Search code examples
model-view-controllerclient-sideserver-side

client-MVC vs server-MVC


I am looking to get some input from other users on the benefits of server-side MVC. With the power of many javascript libraries. What good purpose does server-side MVC server anymore?

You can easily use client-side MVC with templating and a REST API to make a much more resposive application with less overhead of reloading a whole page for minor changes.


Solution

  • Server MVC benefits:

    1. Mature.
    2. Widely adopted.
    3. Most of the code is inside server so should be more secure.

    But definitely the tendency is to back to client/server computing but instead of fat clients written in C or another language but now you have a very nice platform: The browser.

    I have a simple policy about when I use Server side MVC and client side MVC:

    1. Casual users with few interactions: Server + Ajax.
    2. LOB application (Accounting, ERP, CRM, etc.): Client.

    BTW I use Java Server Faces for #1 and ExtJS backed up by JAX-RS services for #2.

    Regards.