In article <50dcfecc$0$292$14726298@news.sunsite.dk>,
Arne Vajh?j <arne@vajhoej.dk> wrote:
On 12/27/2012 2:20 AM, Kevin McMurtrie wrote:
In article <op.wpt8ogiewv4027@kiat-1>,
Ha, my mistake; "servlet" should actually be "applet". Thanks for
correcting me.
Definitely in decline. HTML 5 + WebSockets can make fully interactive
applications that look and feel native. The improvements are so great
that the dreaded workflow and business logic tier can be moved from the
server side to the client side. Moving that tier to the client takes a
HUGE load off the server, making the server a pure number cruncher and
data service.
Business logic should not be put in client side JS.
Client side JS can be manipulated by the user.
Some of the most difficult business logic is creating the workflow that
defines a smoothly operating online product. It's a complex process of
analyzing where you've been, what you chose to do, what data you have,
what operations are available, and then offering meaningful solutions to
reaching the next step. That used to be sprinkled all over the client
and server sides, making it difficult to maintain. Now much of that can
now go in the JavaScript layer.
Business logic related to security and data integrity remains on the
server. What's gone is the hand-holding steps to recovery when
integrity would be violated. Now it's just a 4xx status code.
JavaScript.
But I must admit that I do not consider that business logic.
IMHO that is pure UI. I consider heavy AJAX to move the UI layer
a service layer.