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 Michael Champion other posts by this author
Apr 5 2005 5:08PM 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 On Apr 5, 2005 6:31 PM, Leigh Dodds <leigh@[...].com>  wrote:

>  I don't see how defining a public URL space exposes any details about
>  my application structure. I've done it, for both human and machine
>  oriented interfaces, and you can't tell from the url structure or
>  response formats what my backend is doing. Or even if the entities in
>  the URI map 1:1 with entities in my database schema.

I interpreted Bill's original post as arguing that one should expose
actual implementation objects, tables, etc. as URIs.  We cleared that
up -- he was  talking about abstractions or "domain objects"  a la
Amazon.com's book-specific URIs that one can exchange, bookmark, etc.
and not the physical tables where all this stuff resides.   If the
backend is hidden, behind URIs, services, or whatever, my concerns
about information hiding are irrelevant.

If the entities in the URI map 1:1 with your database schema, well, it
seems like an unnecessary risk to me, but I don't claim to know much
about security.  Judging by the state of the industry, I'm not sure
that very many of us do either :-)  . My main reason for starting this
thread was not to argue against this, but to wonder why several people
are so certain that having a single message dispatcher URI is a bad
idea, irrespective of whether exposing all the individual resource
URIs is a good idea.

I'm not sure my strawman has been demolished yet: The SOA dogma is to  expose
the service and the service contract to the client,and hide everything
else.  That seems to reflect decades of best practice, back to
"information hiding" in the days when Structured Programming was the
One True Path to software quality. I'm not sure what's wrong with that
dogma, other than the fact that  REST advocates making "domain
objects" visible via URIs and having clients manipulate them by
transferring  representations.   Why is that supposedly better? 
What's the evidence?

My motivation in all this uber-permathread is that I opposed the
notion that was popular 3-4 years ago of extending the COM/CORBA/RMI
distributed object paradigm to the Web;    I agreed with the
RESTifarians that it wouldn't scale, wouldn't leverage the Web
infrastructure, all the classic arguments that appear to have been
validated by Amazon, Bloglines, Flickr, etc.  But now I'm questioning
the currently popular notion that the Web architectural style is
generally suitable for enterprise scenarios where COM/RMI/J2EE/etc.
are entrenched.  In these, information is often confidential, lots of
real money is on the table and armies of slimeballs want to steal it,
there is a more even balance between readers and writers (making all
the cacheing goodness somewhat irrelevant), and the data is consumed
by mission-critical programs that can't just sigh and click on the
next link if there is a 404, or try again later if there is a timeout.
 MAYBE the Web architecture principles apply here as well, obviously
many people think they should.  I'm skeptical, and asking for solid
arguments and concrete success stories.

-----------------------------------------------------------------
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