TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Do you really know why you prefer REST over RPC

1 pointsby leonsmithabout 8 years ago

1 comment

dozzieabout 8 years ago
&gt; Both RPC and REST use HTTP protocol which is a request&#x2F;response protocol.<p>Uhm... No? Who lied you so horribly?<p>&gt; As far as I know, there are no particular rules for this style [RPC] but generally:<p>No. You have just pasted REST-ish ad-hoc protocol. This is not RPC. RPC uses a properly defined protocol, such as XML-RPC or JSON-RPC or Thrift or gRPC, and it doesn&#x27;t shit all over the place in URL router: the procedure to be called is encoded in <i>the body of the request</i>, along with parameters.
评论 #13929603 未加载