5 ms·
Why doesn't rpc over http work out well in practice?
by nulltype 11y ago
Why doesn't rpc over http work out well in practice?
- zeveb 11y ago> Why doesn't rpc over http work out well in practice? It's not so much the nature of HTTP as the nature of RPC. RPC is all about calling remote procedures (hence the name); the issue is that there's almost always some internal state which is being mutated. REST makes clear what that state is, and provides reasonably clean semantics for idempotent updates; RPC tends to obscure that state. RPC can certainly be done right (after all, REST can be thought of as a constrained form of RPC…), but in many cases REST is the right level of abstraction to work at.