由买买提看人间百态

topics

全部话题 - 话题: rest
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
g***s
发帖数: 733
1
来自主题: Basketball版 - ESPN: Spurs fined $250K for resting stars
奶奶太狠了。我太能理解伯伯了,马刺这几个高龄马车这么操就废了。
http://espn.go.com/nba/story/_/id/8695865/nba-fines-san-antonio
Gregg Popovich sent his best players home, deciding they reached the end of
the road before the trip was finished.
For that, and for keeping it a secret, the San Antonio Spurs were fined $250
,000 by the NBA on Friday.
Commissioner David Stern said the Spurs "did a disservice to the league and
our fans" when they didn't bring Tim Duncan, Tony Parker, Manu Ginobili or
Danny Green to Miami for the final... 阅读全帖
b******y
发帖数: 1684
2
来自主题: Java版 - REST
现在项目里面用REST. 看了rest web service那本书,里面对比REST和SOAP,
把REST吹得天花乱坠。老夫不觉得有那么神。关键是这个REST基于get/put/post
/delete什么的,我不觉得所有的operation都可以轻易归于这4类。
最主要的就是search (by multiple parameters),其实REST的实现就是hack
这get。而search还有一些fancy的模糊search啦,case-insensitive啦,
between date啦,还有sort order. REST好像不是那么万能啊。
i*****e
发帖数: 20
3
来自主题: JobHunting版 - RESTful 到底有啥优势呢
楼上的理解都比较肤浅,而且google有pass平台怎么可能被人领先,他发布的rest很好
。基于soap的ws比较常见于soa领域,而且支持复杂跨平台事务,这是rest所不具备的
,在soa领域rest很难做到复杂的api的自身描述,这也是soap的优势所在,rest更符合
网络精神,是因为他的stateless,rest在验证领域也有问题,不如soap支持的好,
soap有完整的signature支持协议,不过总的来说,各自在不同领域有优势,未来趋势
是rest,但是soap暂时有它的市场。
j****y
发帖数: 178
4
刚开始学REST, 没有用maven(不会)。新下载的jersey。请教是哪里有问题呢。
代码如下:
Java code:
package com.testrest.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
// Plain old Java Object it does not extend as class or implements
// an interface
// The class registers its methods for the HTTP GET request using the @GET
annotation.
// Using the @Produces annotation, it defines that it can deliver several
MIME types,
// text, XML and HTML.
// The browser requ... 阅读全帖
g*****g
发帖数: 34805
5
来自主题: JobHunting版 - RESTful 到底有啥优势呢
distributed transaction跟rest或者soap无关,两者要做都可以做到,而且做
distributed transaction需要三思是否必要。WS跟cloud
computing更是没什么大的相关度,google在云计算方面也远远落后于Amazon。
SOAP主要的优势是client端可以自动产生,因为WSDL定义了接口,相比之下REST基本上
只有wiki文档。
然而这个优势也随着REST工具的完善而减少。将来SOAP基本上成为legacy。REST的两大
优势,性能和可读性,是趋势。基于json的
rest在很长一堆时间会是主流,现在没有看到替代的技术。
y********g
发帖数: 3097
6
悲催的孕妇,10周多了.连续两次大出血,本周检查发现子宫里的血块比上次还大,现在医
生让bed rest,每个小时站立时间不能超过10分钟.
我要疯疯疯了,我觉得自己整个人都要垮了,这个bed rest就是一个home arrest.不动让
我很不舒服,我狗了哈,好象prolonged bed rest容易得血栓,长期卧床对身体overall是
很大的创伤.身体会deteriorate.
心情不好,骂了老公好多次.骂他只知道要老二不关心我的身体.
老二是surprise,我本来就不打算生孩子了.刚刚知道自己怀孕,我很坚定的不要.我知道
如果发到宝宝版,肯定要被骂死.
我们家情况真的太苦了,公婆和我父亲不能来也不能帮任何忙.我做饭基本做做我生,我
生完老大回到家就开始干活,我们家由于种种原因,老公说他计划不好没有给我找到baby
sitter.其间我发高烧,老公还带着我和刚出生不久的孩子到处去看租房子.我母亲在我
生完孩子3个月内发现cancer末期,很快就走了.我受了很大的打击,depress了2年多.
我老公年纪很大身体不好工作很忙.我自己身体也一般,前年做手术把部分小肠切掉.去
年... 阅读全帖
G*****e
发帖数: 2577
7
ID:
glavine
歌名:
Leave out all the rest
翻唱说明:
Twilight 插曲,LINKIN PARK力作。。。。。捏着嗓子唱唱。。。。原谅我的大舌头英
语和错拍。。。
糙,快,不猛。。。。
歌曲链接:
曲作者:
词作者:
原唱:
Linkin Park
歌词:
I dreamed I was missing You were so scared
But no one would listen 'Cause no one else cared
After my dreaming I woke with this fear
What am I leaving When I'm done here?
So if you're asking me I want you to know
When my time comes Forget the wrong that I've done
Help me leave behind some Reasons to be missed
And don't resent me And when you're feeli... 阅读全帖
t**********s
发帖数: 930
8
我发现 Jenkins 可以通过 Rest API 来启动一个 build execution:
curl -X POST --user http://localhost:8080/view/job/
谁知道 Jenkins 的 任务完成后能否通过其 Rest API 查询到任务执行的结果?
我打算把 Ant Hill Pro 和 Jenkins 通过Jenkins 的Rest API 连起来. Ant Hill Pro
做CI, Jenkins 上执行测试任务。Jenkins 上的任务通过Rest API 被启动,然后任务
状态通过 Rest API 返回给Ant Hill Pro.
我觉得这应该是个自动化的循环过程。
现在第二步就卡住了。不知道Jenkins的哪个API能返回任务运行的状态和结果。
谢谢
z*******3
发帖数: 13709
9
来自主题: JobHunting版 - RESTful 到底有啥优势呢
ft
soap一样用get,把soap放在http body里面
剩下的跟rest一样做,rest跟soap无本质冲突
rest可以用soap,soap一样可以用rest
两个都不是一个东西
n******n
发帖数: 602
10
来自主题: JobHunting版 - 请教一些热门的rest面试题
I think this question is a bit weird. If it is testing REST, people should
ask design pattern that is benefited from a REST API. For example stateless,
each API represent underlying resource. If you do it right, REST API server
mock is extremely trivial to produce, thus unit test or test with mock
server is almost zero effort, vs you will have to write a complete model for
the rest end point.
Why ask how to use POST to emulate PUT when PUT is not allowed? Also
authentication/authorization is usu... 阅读全帖
e*****t
发帖数: 1005
11
rest是个框。从architecture上讲,的确是有面向rest的architecture.
不过在日常生活中, rest = restful or restish web service,这就是为什么上面的有
误会了。
谈到architecture的话,你也说了,是resource oriented,所以应用很多都是content
based system。对于大多数business oriented,很难直接用。
c*****y
发帖数: 562
12
来自主题: Java版 - java SOAP比restful难学吗?
现在所谓“standard based” SOA和Enterprise Integration还是SOAP/WSDL/BPEL那一
套。不新潮不代表legacy。SOAP和REST都会长期存在。
都没啥难的,SOAP/RESTful都算计算机工作中最简单的了吧。
其实SOAP和REST不是并列词汇。REST是architecture style,与之并列的是RPC。SOAP
是spec。把它们俩列在一块就像问“你觉的iOS好呢还是Nexus 5好” :)
x****d
发帖数: 1766
13
nnd,实在看不下去了。打脸就打脸吧,我老也来装逼一会。
马公根本不懂政治,也不懂经济,既不懂创造就业,也不懂创造泡妞机会。魏老师,好
虫的方案都有问题,没有大局观,北京老二那storm更不知所谓,回头我老有时间在来
吐槽你们。
REST这个大方向先给你拍在这,具体怎么做办法多了,回头再细说。
每个车次,每个铁路局,每个铁路段,每张票都是resource。
信息化基础建设必须有前瞻性,要做到配合big data, semantic web各种技术,配合
http2.0,各种新兴的协议,各种新兴的浏览器和苹果安卓为代表的app经济。
REST实施简单易行,HATEOAS为适应各种挑战和机遇都打下坚实的基础。
售票REST了,下面是铁路调度信息的rest api,给各个相关部门的stream api,有这些
你们爱cassandra就ca,爱storm就storm,上dataware house,big data,啥buzz word
都成。
我老开了个头了,有远见的各位同道来顶吧。要砸要打脸,我老也奉陪一会。
s****y
发帖数: 503
14
我学了Web Service和CXF,发现现在很多人都在用REST,大家是怎么学习REST的?
有没有REST的视频教程和学习资料可以参考?
c*********e
发帖数: 16335
15
restful比soap好,大部分的mobile app都是用restful api,没错啊。你不会restful?
z*******3
发帖数: 13709
16
来自主题: JobHunting版 - RESTful 到底有啥优势呢
rest是架构,主要特征是传输协议用的是http
soap是封装协议
严格说来两个并不互相冲突
但是rest可以用json这些,soap就只能用xml了
rest一般传输协议用http,soap就什么都可以
g*****g
发帖数: 34805
17
来自主题: JobHunting版 - RESTful 到底有啥优势呢
There are too many misconceptions in this thread. Stateful or stateless is
not the difference between SOAP and REST. Most people use either in
stateless way. SOAP provides some support in the spec for stateful requests.
But nothing stops you from building your custom plumbing in REST service
for stateful requests/responses.
Overall, stateful is an anti-pattern for scalability, but it's not the
reason you choose REST over SOAP. Because SOAP is usually stateless too.
z*******3
发帖数: 13709
18
来自主题: JobHunting版 - RESTful 到底有啥优势呢
twitter加多redis之类的数据库多做点缓存就好了
但是同时也要弱化状态,尤其是singleton要替换stateless
twitter主要是量太大,相比之下每一次请求的处理反而并不复杂
这个在通信行业比如erlang有不少经验可以借鉴
比如lyce替换lamp构架,效率马上就爬五六倍上去
而且twitter平均每次处理的复杂度远没有ebiz要求高
ebiz还要卷入transaction,光c*还不够
要上db,两个都不太容易做
但是两个是不同类型的需求,不能一概而论
twitter那种不用ws,连rest都不用应该是最理想的
rest的http有不少限制,对于传输协议的限制甚至强过xml对于文件格式的限制
http毕竟只是一个超文本传输协议,而twitter那种压根就不是超文本
就是一破文本,rest都over kill了

