2007年5月17日星期四

Does AJAX implement the Business Logic

In his blog, Eric Pascarello (co-author of AJAX in Action) discusses the question of where should the business logic sit. Even though his focus is on client side technologies, Eric recognizes the need to keep business logic on the server.

In this short blog he does acknowledge the point that keeping logic on the client does help to avoid expensive network calls. In the discussion he points out that a better strategy (which smells like caching) is to use logic to determine if a call should go to the server. This avoids unnecessary calls while keeping business logic out of the front end. Finally Eric offers up this nugget.

You never built querys or logic with JavaScript code and saved it in a hidden text field for the server side code to read. All of that is done behind the scenes out of the view of the people. That same idea should apply to your Ajax applications.
Does Eric getting all of these questions regarding where to put the business logic mean that AJAX is suggesting that developers implementing business logic in browser and is all of this leading us back to the world of fat clients?


Threaded replies
· Does AJAX implement the Business Logic by Kirk Pepperdine on Wed Dec 21 07:05:09 EST 2005
· Does AJAX implement the Business Logic by Javier C?mara on Thu Dec 22 04:41:26 EST 2005
· AJAX: A serious solution, or a serious joke by Ahmed ALEM on Sun Jan 08 02:37:24 EST 2006
· Why ML and not Java Web Start? by Pedro Andres Solorzano Parada on Thu Feb 16 15:44:32 EST 2006
· I completely agree, more Fat Client by Tim LeMaster on Fri Jun 02 14:49:52 EDT 2006

没有评论: