|
|
|
Ask HN: Have you ever had to set up an RCP/gRPC server? Why?
|
|
2 points
by jimmyechan
811 days ago
|
|
Why should someone consider setting up an RPC/gRPC server instead of just using REST APIs, GraphQL, and other approaches? Are there particular types of applications, use cases, or scenarios where the benefits significantly outweigh the added effort of setting up and maintaining an RPC server? |
|
DCE was the hardest and least flexible. gRPC was the easiest and most flexible. Sun's ONC RPC was easier than DCE, but only a little.
If you have a case where a function call would work locally, gRPC will be better than REST because it forces users to strongly type their arguments rather than stringly type, as REST or XMLRPC allows. There's just less places for semantic arguments to happen. You can pass data structures in a lot of RPC systems, which can make a difference.