Reputation: 20640
What is special about a remote procedure call?
From what I have seen so far, they seem to have similar functionalities as a HTTP API or TCP API. Why not just use a http/tcp api?
As a developer that wishes to open up an API, why would I choose to use JSON RPC over a HTTP or TCP API (with a JSON encoded payload)
Upvotes: 1
Views: 1137
Reputation: 102343
RPC
is a different type of architecture that predates REST
- it is more focused on procedures while REST
focuses on exposing resources with a consistent API
.
RPC
s are most often found in legacy code and in cases where REST may not be appropriate.
Upvotes: 1