<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>DZone - Comments</title>
 <link>http://www.dzone.com</link>
 <description>Comments</description>
 <language>en</language>
<item>
 <title>Of course I am giving an</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8250</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Of course I am giving an example where a URI is constructed and reflects a SQL query, that is want URIs do, they &lt;b&gt;&lt;i&gt;indicate&lt;/i&gt;&lt;/b&gt; a
&lt;b&gt;&lt;i&gt;resource&lt;/i&gt;&lt;/b&gt;.. URI is Uniform Resource Indicator, it is there to indicate you where is a resource... no? and that is what SQL queries do too, don&#039;t they, you write an URI and you get the resource it is pointing to, you write an SQL query and you get the resource it is pointing to. So, why we do not write SQL query like stuff in browsers? Plain luck, plain bad luck, because the guy that invented URIs didnt remember that SQL only needed an small extension to do what URIs do.&lt;/p&gt;&lt;p&gt;If the significance of the HTTP verbs is to do with&lt;b&gt; safety and idempotency &lt;/b&gt;then it would I be right to say that:&lt;/p&gt;&lt;p&gt;&lt;b&gt;Safe&lt;/b&gt; means a request doesn’t cause any side effects. A safe
request just grabs data from a database and display it. Static pages,
browsing source code, reading your email online — these are all “safe”
requests&lt;/p&gt;&lt;p&gt;&lt;b&gt;Idempotent&lt;/b&gt; means that doing the request 10 times has the same
effect as doing it once. An idempotent request might create something
in a database the first time, but it won’t do it again. &lt;/p&gt;&lt;p&gt;Then:&lt;/p&gt;&lt;p&gt;SELECT: safe and idempotent&lt;/p&gt;&lt;p&gt;DELETE = not safe + idempotent&lt;/p&gt;&lt;p&gt;UPDATE = not safe + not idempotent&lt;/p&gt;&lt;p&gt;INSERT = not safe + not idempotent &lt;/p&gt;&lt;p&gt;So we could say that SQL is missing an operation that is not safe + idempotent, a kind of UPSERT or MERGE operation that can be called many times without risk, if we add that, then SQL becomes RESTful?and if it does not, what is the name of SQL+UPSERT?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Fri, 14 Nov 2008 22:42:19 -0500</pubDate>
 <dc:creator>luxspes</dc:creator>
 <guid isPermaLink="false">comment 8250 at http://zones.dzone.com</guid>
</item>
<item>
 <title>You&#039;re talking about HTTP</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8233</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;You&#039;re talking about HTTP specifically, not REST. All you&#039;re doing is giving one example where a URI is constructed and reflects a SQL query, why does that mean that every URI is representative in this way? That&#039;s an assumption on your part.&lt;/p&gt;&lt;p&gt;The significance of the HTTP verbs is to do with&lt;b&gt; safety and idempotency&lt;/b&gt;, rather than &#039;CRUD&#039;:&lt;/p&gt;&lt;p&gt;GET = safe and idempotent&lt;/p&gt;&lt;p&gt;DELETE = not safe + idempotent&lt;/p&gt;&lt;p&gt;PUT = not safe + idempotent&lt;/p&gt;&lt;p&gt;POST = not safe + not idempotent &lt;/p&gt;&lt;p&gt;There&#039;s plenty of reading material available for you - Fielding&#039;s dissertation is a good start (since that&#039;s where REST came from). &lt;/p&gt;</description>
 <pubDate>Fri, 14 Nov 2008 11:10:09 -0500</pubDate>
 <dc:creator>MikeK</dc:creator>
 <guid isPermaLink="false">comment 8233 at http://www.dzone.com</guid>
