Show HN: RPC Between Front End and Back End (Node.js) – REST/GraphQL Alternative
github.com
github.com
But until you hit that point you're better off with RPC. "Premature optimization is the root of all evil" holds here as well. A startup should start with RPC and solve structural problems as they arise. RPC has no lock-in; you can progressively replace RPC endpoints with a REST/GraphQL API.
The nice thing here is that, once you hit structural problems, it will become much clearer what the right solution is. Will it be REST or GraphQL? Or maybe something else entirely such as domain-driven separation of concerns? You will know better than today.
It is virtually impossible to know the needs of an architecture that doesn't exist yet.
Today REST and GraphQL are the default choice. But really, it is RPC that should be the default choice. And that's a widespread mistake in the dev community.
Wouldn't you agree? I'm curious to know what your thoughts are.