ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Exposing resources/services vs hiding implementation details
by Jan Algermissen other posts by this author
Apr 5 2005 1:36PM messages near this date
Re: [xml-dev] Exposing resources/services vs hiding implementation details | Re: [xml-dev] Exposing resources/services vs hiding implementation details
& XSLT Rich Salz wrote:

> > ... the extreme of providing a single poiunt of access (e.g. 
> > http://foo.org/myService ) to POST everything to just doesn't seem to 
> > cut it when it comes to scalability and integratability.
> 
> 
>  How so?  I can see why the single point is better for integration -- 
>  you only change one message posted to one URL, as opposed to one 
>  message posted to "n" URL's -- not worse.  And I don't see the 
>  difference in scalability at all.  Can you explain?
> 
- The example task is to get the address of a person -

Scalability:

With the single-service approach I have something like this:

POST /myService

person-id: 778
method-name: getAddress

...service returns address....

In order to understand the message, a system component must understand 
the particular semantics of the message content. The consequnce is that 
an intermediate cache cannot decide if the message is cacheable unless 
it knnows the application semantics. Consequnce: you cannot build 
application semantics independent caches.

With REST you'd have:

GET /persons/778

server responds:
Content-Type: application/rdf+xml

<ex:person rdf:about=""> 
   <rdfs:label> Joe Smith</rdfs:label>
   <ex:address> 77 Park Av., Laketown</ex:address>
</ex:person> 

 HTTP semantics define GET responses as cacheable, so any generic HTTP 
intermediary knows it can cache the response.

That improves scalability, IMHO.

---------

I do not have time right now, will address the integratability part later.

Jan




>      /r$
> 

-- 
Jan Algermissen
Consultant & Programmer
http://jalgermissen.com



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://www.oasis-open.org/mlmanage/index.php> 
Thread:
Claude L Bullard
Marc de Graauw
Joe Gregorio
Bill de hÓra
Michael Champion
Uche Ogbuji
Jan Algermissen
Uche Ogbuji
Rich Salz
Jan Algermissen
Rich Salz
Michael Champion
Bill de hÓra
Michael Champion
Uche Ogbuji
Bill de hÓra
Robert Koberg
Peter Hunsberger
Michael Champion
Leigh Dodds
Jan Algermissen
Leigh Dodds
Bill de hÓra
Michael Champion
Leigh Dodds
Michael Champion
Rick Marshall
Bill de hÓra
Robert Koberg
Rich Salz
Leigh Dodds
Rich Salz
Leigh Dodds
Rich Salz
Leigh Dodds
Andrzej Jan Taramina
Rich Salz
Bob Foster
Jan Algermissen
Mark Baker
Michael Champion
Michael Champion
Mark Baker
Mark Baker
Michael Champion
Bill de hÓra
Rich Salz
David Lyon
Rich Salz
Joe Gregorio
Rich Salz
Joe Gregorio
Saptagirisa N
Arvind Singh
Rich Salz
Joe Gregorio
Rich Salz
Joe Gregorio
Rich Salz
Dave Pawson
Mark Baker
Joe Gregorio
Mark Baker
Rich Salz
Michael Champion
Elliotte Rusty Harold
Joe Gregorio
Michael Champion
Jan Algermissen
Bill de hÓra
Joe Gregorio
Charles Woerner
Rich Salz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved