<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: [blah] REST —— 一个实用主义者的思考</title>
	<atom:link href="http://erlang-china.org/misc/practical_think_on_rest.html/feed" rel="self" type="application/rss+xml" />
	<link>http://erlang-china.org/misc/practical_think_on_rest.html</link>
	<description>erlang 中文社区</description>
	<lastBuildDate>Tue, 03 Jan 2012 15:49:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: TracyLiu</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-4240</link>
		<dc:creator>TracyLiu</dc:creator>
		<pubDate>Tue, 13 May 2008 05:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-4240</guid>
		<description>首先申明，我对rest和web的了解还出于入门阶段。说的不对的，请指教。
对于chat，在资源/chat/{room}/下，是不是还包括 人 和 消息？所以相应的有/chat/{room}/user 和 /chat/{room}/message。这样，对于room中的listuser和message是否可以通过CRUD就可以解决呢？</description>
		<content:encoded><![CDATA[<p>首先申明，我对rest和web的了解还出于入门阶段。说的不对的，请指教。<br />
对于chat，在资源/chat/{room}/下，是不是还包括 人 和 消息？所以相应的有/chat/{room}/user 和 /chat/{room}/message。这样，对于room中的listuser和message是否可以通过CRUD就可以解决呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackyz</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3739</link>
		<dc:creator>jackyz</dc:creator>
		<pubDate>Mon, 21 Apr 2008 10:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3739</guid>
		<description>@kk，要点在于 cookie 和 session 在“概念上”完全不可能是同一个东西。在 asp/php/jsp 程序员的概念里 session 是一个“本地的存储设施”，而且“大小无限”(想放什么都行)。这两点都是 cookie 所不能提供的。

比如，其中一个应用场景是将“一组页面流程中的数据先暂存在 session 中再一起提交”。另外一个常见的应用场合是将“ authorize 相关的数据放在 session 中”。还有将“ session 作为当前回话用户的某种数据缓存机制”。这些应用场景，用 cookie 来做，也许能实现，但显然有问题，这就是“概念混淆”带来的问题。

“破坏可见性”的坏处是“形成了安全隐患”，而“增加网络带宽”的坏处是“影响用户体验和提高运营成本”，说起来，也是可大可小的。

SNA 是不错的，这里不反对 SNA ，反对的是“用 cookie 来存放 session ”这种实现方式。甚至于说，为了 SNA 完全可以牺牲掉 session (早年的 php 没有 session 还不是一样写程序？)，而不是象这样搞出一套“混淆视听的 session”。</description>
		<content:encoded><![CDATA[<p>@kk，要点在于 cookie 和 session 在“概念上”完全不可能是同一个东西。在 asp/php/jsp 程序员的概念里 session 是一个“本地的存储设施”，而且“大小无限”(想放什么都行)。这两点都是 cookie 所不能提供的。</p>
<p>比如，其中一个应用场景是将“一组页面流程中的数据先暂存在 session 中再一起提交”。另外一个常见的应用场合是将“ authorize 相关的数据放在 session 中”。还有将“ session 作为当前回话用户的某种数据缓存机制”。这些应用场景，用 cookie 来做，也许能实现，但显然有问题，这就是“概念混淆”带来的问题。</p>
<p>“破坏可见性”的坏处是“形成了安全隐患”，而“增加网络带宽”的坏处是“影响用户体验和提高运营成本”，说起来，也是可大可小的。</p>
<p>SNA 是不错的，这里不反对 SNA ，反对的是“用 cookie 来存放 session ”这种实现方式。甚至于说，为了 SNA 完全可以牺牲掉 session (早年的 php 没有 session 还不是一样写程序？)，而不是象这样搞出一套“混淆视听的 session”。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kk</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3700</link>
		<dc:creator>kk</dc:creator>
		<pubDate>Thu, 17 Apr 2008 06:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3700</guid>
		<description>如果用 cookie 来存放 session ，当然是具备了在不同服务器之间的迁移性，但，其一是破坏了 session 的可见性，其二是增加了大量的网络带宽。

第一点的坏处没有那么大,只是美感不太高
第二点同上,而且不是大量,cookie可以只是保存用户id,名字的md5字符串...
而迁移性,服务器的伸缩性是一个性命攸关的问题
当第一台服务器撑不住要分散到2,3台服务器上时... SNA的好处就体现了</description>
		<content:encoded><![CDATA[<p>如果用 cookie 来存放 session ，当然是具备了在不同服务器之间的迁移性，但，其一是破坏了 session 的可见性，其二是增加了大量的网络带宽。</p>
<p>第一点的坏处没有那么大,只是美感不太高<br />
第二点同上,而且不是大量,cookie可以只是保存用户id,名字的md5字符串&#8230;<br />
而迁移性,服务器的伸缩性是一个性命攸关的问题<br />
当第一台服务器撑不住要分散到2,3台服务器上时&#8230; SNA的好处就体现了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackyz</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3681</link>
		<dc:creator>jackyz</dc:creator>
		<pubDate>Tue, 15 Apr 2008 11:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3681</guid>
		<description>呵呵，我们已经交稿，后面要看出版社的了。应该不用等到圣诞节吧。</description>
		<content:encoded><![CDATA[<p>呵呵，我们已经交稿，后面要看出版社的了。应该不用等到圣诞节吧。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pi1ot</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3670</link>
		<dc:creator>pi1ot</dc:creator>
		<pubDate>Mon, 14 Apr 2008 07:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3670</guid>
		<description>一竿子支回去年我们讨论过的话题了...
打岔一下，perogramming erlang咋样了，去年圣诞礼物没指望上，今年圣诞有戏吗</description>
		<content:encoded><![CDATA[<p>一竿子支回去年我们讨论过的话题了&#8230;<br />
打岔一下，perogramming erlang咋样了，去年圣诞礼物没指望上，今年圣诞有戏吗</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackyz</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3644</link>
		<dc:creator>jackyz</dc:creator>
		<pubDate>Sat, 12 Apr 2008 02:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3644</guid>
		<description>＠pi1ot
关于“comet的n多种可能”请移步“&lt;a href=&quot;http://erlang-china.org/misc/server-push-the-google-way.html&quot; rel=&quot;nofollow&quot;&gt;the google way&lt;/a&gt;”……。</description>
		<content:encoded><![CDATA[<p>＠pi1ot<br />
关于“comet的n多种可能”请移步“<a href="http://erlang-china.org/misc/server-push-the-google-way.html" rel="nofollow">the google way</a>”……。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pi1ot</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3637</link>
		<dc:creator>pi1ot</dc:creator>
		<pubDate>Fri, 11 Apr 2008 06:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3637</guid>
		<description>这个消息是server post 到 client的？貌似我没看懂rest</description>
		<content:encoded><![CDATA[<p>这个消息是server post 到 client的？貌似我没看懂rest</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackyz</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3636</link>
		<dc:creator>jackyz</dc:creator>
		<pubDate>Fri, 11 Apr 2008 01:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3636</guid>
		<description>@pi1ot
通过 /chat/{room}/_receive +POST 接收到一条“用户进入消息”，相应的，也可以有“用户退出消息”。</description>
		<content:encoded><![CDATA[<p>@pi1ot<br />
通过 /chat/{room}/_receive +POST 接收到一条“用户进入消息”，相应的，也可以有“用户退出消息”。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pi1ot</title>
		<link>http://erlang-china.org/misc/practical_think_on_rest.html/comment-page-1#comment-3635</link>
		<dc:creator>pi1ot</dc:creator>
		<pubDate>Fri, 11 Apr 2008 01:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/misc/practical_think_on_rest.html#comment-3635</guid>
		<description>有其他新用户进入房间时你如何得到通知去更新userlist？</description>
		<content:encoded><![CDATA[<p>有其他新用户进入房间时你如何得到通知去更新userlist？</p>
]]></content:encoded>
	</item>
</channel>
</rss>

