Re:I've been abusing HTTP Status Codes in my APIs for years
by eadmund on Wednesday July 13, 2022 @10:51AM
(#32083536)
> I don't need hypertext in my APIs. I want RPC in my APIs.
You may want RPCs, but you need state transfer instead, for reasons which are too long to go into here but are explained pretty well in the original REST thesis.
> I'm engineer and I care about technical arguments
IIRC the REST thesis gives technical arguments against RPC, but in general the issue is that RPC is broken in a 'fallacies programmers believe about networks' way. The right way to perform actions across a network is not remote procedure calls, but transferring state representations.
You may want RPCs, but you need state transfer instead, for reasons which are too long to go into here but are explained pretty well in the original REST thesis.
> I'm engineer and I care about technical arguments
IIRC the REST thesis gives technical arguments against RPC, but in general the issue is that RPC is broken in a 'fallacies programmers believe about networks' way. The right way to perform actions across a network is not remote procedure calls, but transferring state representations.