</item>
<item>
 <title>Maybe I didn&#039;t explaing</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8229</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Maybe I didn&#039;t explaing myself I am not saying REST is wrong, I am just saying that this idea of using GET / PUT / POST / it is just too similar to what SQL provides, we could say that GET is SELECT, PUT is INSERT, POST is UPDATE... yes I know they are not exactly the same but they have the same philosophy, why this similarity does not seem to have (buzzword) name? or do you know the name for it? &lt;/p&gt;&lt;p&gt;Also can you explain me why this:&lt;/p&gt;&lt;p&gt;&lt;i&gt;http://company/payrollsystem/employees?salary=5000&lt;/i&gt;&lt;/p&gt;&lt;p&gt; is (or is not) so much better than: &lt;/p&gt;&lt;p&gt;&lt;i&gt; select * from company.payrollsystem.employees as e where e.salary=5000? &lt;/i&gt;&lt;/p&gt;&lt;p&gt; or why the most exciting thing about something like: &lt;/p&gt;&lt;p&gt; &lt;i&gt;select * from http://company/payrollsystem.employees as e where e.salary=5000? &lt;/i&gt;&lt;/p&gt;&lt;p&gt;it is that it is using an uri and not that relational algebra is still the most useful way to manipulate data?&lt;/p&gt;</description>
 <pubDate>Fri, 14 Nov 2008 09:32:03 -0500</pubDate>
 <dc:creator>luxspes</dc:creator>
 <guid isPermaLink="false">comment 8229 at http://www.dzone.com</guid>
</item>
<item>
 <title>&quot;REST is SQL for XML/Http&quot; -</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8228</link>
 <description>&lt;!--paging_filter--&gt;&lt;p class=&quot;western&quot;&gt;&amp;quot;REST is SQL for XML/Http&amp;quot; - rubbish. Sorry, but that&#039;s just plain wrong. For a start, what does XML have to do with anything?&lt;/p&gt;
&lt;p class=&quot;western&quot;&gt;Your claim that it is merely &#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/The_Emperor%27s_New_Clothes&quot;&gt;new
clothes for the old emperor&lt;/a&gt;&#039; is based on a lack of
understanding at your end. RESTful applications completely change the
significance of a URI - In that, unlike RPC, a URI is used to... &lt;b&gt;&lt;i&gt;indicate&lt;/i&gt;&lt;/b&gt; a
&lt;b&gt;&lt;i&gt;resource&lt;/i&gt;&lt;/b&gt;.. Uniform Resource Indicator.. does that make any sense to you? No? Oh well then, nevermind - you must be right.&lt;/p&gt;&lt;p class=&quot;western&quot;&gt;This is fundamental change to the way in which a
UA interacts with your application; namely that it actually makes
proper use of URIs (and the HTTP protocol) instead of just using HTTP as a
convenient transport for tunnelling through firewalls. &lt;a href=&quot;http://simplewebservices.org/index.php?title=HTTP_is_not_a_Transport_Protocol&quot;&gt;HTTP
is not a transport protocol, it&#039;s a &lt;b&gt;transfer&lt;/b&gt; protocol&lt;/a&gt;. &lt;/p&gt;
&lt;p class=&quot;western&quot;&gt;In all seriousness, how much do you actually know about REST?&lt;/p&gt;</description>
 <pubDate>Fri, 14 Nov 2008 09:06:42 -0500</pubDate>
 <dc:creator>MikeK</dc:creator>
 <guid isPermaLink="false">comment 8228 at http://www.dzone.com</guid>
</item>
<item>
 <title>REST versus SQL? These</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8227</link>
 <description>&lt;!--paging_filter--&gt;REST versus SQL? These debates clearly show that what is needed is not more dicsussion but some exploring of real RESTful services that play in the linked data world. &lt;a href=&quot;http://www.opencalais.com/node/9501&quot;&gt;Try out the Open Calais service&lt;/a&gt; from Reuters, the global news agency.</description>
 <pubDate>Fri, 14 Nov 2008 08:31:54 -0500</pubDate>
 <dc:creator>bblfish</dc:creator>
 <guid isPermaLink="false">comment 8227 at http://www.dzone.com</guid>