like
j******f
发帖数: 825
19
来自主题: JobHunting版 - RESTful 到底有啥优势呢
这种问题很难回答,不同的人经历不同,答案也不一样。
如果你在实际应用中遇到过这个问题,你应该有答案。但是如果面试官的经历不同,那
你的答案对他来说可能是错的。
我最近做的一个项目中遇到过这个问题。 我是这样做的。
内部的各个节点之间通信用AMQP,因为对我来说这样更容易,而且可以做到实时。
对外部的API用REST,因为对于别人来说这个接口简单通用,容易使用,也易于控制。
简单来说,所用语言都提供了良好的支持。
在这里,API用REST的缺点就是实现实时比较困难。 比如,如果服务器端向客户端发送
实时信息需要客户端不停的去polling才能实现。当然现在可以用第三方的库实现,但
是这样同时也失去了REST最重要的优点。

发帖数: 1
20
来自主题: JobHunting版 - 请教一些热门的rest面试题
是关于rest api的,例如如果一个网站屏蔽了put type你怎么做?Restful的登录认证
一般怎么做?
还有让设计一个rest api, 需要在一定半径范围内返回所有的点,线和多面形。这种
设计要考虑什么?面试官想考什么呢?
请大牛来指点一下,非常感谢啊!
s******k
发帖数: 1149
21
来自主题: SanFrancisco版 - Obama 又在高喊'will not rest'了
Y竞选时就在高喊'will not rest',现在又喊上了。可我怎么记得Y才去度假呀,
月初Y的生日PARTY也请了一帮好莱坞明星祝寿。上任GOLF玩了不下80次了吧(有媒介记
载的)。Y可真忙。
President Obama rebuffed reporters' attempts to ask about Afghanistan today,
focusing instead on what he described as his administration's biggest
challenge: Jobs.
"I will not rest until businesses are investing again and businesses are
hiring again and people have work again," Obama said after meeting with his
Cabinet.
Obama said the stimulus bill and other administration actions are helping
the ... 阅读全帖
Q*K
发帖数: 3464
22
来自主题: Seattle版 - rest and vest
Wow, you learn something new everyday: rest and vest!
"Ray didn't get much done in 5 years. He was the typical Microsoft
millionaire doing the "rest and vest". Rest while your millions of stock
options are vesting."
w*****n
发帖数: 438
23
来自主题: GunsAndGears版 - 推荐一个universal rifle rest
好东西啊。我以前一直十手托,现在用上这个rifle rest明显准了很多。看来我手抖得
比较厉害。
枪支:Ruger 10/22
距离:50码
弹药:Remington金砖,各50 rounds
图一:rifle rest
图二:手托
图三:使用rifle rest
t*******f
发帖数: 2634
24
来自主题: Running版 - How long can one rest?
How long can one rest without performance
degradation? (kind of tapering)
I did not run on Monday and Tuesday day time to
rest my AT and all kinds of muscles soreness from
last week consecutive 3 days of >12 mile running
every day.
Felt not so good, so had a short shopping-running
in the evening.
I would like to rest more to get better recovery
for the next round of running/weight-loss, goal
is go to sub 150LB. But I noticed that my body weight
bounced back about 1-2LB from inactivity. This is
p... 阅读全帖
y**********u
发帖数: 6366
25
来自主题: Running版 - How long can one rest?
我修了1个月,现在基本上100m就开始牛喘了。。。

