2022 Developer Survey is open! Take survey.

Questions tagged [rpc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

Is it possible to develop a web server microservice-backend with gRpc/bRpc

I've the experience of development of web servers with Go and Python. I knew that there were some web frameworks, such as Beego, Django. I have used Nginx and Beego/Django to develop and deploy some ...
user avatar
  • 211
2 votes
3 answers
291 views

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 "...
user avatar
-2 votes
2 answers
94 views

Inter-microservice communication with gRPC without hard-coding service endpoints

I'm building a microservices architecture that requires microservices to communicate with each other. Searching Google has led me to believe that gRPC is the preferred method for achieving this. ...
user avatar
  • 107
1 vote
0 answers
102 views

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. ...
user avatar
  • 11
1 vote
3 answers
213 views

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 ...
user avatar
  • 5,271
1 vote
0 answers
128 views

What's the most intuitive way to organize a set of endpoints to fetch users and their roles in groups?

What's the most intuitive way to organize a set of endpoints to fetch users and their roles in groups? i.e. Users and their roles in a specified group. Groups a user is in, and their role in each ...
user avatar
1 vote
2 answers
172 views

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 ...
user avatar
  • 235
0 votes
0 answers
84 views

JSON-RPC Json Objects Best Practices

I am building a JSON-RPC over UDP socket API in Java. There are 6 objects that will be transmitted in JSON: jsonRequest jsonSuccessResponse jsonError jsonErrorResponse jsonNotification ...
user avatar
  • 1
3 votes
2 answers
207 views

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 ...
user avatar
0 votes
1 answer
487 views

RPC with Express JS? [closed]

I've been working on a project recently where I have an Expressjs server that supplies weather forecast data to its clients. Right now, I'm using express simply as a means of exposing some functions I ...
user avatar
  • 109
1 vote
2 answers
113 views

Externalized component and communication approach - REST or RPC?

This is a hypothetical scenario with some concrete parts. Say that I have built a system that allows users to interactively arrange living room layout. The result of this arrangement is presented to ...
user avatar
  • 527
1 vote
1 answer
246 views

Should I do parallel processing in RPC web service?

Recently I was reviewing my team leader pull request in our Web API hosted by Kestrel. There was a place in our code which is sort of hot path and we are processing frequently over hundred of items ...
user avatar
  • 194
9 votes
5 answers
2k views

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 ...
user avatar
6 votes
1 answer
1k views

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 ...
user avatar
1 vote
1 answer
77 views

Is there a simple way to call a method on an object in another program with a given id over TCP?

I'm working on a project where I have two programs which need to invoke methods on some of each other's objects. I do this by sending JSON objects over a TCP connection. These objects have a ...
user avatar
1 vote
1 answer
1k views

RMI/CORBA vs Web service

As mentioned in wiki, A service-oriented architecture (SOA) is a style of software design where services are provided to the other components by application components, through a communication ...
user avatar
  • 2,225
1 vote
1 answer
784 views

Replacing HTTP with plain TCP in a client-server application

I'm building a small application composed of: Client (command-line) Business logic (remote server) It's a simple game of tick-tack-toe where the client sends information to the server about which ...
user avatar
  • 115
22 votes
3 answers
3k views

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 ...
user avatar
  • 229
1 vote
3 answers
1k views

Java 1.7 library with a Java 1.5 program - what are the options

I have a class library which is compiled with JDK 1.7 It uses several 1.7 features and classes and would be very difficult to get it recompiled in JDK 1.5. This needs to integrate with an old legacy ...
user avatar
  • 441
131 votes
9 answers
71k views

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}...
user avatar
1 vote
1 answer
249 views

Implement RPC via SIP

Look at the following use case. I have a client (Java) application, which wants to get/set the state of another, remote application (C). The communication between them is done via SIP, which is run ...
user avatar
  • 111
0 votes
1 answer
704 views

REST and RPC in multi-tier API

My team is developing a multi-tier API with scalability and modularity in mind. The public access point of the API is fully REST. However, we are splitting the data access layer as another tier in our ...
user avatar
  • 121
1 vote
2 answers
327 views

Why would Java app make RPC call to itself?

I am working with a multithreaded homegrown multi-module app in my new job. We use the the Thrift protocol to communicate RPC calls between different stand-alone applications in a distributed system. ...
user avatar
  • 1,551
8 votes
2 answers
3k views

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 ...
user avatar
  • 947
4 votes
1 answer
1k views

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 ...
user avatar
  • 43
4 votes
4 answers
4k views

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 ...
user avatar
  • 179
1 vote
1 answer
359 views

Building an RPC framework

I'm curious about what it takes to build a simple and robust RPC framework. I've only looked at a few ruby frameworks but they are all lacking in some way. What I want out of an RPC framework is some ...
user avatar
1 vote
1 answer
220 views

How we call an RPC that not only calls external functions but also updates data structures?

I have a simple C++ RPC that lets you have remote class instances that support live members (data structures) update as well as method calls. For example I had a class declared like this (pseudocode): ...
user avatar
  • 541
34 votes
3 answers
30k views

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 ...
user avatar
  • 1,488
1 vote
5 answers
2k views

Call a script over the network

I have a Python script on a box that I want to call from a Java server, over the network. I know that I can start a server on the Python side and then connect to it from the Java site, but I am trying ...
user avatar
0 votes
1 answer
178 views

Multiplayer Game Listen Servers: Ensuring Integrity

I'm making a simple multiplayer game of Tic Tac Toe in Python using Bridge (its an RPC service built over a message queue - RabbitMQ) and I'd like to structure it so that the client and the server are ...
user avatar
1 vote
1 answer
150 views

User Authentication. Database lookup vs RPC call

If we have more than one service that uses same database - is it ok to move out user authentication on separate server and use RPC calls, instead of traditional database lookup?
user avatar