We (the platform team) recently started the productization of soroban-rpc, encountering some problems in the glue layer between HTTP and JSON RPC, for which we created an upstream ticket https://github.com/creachadair/jrpc2/issues/99
The upstream maintainer brought the point of JSONRPC not being very useful when used in conjunction with HTTP https://github.com/creachadair/jrpc2/issues/99#issuecomment-1508930995:
In general, there's not much reason to use JSON-RPC in an environment where you already have access to make HTTP or HTTPS requests. JSON-RPC doesn't have any standard notion of request metadata, for example, and inside an HTTP request the version tag, request ID, etc., are redundant when you have headers. A Bridge allows HTTP to act as a transport, but an API that needs the full expressive power of HTTP should probably use that instead of JS
I must admit I agree. I am not familiar with the original reason to use JSONRPC but, as I see it, it doesn't really give us much over plain HTTP+POST+JSON.
It does give us a standard error format, but I don't think it provides much more than that.
What are your thoughts?
I am using the HTTP Bridge to serve JSONRPC requests. In the request Handler I would like to use values from the originating HTTP request context (e.g. the HTTP request ID as injected by https://pk...