How long can one rest without performance
degradation? (kind of tapering)
I did not run on Monday and Tuesday day time to
rest my AT and all kinds of muscles soreness from
last week consecutive 3 days of >12 mile running
every day.
Felt not so good, so had a short shopping-running
in the evening.
I would like to rest more to get better recovery
for the next round of running/weight-loss, goal
is go to sub 150LB. But I noticed that my body weight
bounced back about 1-2LB... 阅读全帖
t*******f
发帖数: 2634
26
来自主题: Running版 - LHR after long rest
Had rested from early this month till last Friday. Three weeks
off running gave me a perfect chance to rest all the small injuries
in muscles and tendons, especially my hip tendon pain was completely
gone. My right back heel pain was much much better. I could see
that the inflammation had shrunk significantly. However, I got
an accident on my left back heel so I had to rest it in case it
got worse - still a little painful, but no inflammation (lucky
enough). Have not taken IBU for quite some tim... 阅读全帖
t*******e
发帖数: 684
27
来自主题: Java版 - REST
rest主要用于B2C,newsfeed, weblog, ajax里用的很多。soap是B2B为主,有security
,
transaction等协议。SOA和BPM主要用soap,不过现在rest也慢慢加进来了。
你提到的那些功能,rest也都能实现。
w**z
发帖数: 8232
28
我觉得rest 最大的好处是easy for client to invoke. 随便搞个http client 就行.
至于resourse aspect of rest, it is hard to follow in the real world.
sometimes people use rest in a soap way, we pass a Json message around.
with Jersey/Jackson, it is so much easier than dealing with XML.
c*********e
发帖数: 16335
29
【 以下文字转载自 Programming 讨论区 】
发信人: convergence (Rex), 信区: Programming
标 题: rails和java,c#的rest web services比较,有何优缺点?
发信站: BBS 未名空间站 (Sun Oct 20 10:56:01 2013, 美东)
貌似现在很多19岁高中毕业生都在用ruby on rails做rest web services.
大家说说,ruby on rails和java,c#的rest web services比较,有何优缺点?
c*********e
发帖数: 16335
30
【 以下文字转载自 Programming 讨论区 】
发信人: convergence (Rex), 信区: Programming
标 题: rails和java,c#的rest web services比较,有何优缺点?
发信站: BBS 未名空间站 (Sun Oct 20 10:56:01 2013, 美东)
貌似现在很多19岁高中毕业生都在用ruby on rails做rest web services.
大家说说,ruby on rails和java,c#的rest web services比较,有何优缺点?
t**********s
发帖数: 930
31
【 以下文字转载自 Programming 讨论区 】
发信人: tennisalways (tennisforever), 信区: Programming
标 题: Spring + Jersey 的 REST API, servlet context 能看到 Spring 的 root application context 里的bean吗?
发信站: BBS 未名空间站 (Fri Oct 9 17:57:56 2015, 美东)
比如这样的 web.xml