</item>
<item>
 <title>Well in a way we could say</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8226</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Well in a way we could say that RDMBs serve HyperText: think about it, most non trivial web applications store pretty much all its information in RDBMS, so just because a WebServer transforms it in to XML it suddenly becomes such a different buzword compliant thing? Take a look at &lt;a href=&quot;http://msdn.microsoft.com/en-us/data/bb931106.aspx&quot;&gt;Microsoft Astoria&lt;/a&gt;, what else its but a thin layer on top of a RDMBS that translates urls in to SQL queries?&lt;/p&gt;&lt;p&gt; And the URL... the URL is just there to name a resource, if you have an url like:&lt;/p&gt;&lt;p&gt; http://company/payrollsystem/employees?salary=5000&lt;/p&gt;&lt;p&gt; what is the advantage of that vs:&lt;/p&gt;&lt;p&gt; select * from company.payrollsystem.employees as e where e.salary=5000?&lt;/p&gt;&lt;p&gt; they both do the job: specify that we want, all the employees with salary of 5000. But what if we want to do a Join? (or many Joins, with Unions, and Exists and other relational stuff) if we use the SQL query we are fine (&lt;i&gt;I would prefer to use a &lt;a href=&quot;http://en.wikipedia.org/wiki/D_(data_language_specification)&quot;&gt;D&lt;/a&gt; but that is another story&lt;/i&gt;), and if we use an URL? well, then we are in trouble, because AFAIK there is no standard way to deal with this things in URLs. Is &lt;a href=&quot;http://en.wikipedia.org/wiki/SPARQL&quot;&gt;SPARQL &lt;/a&gt;for that? If that so it is so sad they have chosen a syntax so &lt;a href=&quot;http://c2.com/cgi-bin/wiki?SqlFlaws&quot;&gt;terribly flawed&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;And about REST being for &amp;quot;&lt;i&gt;global, distributed, one with no central point of control &lt;/i&gt;[stuff]&amp;quot; that idea certainly looks good in paper, but think about it,if in practical terms SPARQL is using HyperText datasources, that means they do not come indexed, or even in a nice binary optimized format, they are just a huge XML/XHTML file, if we currently have performance issue when we link an Oracle database with an Ms-SqlServer database and try to do a join between a table in one of them an a table if another (&lt;i&gt;oh, and please explain me why that is &lt;b&gt;not &lt;/b&gt;global, distributed, with no one central point of control stuff&lt;/i&gt;)... Just thinking about the performance hit of a Join in  SPARQL makes me think that something is really flawed with that approach...&lt;/p&gt;&lt;p&gt; REST and SOA are like SQL expression and Stored procedure, REST is SQL for XML/Http, and SOA/RPC is stored procedures for XML/Http, but in the end, they are the same thing, they are just &lt;a href=&quot;http://en.wikipedia.org/wiki/The_Emperor%27s_New_Clothes&quot;&gt;new clothes for the old emperor&lt;/a&gt;. They are a new, perhaps nice layer on top of already existing technology,but, somehow manage to attract all the hype, and in the process they even find time to say that their way of working is so revolutionary that it makes old technology obsolete, when in reality they are just thin extensions on top of that &amp;quot;old technology&amp;quot; they claim to replace. I guess that is why some times those of us that do not fully get what is so great about REST feel like a REST proponents can seem like...well, fanatics (members of a cult)... &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Fri, 14 Nov 2008 07:23:43 -0500</pubDate>
 <dc:creator>luxspes</dc:creator>
 <guid isPermaLink="false">comment 8226 at http://www.dzone.com</guid>
</item>
<item>
 <title>No offence, but you&#039;re</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8209</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;No offence, but you&#039;re coming across a tad pretentious.&lt;/p&gt;&lt;p&gt;I don&#039;t really understand the point you&#039;re trying to make.. &lt;/p&gt;</description>
 <pubDate>Thu, 13 Nov 2008 10:01:34 -0500</pubDate>
 <dc:creator>MikeK</dc:creator>
 <guid isPermaLink="false">comment 8209 at http://www.dzone.com</guid>
