An application is both JS intensive and has a complex business logic +huge data flow that uses backboneJS to structure JavaScript code and there is a necessity for the server side MVC also (Spring in this case).
Though this question has been asked before, I could not find suitable answer for this. Can somebody help me with a detailed answer?
ASP.Net MVC is a server side framework.
The client is the computer, which asks a server, another computer, for information. The server answers to this question and sends the answer as data to the client. The client displays this answer on his screen for the user. This is more how hardware works. MVC is a programming technic.
ASP.NET MVC (Server-side) With MVC, all the grunt work is done on the server and the browser is given straightforward HTML to render. The user attempts to navigate to a URL in the browser. The browser pings this requests over to the server. ASP.NET MVC takes over, forwards the request to the relevant controller.
Client side validation Vs server side validation The user input validation take place on the Server Side during a post back session is called Server Side Validation and the user input validation take place on the Client Side (web browser) is called Client Side Validation.
This article describes how to make an application architecture with both server side MVC and JS MVC , respecting the MVC pattern. http://blog.javascriptmvc.com/?p=68
Backbone.js is primarily used for SPA's (Single Page Applications). Your backbone.js segments ('views') are rendered and re-rendered by data, that is fetched or changed. If your application is going to be javascript intensive, backbone is a great minimal framework that will help organize your application. However, backbone is not so simple when your javascript application becomes quite large. You have to have a thorough understanding of the fundamentals of javascript and have a programming decided pattern. Otherwise you application can become quite a mess even with the use of backbone.js.
Anyhow I digress. Think of you client side application (backbone.js driven) completely separate from your server side application (MVC driven). All your client application needs from your server application is the data. That is why backbone.js is built around a REST API. If you are looking to develop a large javascript application, I would look at using MVC 4's Web API for your REST API, and backbone.js to help organize and standardize your client application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With