Questions tagged [rpc]
34 questions
147
votes
9 answers
Which HTTP verb should I use to trigger an action in a REST web service?
I am implementing a RESTful web service and one of the available actions will be reload. It will be used to reload configurations, cache, etc.
We started with a simple GET to an URI like this: ${path}/cache/reload (no parameters are passed, only the…

Renato Dinhani
- 2,885
- 2
- 17
- 18
37
votes
3 answers
When are RPC-ish approaches more appropriate than REST?
After watching this talk on REST, Reuse and Serendipity by Steve Vinoski, I wonder if there are business cases in greenfield projects for (XML-)RPC-ish setups, that REST could not solve in a better way.
A few RPC-Problems he mentions:
Focus on…

miku
- 1,508
- 4
- 18
- 26
23
votes
3 answers
Why is REST commonly used instead of RPC-like mechanisms in web applications?
I started very recently at a company that uses a rather unusual custom framework for their web applications, at least compared to the typical web application frameworks I know. Instead of a RESTful webservice an RPC mechanism is used to communicate…

Vivian
- 239
- 2
- 4
10
votes
5 answers
Designing function based RESTful API
Please settle an argument between me and a friend.
We'r currently designing a product API. Our Product entity looks like this
{
"Id": "",
"ProductName": "",
"StockQuantity": 0
}
Product sales are handled by a 3rd party and they are…

Sefa Ümit Oray
- 249
- 2
- 8
9
votes
2 answers
REST vs RPC for mobile development
As many know, mobile development is skyrocketing these days and, I believe, it affects what we code. To be specific, I am interested in developing web services for a mobile application.
I see two possible architectures - RPC and REST. I have…

Pijusn
- 987
- 1
- 10
- 16
6
votes
1 answer
How does a pure P2P node connect to other nodes
I'm working on my first P2P app using C# core and gRPC and I'm finding it difficult to understand the concepts of how nodes find each other and build a routing table.
For my design I'd like to only have nodes and no listener/directory/discovery…

user3953989
- 218
- 1
- 7
4
votes
1 answer
Multiprocess RPC Architecture Design
I am currently working on a project that has client applications communicating with a server process. The client applications could be local to the same machine as the server process, on the same network, or over the internet. I had written a…

Nonce
- 43
- 5
4
votes
4 answers
Why does Java require a servlet container for simple RPC service?
I have a big database controller which is written in Java. The controller reads information from the database, and interprets it into data structures which are then displayed in a CLI.
Java was chosen because writing code in it is fast and easy.…

Guy L
- 179
- 1
- 7
3
votes
2 answers
Should I use gRpc in my business layer?
I'm moving from REST APIs to gRpc but having a hard time figuring out how to structure my logic.
The basic layout of my solution is having a business layer/API and a few different front-ends (Windows app, console app, Web app, etc).
I would like to…

user3953989
- 218
- 1
- 7
2
votes
3 answers
How do RPC systems deal with slow or flaky networks?
In an RPC (Remote Procedure Call) design, an interaction across the network is hidden behind a synchronous API that makes the network interaction look (to the rest of the local program) like "just another local function call". The function-call…

Jeremy Friesner
- 1,091
- 8
- 11
2
votes
2 answers
Cache maintained by caller app or by provider app in microservices inter-app communication?
Suppose there are app1 and app2 in a microservices.
app2 needs to call app1's RESTful APIs.
Cache is needed since the call will be frequent. So after a successful RESTful call, there will be cache available for app2.
My question is who maintains the…

Wei Huang
- 245
- 1
- 6
1
vote
0 answers
Options for C# machine to machine communication
I’m evaluating different options for communication between C# applications. My requirements are:
Central server where clients connect
Persistent connection, server should know when clients connect/disconnect.
Server can broadcast messages to all…

Markus Knappen Johansson
- 192
- 6
1
vote
1 answer
Invalidation of cached GET results by other endpoints
I have not previously designed a nontrivial HTTP API, so I apologize if anything here is textbook stuff. I wasn't able to find anything going into this in much detail when I looked.
Let's say I have an API where you can upload some data and then…

Daniel McLaury
- 352
- 1
- 7
1
vote
0 answers
API Design (RPC - RESTful)
I'm new to API design. I've been reading numerous threads RESTful vs RPC patterns for API design, but I feel like none directly addressed my exact use case, so I just wanted to get a second opinion.
Let's say I want to build a web app which…

NJH
- 11
- 2
1
vote
3 answers
Is RPC itself a network protocol?
Design Data Intensive Applications compares RPC and REST. It says
The RPC model tries to make a request to a remote network service look the same as calling a function or method in your programming language, within the same process (this …

Tim
- 5,405
- 7
- 48
- 84