contextConfigLocation
/WEB-INF/root-context.xml



org.springframework.web.context.ContextLoaderListener
阅读全帖
x****d
发帖数: 1766
32
北京老二那个storm,twitter的东东是牛,可你忘了twitter是先rest api才起来的,
前端搞啥子node还clojure,您跟铁老大整这些,能整明白?
rest api起来,各牌的猴子胡孙愿意写app就app,愿意网站就网站,携程要整合现有系
统也没有问题。
那个什么storm,那个cassandra都给我到幕后去,谁不听话我换了谁,你们要用storm
我不管,前面唱戏的功劳只能是我rest api。
x****d
发帖数: 1766
33
我支持zhaoce的判断,人家app server没事,我动它干啥?
加了这个rest,逐步也许能把app server过渡掉,不过这个看人家铁道部的意思,我们
说了不算。
原来的票能卖,现在就能卖。
原来的app server 负责post(create),put(update tickets sold by 原系统)。
外围api用户,subscriber 做的是get(read ticket info),put(卖了票就update)。
rest做了是千秋大业,web server的问题解决了,将来app server 和 db以rest api
为平台都可以过渡出来。
c*********e
发帖数: 16335
34
来自主题: Programming版 - 有没有人觉得restful被高估了
银行的信用卡结帐就是用的restful api啊,什么乱七八糟的操作系统和这个restful
api连接,就能做结帐操作。
现在你知道为什么restful api这么流行吧?它结构简单,各种操作系统,web app,
desktop app, mobile app都能用它。
w*******y
发帖数: 60932
35
Wellness Innovations Neck Rest Memory Foam $3.99, Travel Mate Car Neck
Memory Foam Pillow $4.99 Machine washable Velour Covers free shipping with
Prime (FSSS) from Amazon
Wellness Innovations Neck Rest Memory Foam $3.99Reduce strain, tension and
fatigue while you travel
Does not push your neck and head forward like most travel pillows do
Machine washable Velour Cover
Compact, lightweight, easy to carry and store in a carry-on luggage
Works in planes, trains, buses, automobiles, airport terminals... 阅读全帖
k***g
发帖数: 7244
36
11月份才在北美刚上架,3月份在英国就出版了,Niall Ferguson 写的,他是哈佛的历
史学教授,写过不少畅销书,特别是近些年,金融危机他写 money 的历史,西方被危
机重创,他又开始写西方文明会不会 doom,所以也有不少做学术的人批评他,说他唯
一一部拿得出手的学术著作就是他早先写的关于罗斯切尔德家族的。
Anyway,他这本书也是在解释为什么西方会崛起,虽然名字上写是 The West 和 The
Rest,但是这个 the Rest 很大程度上还是中国,反正不管怎样,中国都会在背景默默
的中枪。。。
他总结了崛起的若干“药方“,其实也没什么太大的新意,无非是马克思 + 韦伯,譬
如新教伦理,譬如科学,譬如医药,譬如保护私人产权,还有竞争以及消费社会(消费
社会可能新一点儿吧)。(印象里他没有提发现新大陆和煤炭之类的,不然就成大杂烩
了)
不过比较有趣的是他的结论:就是中国崛起超过了西方,但这仍然是西方的胜利,因为
中国接受了西方的”药方“ 。。。 呵呵
k*****e
发帖数: 22013
37
来自主题: QueerNews版 - On Prop 8, the defense isn't resting
综述两方博客的评论
http://firstread.msnbc.msn.com/_news/2010/08/09/4850559-blog-buzz-on-prop-8-the-defense-isnt-resting
Blog Buzz: On Prop 8, the defense isn't resting
Ali Weinberg writes: Both sides of the blogosphere were still reacting to an
interview between "Fox News Sunday" host Chris Wallace and attorney Ted
Olson, who represented Republicans in 2000's Bush v. Gore case and recently
worked alongside David Boies, the Democrats' lawyer in that case, to argue
in favor of overturning California's ban
y***0
发帖数: 510
38
来自主题: Classified版 - [出售]3M Gel Wrist Rest for Keyboard @ $10
二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
3M Gel Wrist Rest for Keyboard @ $10
单张面值:
可接受价格(必须明码标价!):
$10
物品新旧要求:
Brand new, never been used.
邮寄方式要求:
USPS service: $5.50 for standard shipping and $8.50 for expedited shipping
买卖双方谁承担邮寄损失(Required if not code only):
Before after
付款方式说明:
PayPal or Chase quickpay
其他补充说明:
1. 3M's gel technology creates a wrist rest that is firm enough to provide
the
support you need, but soft enough for optimal comfort.
2. Leatherette cover feature antimicrobial product prote... 阅读全帖
z****e
发帖数: 54598
39
来自主题: JobHunting版 - Node+Rest=马工神器?
他们不可能用node.js
你倒是可以提供一个restful的接口给别人
你可以忽悠你们web组用nodejs
然后你就可以用restful的ws了
不过这些都不难,都是简化了的东西
你都会复杂的了还会害怕简化了的?
p*u
发帖数: 136
40
来自主题: JobHunting版 - RESTful 到底有啥优势呢
http://www.infoq.com/cn/articles/understanding-restful-style
理解本真的REST架构风格
c******3
发帖数: 296
41
来自主题: JobHunting版 - RESTful 到底有啥优势呢
soap vs. rest 就象c++ vs. shell script。各有各的用处,谁也取代不了谁。
都用soap,烦死。都用rest,累死。
b***m
发帖数: 5987
42
来自主题: JobHunting版 - RESTful 到底有啥优势呢
这个我一言两语讲不清,因为我自己也是半瓶子水,不过基本任何一本REST的书开篇都
会讲到这个stateless的优势。REST还有一个很大的好处是容易被第三方audit。
r****s
发帖数: 1025
43
来自主题: JobHunting版 - RESTful 到底有啥优势呢
SOAP/WS简单地说就是被一帮phd fucked up。本来很简单的请求/回复被这帮孙子搞出
各种花样出来cook paper毕业。你还辩不过这帮孙子,个个都振振有词。
最后有个充满幽默感的phd发表了一篇毕业论文,引进了RESTful(实际上是back to
basics), 结束了整个bullshit。大家都安静了,因为反对派终于手里有了同样的
theoretical junk弹药。
简单地说,restful就是你走到食堂的窗子前,敲敲窗,说你要买个包子,然后食堂给你
递个包子出来。
SOAP就是你走到食堂的窗子前,敲敲窗,递进去一个信封,大师傅得解开一个套一个的
信封,根据信封的内容,进行复杂的操作,信封都对上号了最后尼玛递给你一个包子,
信封只要错了一个大师傅就兜头浇你一勺汤。
你理解的没错,对买个包子来说,那就是有病。
b********r
发帖数: 620
44
来自主题: JobHunting版 - RESTful 到底有啥优势呢
REST vs SOAP
REST SOAP
Cached Yes over Get No due to POST
Transport protocol HTTP/HTTPS (currently tied to) Lots of like HTTP,
SMTP, etc.
Stateless Yes only Can support stateful
Stricter No Yes due to WSDL
XML Wrapper No (preferred in mobile devices) Yes
Message format XML, JSON, etc. XML
Misc More features such as security, reliable messaging, atomic
transaction
Architecture style Protocol
m*****k
发帖数: 731
45
来自主题: JobHunting版 - RESTful 到底有啥优势呢
>>在这里,API用REST的缺点就是实现实时比较困难。 比如,如果服务器端向客户端发
送实时信息需要客户端不停的去polling才能实现。当然现在可以用第三方的库实现,但
是这样同时也失去了REST最重要的优点。
这本来就不是ws的出发点吧
e********c
发帖数: 66
46
来自主题: JobHunting版 - RESTful 到底有啥优势呢
REST是Roy Fielding在UCI的PhD论文。这哥们90年代写了很多HTTP的协议(RFC)。
SOAP是基于Web的Remote Procedure Call, 起了个好名字叫Web Service。 REST是
Paradigm,就像IoC(Inversion Of Control), 把WEB当作资源,每个都资源都有
CRUD四种操作。
e*****3
发帖数: 610
47
来自主题: JobHunting版 - RESTful 到底有啥优势呢
我觉得Client side framework(Backbone, Ember, Angular) 对Rest流行也有一定推动
作用。Server side rest按convention来,client side define model object,然后
CRUD就自动实现了。
c******n
发帖数: 4965
48
来自主题: JobHunting版 - RESTful 到底有啥优势呢
其实都扯淡, 只不过是一个 encoding,encapsulation 的问题。
用avro thrift protobuf 之类的idl 写出逻辑的interface, 想compile 出什么样的on
wire protocol 都可以(json XML. binary )
所以 goog 内部根本不屌什么 rest.
rest ,横行完全是因为历史原因:soap 做出来了, 但是tool chain 很烂, 搞得人去
写机器该做的事,不堪其苦。 有些程序员就说, 啊算了我写个简单的吧, 其实他还
是解决问题的方向错了, 该去让工具更强大而不是让product 更crudep
g*****g
发帖数: 34805
49
来自主题: JobHunting版 - RESTful 到底有啥优势呢
You are still not getting the point. Protobuf doesn't compare to REST. You
often run protobuf in REST, as an XML/JSON replacement.

encapsulation
l******s
发帖数: 3045
50
restful理论很简单,不过扩展出的内容很多,相关语言的httpclient类库方法细节,
jason的序列化反序列化细节,异步调用等可以问很多,还有debug用的一些工具比如
fiddler,Soap.UI,以及http header的内部的一些细节,例如如果一个网站屏蔽了put
type你怎么做?Restful的登录认证一般怎么做?cookie怎么加?。再扩展可以问soap
以及web services等等。
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)