473,513 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database->python->Xml->Xslt->Client

Hi
I am devlopeing a data centric intranetsite with data in mysql
database
I would like your opinion on this architecture
Data will be fetched from database by python & converted into xml
The XSLT will be stored on the client cache.So only the xml is
transferred to client & the xslt transforms it into xhtml & displays
it.
Will this improve performance or have i gone nuts??
Jul 18 '05 #1
5 1800
Hi !

It is an architecture "en vogue" ; but AMHA, XML is verbose.

@-salutations
--
Michel Claveau
Jul 18 '05 #2
Michel Claveau - abstraction méta-galactique non triviale en fuite
perpétuelle. <un************@msupprimerlepoint.claveauPOINTco m> wrote:
It is an architecture "en vogue" ; but AMHA, XML is verbose.


Not any more verbose, typically, than HTML doing the presentation of
whatever data the XML is encoding, which I take is the alternative John
(the OP) is comparing again (he didn't actually explain the alternative
architectures he's considering, but that one would appear to be the
default...). If the XML is a high semantic level it can end up quite a
bit more compact than the HTML needed for nice presentation, even when
you factor out a lot of CSS from the latter to rely on the CSS getting
cached.

Fashion apart, I do think the proposed architecture may improve
performance compared to having the server prepare and send all HTML. It
spreads the computational load (if the XML the server is sending is
pretty close to the database's content, at least) and may even reduce
the bandwidth (often not a key bottleneck in an intranet, particularly
these days with gigabit ethernet finally becoming cheap... but sometimes
VPNs and the like do extend an intranet over links where bandwidth CAN
be a problem!-).

Having the server supply raw data and spreading out even more work to
the clients would be more of the same, but would require way fatter
clients, and that carries its own set of issues. What the OP described
can be done easily by decent browsers, today, with no need for fat
clients and all of their many issues.
Alex
Jul 18 '05 #3
Hi !

HTML also is verbose...
Jul 18 '05 #4
john wrote:
Will this improve performance or have i gone nuts??


Since you have more computationally intensive steps
(XSLT is no walk in the park) to do I don't think that
it will directly improve the performance at all.

What gets improved is the modularity and generality
of your solution. In your system you can now freely
interchange the backends and frontends. You program
will work with any other backend that produces XML
and any other display that can transform from XML.
This independence can be great.

On the other hand I have been seriously bitten
by XSLT. Writing complicated and reusable stylesheets
that remain readable seems to be impossible.
And it is difficult to foresee how complicated
the stylesheets need to be.

The weakest link in your pipeline is XSLT.

Istvan.





Jul 18 '05 #5
Michel Claveau - abstraction méta-galactique non trivial e en fuite perpétuelle. <un************@msupprimerlepoint.claveauPOINTco m> wrote in message news:<ci**********@news-reader4.wanadoo.fr>...
Hi !

HTML also is verbose...


Thanks for that informed commentary on the matter. I'm sure the
verbosity of HTML and XML with respect to your favourite binary wire
format (and presumably your favourite client software, too, given that
we're looking at a browser solution) really passed the original
contributor by.

Back to the suggested architecture: if you're purely worried about
network bandwidth, then provided the XML is much smaller than any
presented page, I suppose you could use client-side XSL in order to
reduce the bandwidth requirement. But if any reduced bandwidth
requirement is just one way of getting better performance, I'm not
completely convinced that you wouldn't be better served with something
like libxslt on the server producing the final output; in my
experience, its performance is pretty impressive on modest hardware in
comparison to other such processors (on much bigger hardware).
Moreover, by retaining XSL processing on the server, you would avoid
potentially controversial browser requirements - it's bad enough
working round browser issues with supposedly "simple" stuff like XHTML
and CSS without bringing XSL into the equation.

Paul
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1260
by: Jean | last post by:
Hi. I am new to Python, but very eager to learn. I've browsed many postings and found conflicting opinions on the best backend and development setup. In fact, I am more confused now that when I...
11
9213
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.