What is the difference between RPC and the calling web service

I just read about the rpc http://www.grpc.io/ remote procedure, with the other hand we have webservicewhere the client sends the request to the server and server.

The same thing happens with rpcwhere it stubcalls a method that resides on the server. I think the same thing can be realized with webservice.

What rpccan make a difference and where is it better to use?

+4
source share
4 answers

Webservices help reduce grip. You should prefer this. RPC limits you to a particular programming language. When you use web services, you can have different languages ​​and even different operating systems that can exchange information. When you think about connecting server types of devices, you should use a web service, but when you create a distributed application with several modules, perhaps RPCs are more suitable.

+1
source

RPC is a protocol that one program can use to request a service from a program located on another computer on the network, without the need to understand the details of the network. A procedure call is also sometimes called a function call or a subroutine call.

+3
source

" ". RPC, Soap WS, REST, RMI - , , , , . (grpc) RPC "Remote Procedure Call", .

, , , RMI, Java, , , Java- ( ). SOAP / XML, -. JSON HTTP, REST . , grpc .

, , - SOAP, , .

0

rpc ?

rpc

, , , .

gRPC-Web: REST + JSON - API :

"

  • API- .proto - API, .
  • JSON- - , IDE
  • , , - --
  • HTTP. gRPC - API   , , - gRPC-Web RPC 1:1, 1:
  • -

"

, , , , .

- REST . .

"

1 , , .

2 , , .

3 , .

"

?

, rpc , , HTTP . backend-to-backend, . , gRPC, /.

In all other cases, is HTTP-like communication still the standard for most use cases in 2017?

0
source

Source: https://habr.com/ru/post/1675875/


All Articles