samol
samol

Reputation: 20640

What is the difference between a JSON/XML RPC and a HTTP api or TCP API

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

Answers (1)

max
max

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.

RPCs are most often found in legacy code and in cases where REST may not be appropriate.

Upvotes: 1

Related Questions