|
Yes, it can, as I did it a few jobs back. In any case for a conservative web site the only way to go is to generate HTML server side - you really need to be confident in the client libraries to be certain that everything works everywhere.The transformations can easily be done on the server (I usually run in aservlet container) and the XSLT's can be compiled so the transformation is
pretty cheap.
True, but then the scalability issue becomes even worse since it all resides
on the server at this point. Don't get me wrong, I think the approach can
work - I just think there are better (more CPU efficient) ways to do it.
I have no JSON experience, so I cannot say, sorry.I have a long time ago resigned to only ship finished HTML (in whateverform) to the client, and only use Javascript through libraries.
What are your thoughts on only delivering JSON to the client concerning the
dynamic portion? In theory the static HTML+CSS+javascript files that
process/render the JSON would only have to be downloaded once.
So you are thinking in terms of cpu-cycles. Not an unreasonable definition, as the AS/400 is traditionally cpu-starved by design (but modern x86 processors cannot feed the cpu fast enough).Then you need to first define what "Efficient" means, and how to measureit.
This isn't a scientific measurement/definition of efficient, but it is the
first thing that popped into my head when you asked.
Efficient, in one definition, is selecting a technology stack to communicate
with a UI that doesn't require you to upgrade your processing power.
For example, if a machine is at 30% utilization for CPU/memory then I
shouldn't have to upgrade machines simply because I chose to talk to a
different interface. Of course if the number of users increased
dramatically then that would be a valid reason for needing to upgrade - I am
more talking about the general user count to remain the same.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.