All Questions
88 questions
0
votes
2
answers
29
views
How services communicated before RPC
I recently found out that RPC and REST are just API constructs and not different protocols through which two services communicate and send data to each other over the network. The underlying protocol ...
0
votes
0
answers
29
views
Websocket vs SSE vs REST - TCP connections?
If each of them maintains only 1 TCP underlying connection, is the complexity in the logic / memory / cpu resources allocated on server and client only?
0
votes
1
answer
179
views
Why RPC(Remote Procedure Call) is picked rather that REST in Web3 field?
I'm a frontend dev, currently working on web3 field.
As a frontend developer, highly familiar with REST communication,
I'm having interest why eventually RPC got picked rather that REST on crypto ...
6
votes
2
answers
3k
views
RPC vs restful endpoints
I've spent more time than I'd like to admit trying to understand the differences between RPC and restful endpoints. In fact, after going down this rabbit hole, I'm not even sure I fully understand ...
0
votes
1
answer
114
views
Is RPC a blanket term for all types of client server communications where a method on server is executed?
I am trying to understand what is RPC. None of the articles clearly mention what is RPC. Does REST API calls, SOAP based calls or any other way of client server communication can be called as RPC? Or ...
-1
votes
1
answer
140
views
API Design Questions using Django for OS tasks (REST vs RPC)
Background:
I have an application that is supposed to automate some infrastructure & OS-heavy tasks that happen on a network file system (for example: mounting volumes, shutting down / bringing up ...
1
vote
1
answer
3k
views
What makes Rest different from RPC in spring boot?
We usually follow the MVC pattern while creating Rest API. I Often Confuse this sometimes with RPC since people tell me it should be in Http format and Making a CRUD operation from Spring boot does ...
1
vote
1
answer
986
views
Send REST request containing an enum (defined in RPC)
we have a delete-rpc request defined in a proto as
rpc DeleteTag(DeleteTagRequest) returns (DeleteTagResponse) {
option (google.api.http).delete = "/v2/tags";
}
message DeleteTagRequest {
...
2
votes
1
answer
3k
views
How can a REST endpoint call a method in gRPC server/ microservice?
I am very very new to gRPC and according to my requirement just wanted to know if this is possible, if yes then how ?
I have a rest API application with endpoints, how can this rest api call a gRPC ...
0
votes
1
answer
143
views
Mapping Actions to Rest URI
I have a resource 'Customer' for which I have REST endpoints defined as,
| URI | Function |
| ------------------------------ | --------------------...
4
votes
1
answer
4k
views
What is the difference between Odoo RPC, Xml RPC, JSON RPC and REST API in Odoo?
I'm confused between the concepts of Odoo RPC, XML RPC, JSON RPC, and REST API in the domain of Odoo. To my knowledge, these are the only 4 APIs that can be used in Odoo.
In Odoo's documentation, only ...
4
votes
3
answers
7k
views
Is a POST request with an empty body and a response of a pure ID value in text format RESTful
In our REST API project with a jax-rs based framework, there is one customer endpoint:
customer/
This endpoint has a POST method with an empty input body, and the response with status SUCCESS (201) ...
1
vote
1
answer
189
views
API which is REST-like but also uses mutations like GraphQL?
Would there be any huge flaws with designing an API so that it is REST-like in that there are GET endpoints for resources (i.e /courses, /professors, /students) but all POST/PUT/DELETE use a single ...
0
votes
1
answer
741
views
Trace Chain of API Calls
Let's say I have an API (A) that then makes calls to other APIs (B, C, D), is there a way for me to return all the REST/RPC calls that are made even when they are from the API that I called?
So I am ...
0
votes
1
answer
384
views
How to implement communication between consumer and producer with fast and slow workers?
I'm looking for a pattern and existing implementations for my situation:
I have synchronous soa which uses REST APIs, in fact I implement remote procedure call with REST. And I have got some slow ...
5
votes
1
answer
1k
views
RabbitMq RPC vs other sync methods
Background
We have a system that consists of several microservices. For the notification events, we're using RabbitMq queues and exchanges. For sync requests, we are using HTTP/REST.
RabbitMQ RPC ...
0
votes
1
answer
2k
views
Subscribe/publish with Express js
I have an Express js server that supplies weather forecast information to its clients. Right now, it's basically an RPC API where the client (a python client in this case) requests different types of ...
1
vote
1
answer
2k
views
Rest Api for odoo
To use odoo On an application ios, i use protocol rpc, i receive xml and i parse it, it's the first time i use it, the client told me that we can use Rest Api for odoo with this :
https://www.odoo....
0
votes
0
answers
24
views
How can we used REST and RPC as an integrated framework?
I am setting up a framework in which biometric authentication can be done through web services in service oriented architecture. Furthermore, BIAS is working with SOAP but I want to make it ...
1
vote
2
answers
3k
views
REST verb for state change - can we agree on POST?
How to best extend REST with FSM state changes?
No one can know if a state change is idempodent or not, so the wisest thing may be to assume they're not, and as a general rule use POST, ok?
To me ...
0
votes
1
answer
86
views
Securing/sanitizing remote calls to server by untrusted clients
I'm building an API which will expose (among other things) the following calls:
Upload file to remote server.
Perform various computations (over some set of possible function) on remotely uploaded ...
0
votes
1
answer
565
views
How to decide between RPC and REST for APIs?
I have made an application where the user will send the Program in either C or Python and Input via STDIN, and my API will return back the output of Program in JSON Format.
Nodejs/Expressjs Code :
...
0
votes
2
answers
1k
views
Are RPC frameworks such as Apache Thrift or GRPC or any other RPC framework RESTful?
Just to clarify what I mean by RESTful, it should satisfy the following constraints, taken from here:
Uniform Interface
Stateless
Cacheable
Client-Server
Layered System
Code on Demand
From my ...
16
votes
3
answers
9k
views
Communication between microservices - request data
I am dealing with communication between microservices.
For example (fictive example, just for the illustration):
Microservice A - Store Users (getUser, etc.)
Microservice B - Store Orders (...
3
votes
1
answer
428
views
RESTful Way to Handle Updating Detail Records
If I need to update many detail rows, my Web API controller method might look like this, using an RPC style:
[Route("api/updateAccountDetailStatus")]
[HttpGet]
public IHttpActionResult ...
1
vote
0
answers
2k
views
Difference between REST and RPC (with real example)
I know this is a common question but I was reading a lot and I feel a bit dumb, I cannot see the real diference
Example from here:
https://www.smashingmagazine.com/2016/09/understanding-rest-and-rpc-...
144
votes
2
answers
116k
views
What is the difference between grpc and websocket? Which one is more suitable for bidirectional streaming connection?
I want to develop a client-server application in a bi-directional streaming manner.
what is more suitable technology for this, grpc or websocket?
0
votes
1
answer
660
views
zipkin tracing openstack and osprofiler example
everyone
I am trying to use Zipkin to trace services in OpenStack. I know it is a huge project for me. So I wonder if there is an open source library for Zipkin tracing OpenStack.
I think I ...
5
votes
1
answer
10k
views
REST vs RPC - *Actual purpose* differences
I started writing web-apps and distributed apps when REST was already popular, so I actually never used RPC.
When searching for a simple explanation of the difference between them, I started to ...
0
votes
1
answer
165
views
GraphQL not for public API
Is GraphQL an overkill for an regular application, not public API? If we develop the application we know that for some endpoint we need to return a predefined set of data.
What benefits can give ...
6
votes
2
answers
1k
views
Why should I prefer HTTP REST over HTTP RPC JSON-Messaging style in conjunction with CQRS?
Every time I read about how web service should communicate the first thing that comes up is:
Use REST, because it decouples client and server!
I would like to build a web service where each Query ...
0
votes
0
answers
61
views
Application to application big data transfer - HBase service in the middle
I have a table in HBase which stores several billions of rows. There is a bit of "intelligence" in the row key design and the way the data is read and write. For example: the row keys are prefixed ...
7
votes
2
answers
2k
views
CQ(R)S using RPC-style API instead of REST
I'm working an a PHP/JS based project, where I like to introduce Domain Driven Design in the backend. I find that commands and queries are a better way to express my public domain, than CRUD, so I ...
0
votes
1
answer
755
views
REST API + hacks/REST + RPC hybrid. Do I get it right?
TL;DR How to mix REST requests with some non-REST requests in SPA(frontend/backend)? Or might be I just get REST wrong?
We are planning new API for SPA and mobiles(plus probably some 3rd parties). ...
0
votes
2
answers
1k
views
RPC with JSON, why does everyone hype REST so much?
If I have a browser handling PHP application, a mobile backend in PHP and an API for the 2 of them, consider the request to log in.
In REST, all this logic would have to be duplicated in controllers ...
19
votes
3
answers
21k
views
Pagination in gRPC
I'm using gRPC to paginate a call and am trying to figure out the options for doing it/approximation for it. Is this a sensible question to ask? What are some resources I can use to do this?
0
votes
1
answer
155
views
RPC Response format in RESTful API
I am designing an API and trying to stick to json-api for the output format. I need to provide a service endpoint like: resource/1/do-something-complicated. I was wondering if there are any best ...
2
votes
0
answers
281
views
REST: Acceptable number of records to return? [closed]
I've read somewhere that you shouldn't return all records at once in a GET request and you should use some sort of pagination instead (e.g., GET /users shouldn't return all records specially if the ...
1
vote
1
answer
132
views
Apache Spark Streaming : simple receivers
Is there a simple means to connect spark streaming to external sources like Rest server, RSS stream, RPC server, ...?
2
votes
0
answers
407
views
Android Message Queue RabbitMQ vs. ZeroMQ for RPC style actions?
I am trying to figure out which is the best solution for a mobile android device for sending "rpc" style calls. These are basically database queries that will return information that i will serialize ...
0
votes
0
answers
529
views
What's the average cost time for rpc call
We have legacy tcl system which talkes to DB directly. Now we want to migrate db logic to middle layer(java). It will be xmlrpc or rest call from tcl to the middle layer. I found the average cost time ...
3
votes
1
answer
3k
views
gRPC - Exposing Public APIs
Feb 26, Google announced gRPC:
http://googledevelopers.blogspot.com.br/2015/02/introducing-grpc-new-open-source-http2.html
In that post they said: "Internally at Google, we are starting to use gRPC ...
1
vote
0
answers
240
views
RESTful service contracts
We are designing an application and want to use (micro)services. We think that it would be good to enforce the APIs and contracts between services.
Protobuf and similar technologies can do this, but ...
236
votes
11
answers
199k
views
Web service differences between REST and RPC
I have a web service that accepts JSON parameters and have specific URLs for methods, e.g.:
http://IP:PORT/API/getAllData?p={JSON}
This is definitely not REST as it is not stateless. It takes ...
1
vote
1
answer
794
views
Combining REST API with RPC
I'm working on a CRM-like application that manages a list of companies via REST api:
GET /api/companies
POST /api/companies
PUT /api/company/1
DELETE /api/company/1
Now a new requirement ...
-5
votes
1
answer
273
views
Difference between REST and RPC [closed]
I understand the underlying differences between REST and RPC, where REST has resources and works well with HTTP, but I wanted to know what are the main differences in terms of result. I can make a ...
7
votes
1
answer
5k
views
RPC vs REST vs WCF?
Hello I'm currently working on a web application and I would like some of your help in using the correct way to implement my API.
RPC is the way I've started implementing it because that was the most ...
7
votes
0
answers
2k
views
Mixing REST and RPC logic in Web API 2 project
With web API 2 and the recent addition of Attribute Routing gave me the idea of creating a central API application for our corporate needs.
But my problem is that pure REST approach feels somewhat ...
5
votes
3
answers
5k
views
Best Practices for multiple POST calls in Web Api on the same controller
I have a question for you guys that do Web API REST services. How do you design your services to handle a POST of a single entity, as well as being able to receive a POST of a collection of said ...
1
vote
1
answer
421
views
Client-Server arhitecture and communication protocols [closed]
I need to develop a client/server mobile app, but I don't know what to choose as a communication protocol between client and server. I know that there are REST architectural style and RPC.
What ...