</item>
<item>
 <title>Hi MikeK, No SOA is not a</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8189</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hi MikeK, No SOA is not a cult and not under my given definition. A cult is made up of members who propagate a non-idea. SOA is a non-idea. It is given unwarranted legitimacy, since it also (like REST) does not exist in a logically consistent form. I&#039;ve no doubt it looks differently to an observer who lacks rigour in their formal reasoning, but this is aside and one that is uninteresting to argue (it often degenerates quickly yielding no useful conclusion).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It is possible, though I am not necessarily suggesting it, that proponents of SOA may form a cult, but SOA is itself not a cult. As a non-existent concept, it certainly exhibits all the required traits for it to follow.&lt;/p&gt;</description>
 <pubDate>Wed, 12 Nov 2008 17:05:41 -0500</pubDate>
 <dc:creator>dibblego</dc:creator>
 <guid isPermaLink="false">comment 8189 at http://www.dzone.com</guid>
</item>
<item>
 <title>pointless points are one to</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8161</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;pointless points are one to look out for aswell - defensive garbage which contains lots of blind flailing and finger pointing.&lt;/p&gt;&lt;p&gt; Apparently sharing passion and conviction for something makes you part of a cult, does that mean SOA is a cult? I&#039;d say yes, according to Tony&#039;s ridiculous definition.&lt;/p&gt;&lt;p&gt;So assuming that baseless and pointless accusation it true, does it actually negate the value of the arguments made in favour of SOA and REST? Clearly not,&lt;/p&gt;&lt;p&gt; It&#039;s worth considering how much collusion and misrepresentation is brought to the table by individuals and groups who have invested interests in keeping development methodologies overly complex and drawn out - money, money, money; you have to keep up cash flow and barriers to entry. &lt;/p&gt;</description>
 <pubDate>Wed, 12 Nov 2008 07:41:35 -0500</pubDate>
 <dc:creator>MikeK</dc:creator>
 <guid isPermaLink="false">comment 8161 at http://www.dzone.com</guid>
</item>
<item>
 <title>&quot;The thing I do not get is</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8150</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;&amp;quot;The thing I do not get is why nobody realizes that Rest Is Just Sql Reinvented,&amp;quot;&lt;/p&gt;&lt;p&gt;luxspes, REST is a non-concept. It does not exist in any logically consistent form. It is important to the survival of non-concepts  that they be ill-defined and masquerade otherwise. They often perpetuate by repetition of myth with peer reinforcement and pseudo-science. You will no doubt attract the wrath of a cult (or member of) within the REST proponents who will accuse you of making a misrepresentation of REST with the presupposition of your statement. Indeed, cults within the cult war with each other over this definition. Some call it religion. These people are not malicious, but ignorant and scientifically illiterate. You should understand this to resolve your dilemma. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you can understand why non-concepts exist and how they survive, you will have no problem understanding why nobody realizes... &lt;/p&gt;</description>
 <pubDate>Tue, 11 Nov 2008 23:03:41 -0500</pubDate>
 <dc:creator>dibblego</dc:creator>
 <guid isPermaLink="false">comment 8150 at http://www.dzone.com</guid>
</item>
<item>
 <title>REST is not &#039;SQL reinvented&#039;</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8132</link>
 <description>&lt;!--paging_filter--&gt;REST is not &#039;SQL reinvented&#039; - that is utter nonsense. Actually reading the dissertation might help you &#039;get why nobody has realized this yet&#039;. It is fair to say that the 2 share some similarities, but they are complementary to one another - I fail to see how this is a criticism of any kind, quite the opposite.&lt;br /&gt;&lt;br /&gt;Mr Neward, I completely disagree with the final part of your article.&lt;br /&gt;&lt;br /&gt;REST could be viewed as just a means to an ends from a technical perspective, but practically speaking - the benefits to business of the RESTful approach outweigh those of any other alternatives, in most cases. Better technical interoperability begets more business interoperation, and this can only be a good thing for SOA.&lt;br /&gt;&lt;br /&gt; Why is it wrong to suggest that the &#039;perfect&#039; SOA adheres to REST principals, particularly when all the evidence seems to support that suggestion?&lt;br /&gt;&lt;br /&gt; It is, to some extent, worth making the point that it is not always necessary or appropriate to follow every one of these principals, but also to make the point that careful consideration should be given in making that kind of decision because the opportunity cost of doing so may be large.&lt;br /&gt;&lt;br /&gt;Perhaps you could give an example of where RESTful principals require breaking?</description>
 <pubDate>Tue, 11 Nov 2008 10:53:36 -0500</pubDate>
 <dc:creator>MikeK</dc:creator>
 <guid isPermaLink="false">comment 8132 at http://www.dzone.com</guid>
