Discussion

Ask HN: Why isn't JSON-RPC more widely adopted?

JSON-RPC / OpenRPC seems like a great option for APIs. Why isn't it adopted more widely?

Many of the APIs of projects I've worked with look like essentially like RPC style calls. The URLs are structured as action/method names to do specific things. I like many of the benefits to an RPC approach compared to REST, GraphQL, or gRPC-Web. Unfortunately, the client code generation with popular options feels clunky when you want to use them in an RPC style. It seems like JSON-RPC would be better.

https://open-rpc.org

https://www.jsonrpc.org

151 points vyrotek 3 years ago 188 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton