Question

Good day!

There is a number of similar questions here, but I'm particulary interested in such aspects of building single-page web applications:

  • What server components are well suited for a big number of AJAX requests (maybe, Node.js)? My server platform is *nix (Debian) and PHP.

  • When and how I need to replace AJAX with COMET and can I use the same server side?

  • What javascript frameworks can help me to organize client-side (I mean MVC, MVVM, client templates)?

Any good points on overal approaches and architecture patterns are really appreciated.

Thanks!

Was it helpful?

Solution

From various blogs, it seems like Angular JS will cater for the most of the SPA needs

Angular and Durandal Converge

Rob Eisenberg says:

I would join the AngularJS 2.0 Core Team and help to design and implement AngularJS 2.0, bringing all my experience with Caliburn.Micro and Durandal into the mix.


From Compare Durandal to Angular, Not Knockout to Angular

Knockout is a data binding library. It’s not a SPA framework.

Drundal Vs Angular: They solve the same problems (in different ways of course). They both have routing, animations, view orchestration, dependency management, as well as data binding.

Durandal is a natural progression from Knockout because Durandal uses Knockout. Durandal uses Knockout for data binding because its solid, very widespread, and reliable. Angular rolled their own data binding.

Also refer:

  1. Create an Angular App in Seconds with Hot Towel
  2. http://forums.asp.net/t/1896043.aspx?What+to+choose+e+g+Hot+Towel+or+Angular+JS+
  3. How to master AngularJS?

OTHER TIPS

AngularJS provides a great way to create single page applications. This allows for our site to feel more and more like a native mobile application since we have a single page app.

It provides typical routing using AngularJS routing .For advanced routing we have an excellent routing module called ui-router, it supports nested routing and a lot more.

Also, it provides a ngAnimate module that animates page changes.

Also, we use the RequireJS modular script loader, which improves the speed and quality of the code.

For a front-end MVC: javascriptmvc.com amplifyjs.com if you want to organize ajax requests

I would also agree that Node.js is particularly good if you are doing a lot of AJAX, as you are always just dealing with JSON objects - no conversions necessary. Plus it is very fast. With that said, any Ruby, PHP, Python framework would be perfectly capable as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top