</item>
<item>
 <title>yes, there is a very close</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8121</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;yes, there is a very close similarity with SQL, and of course some serious innovations. The innovations is of course what is important, otherwise you could just say: what is the point of SQL is that not just so much like say paper card indexing, or COBOL?&lt;/p&gt;
&lt;p&gt; The big difference is of course the URL. That is you have a system of distributed data. In a Relational Database (RDB) the data can only be contained and controlled by one organisation, or when multiple organisations are involved a lot of interaction overhead is required. RDF makes it possible to link data in a distributed way across the internet.  It also has a query language that is very close to SQL: &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-query/&quot;&gt;SPARQL&lt;/a&gt;. 
So yes you are right in many many ways this is very similar to Relational Database. The difference is that what is being worked on is a global, distributed, one with no central point of control.&lt;/p&gt;
&lt;p&gt;Now of course you can break REST principles. And a huge number of applications do. They may indeed have many other benefits, such as tying people into your system. But what they don&#039;t get are the benefits of REST, which of course is not minor. It is related to &lt;a href=&quot;http://blogs.sun.com/bblfish/entry/rdf_and_metcalf_s_law&quot;&gt;metcalf&#039;s law, and the benefits one gets by participating in a huge system whose value grows exponentially&lt;/a&gt;.&lt;/p&gt;&lt;p&gt; So what readers of this excellent article should be wondering about, is what are the benefits of REST that they may be missing by not following its principles? &lt;/p&gt;</description>
 <pubDate>Tue, 11 Nov 2008 04:59:58 -0500</pubDate>
 <dc:creator>bblfish</dc:creator>
 <guid isPermaLink="false">comment 8121 at http://www.dzone.com</guid>
</item>
<item>
 <title> Well, SQL is not serving</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8084</link>
 <description>&lt;!--paging_filter--&gt;&lt;blockquote&gt;&lt;p&gt; Well, SQL is not serving hypertexts last time I looked at it. ;o)&lt;/p&gt;&lt;p&gt;But more important (and related): There is no equivalent to the URL! &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Playing devil&#039;s advocate, relational databass do indeed have an equivalent to hypertext: foreign keys. &lt;/p&gt;</description>
 <pubDate>Sat, 08 Nov 2008 18:46:30 -0500</pubDate>
 <dc:creator>sduskis</dc:creator>
 <guid isPermaLink="false">comment 8084 at http://www.dzone.com</guid>
</item>
<item>
 <title>thanks, this is a clear</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8079</link>
 <description>&lt;!--paging_filter--&gt;thanks, this is a clear explanation of the REST pattern!</description>
 <pubDate>Sat, 08 Nov 2008 08:36:53 -0500</pubDate>
 <dc:creator>fede309</dc:creator>
 <guid isPermaLink="false">comment 8079 at http://www.dzone.com</guid>
</item>
<item>
 <title>Well, SQL is not serving</title>
 <link>http://www.dzone.com/articles/rest-http#comment-8076</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Well, SQL is not serving hypertexts last time I looked at it. ;o)&lt;/p&gt;&lt;p&gt;But more important (and related): There is no equivalent to the URL! &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Fri, 07 Nov 2008 21:43:31 -0500</pubDate>
 <dc:creator>beders</dc:creator>
 <guid isPermaLink="false">comment 8076 at http://www.dzone.com</guid>
</item>
</channel>
</rss>
