[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Exposing resources/services vs hiding implementationdetail


Re:  Exposing resources/services vs hiding implementationdetail
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



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.