REST vs RPC

The cluster centers on debates comparing RESTful APIs to RPC mechanisms like gRPC, JSON-RPC, and SOAP, questioning if modern REST is just RPC over HTTP and discussing their architectural trade-offs.

➡️ Stable 0.5x Web Development
3,392
Comments
20
Years Active
5
Top Authors
#5507
Topic ID

Activity Over Time

2007
9
2008
53
2009
45
2010
115
2011
127
2012
187
2013
119
2014
167
2015
235
2016
159
2017
308
2018
198
2019
191
2020
238
2021
206
2022
267
2023
315
2024
161
2025
283
2026
9

Keywords

e.g JS FTW HEAD PUT RPC EJB RP IMO XML rpc http rest soap grpc json api client implement remote

Sample Comments

stephenr May 28, 2018 View on HN

Sounds like the API's you're talking about are some flavour of RPC.So rephrase your own question: what's wrong with RPC?

dschiptsov May 15, 2015 View on HN

Isn't REST is a way to implement RPC?)

mythz Apr 9, 2019 View on HN

Why? What's so limiting about calling remote services over HTTP?

philwelch Jul 8, 2020 View on HN

What is commonly referred to as “REST” isn’t actually REST, and trying to cram that round peg into that square hole is a hobgoblin of little minds IMO. In practice, “REST” can be simplified to RPC over HTTP using JSON as a wire format. Or you can use gRPC and get strong typing and explicit RPC semantics instead.

zachrose Jun 30, 2014 View on HN

If HTTP is a bad fit for RPC interfaces, is there something that is a better fit?

ExpiredLink Dec 28, 2014 View on HN

RPC is a low level API for which you have to set up and implement many parts that HTTP delivers out of the box. RPC probably not even has a significant performance advantage.

remram Feb 22, 2023 View on HN

RPC usually means stateful client so REST goes out the window.

yoz Jun 7, 2021 View on HN

To reiterate what someone else already said: no, REST was never meant to be “just RPC”. If you want RPC over HTTP, use something like JSON-RPC rather than trying to invent it yourself; its creators have already solved many of the problems that you’re about to hit.The term REST (short for Representational State Transfer) was defined by Roy Fielding in a dissertation in 2000. There are many ways in which REST is better suited for web APIs than the RPC model: some of them are about communication

eyelidlessness Oct 27, 2021 View on HN

I’m disappointed to see this comment. What don’t you think can be expressed with REST that can be with RPC?

nesarkvechnep Oct 27, 2025 View on HN

REST is the solution to this but it's reduced to JSON RPC over HTTP nowadays.