
JSON is a light weighted data exchange format. An XML-RPC message is just an HTTP-POST request. It can be implemented with any of the programming languages and also allows cross language communication. It is the RPC protocol where the procedure calls are encoded with XML as data format and HTTP as the transport mechanism. The concept of RPC has been around for more than half a century. The implementation of light weight threads allows multiple RPCs to execute parallel. It is a synchronous operation which requires the requesting program to be suspended until the output of the current remote procedure has been returned. In object-oriented programming paradigm, the RPC procedure call is represented as Remote Method Invocation(RMI). The procedure call is also known as a function call or a subroutine call. IT extends the notion of traditional procedure calling. RPC which stands for Remote Procedure Call is a method which enables program running on one computer on a distributed network make procedure call over the shared network to another device. Unrestricted Scalability: The web is the limit.Uniform State Representation: Define a virtual machine whose states are represented by interconnected resources through URL.Uniform Interface: HTTP GET, POST, PUT and DELETE.Statelessness: REST follows a stateless paradigm, meaning that the server does not store the state of the client. The resource is any object that the API can provide data from the server. So, whenever a RESTful API is called, the server will transfer the client with a representation of the state of the requested resource by the client. So, that changes made in any one side does not affect the operation of the other side. The communication is done without client and server knowing about each other in an independent manner.

The communication is done between the client and the server. So, REST is a designing pattern for APIs. REST was introduced by Roy Fielding, a computer scientist. REST is an architecture based design standard for providing communication between computer systems on the internet which makes the communication process efficient, scalable and reliable in a distributed system. Service API is the method that handles these communications, such as REST (Representational State Transfer) and gRPC(Google Remote Procedure Call). To implement the web services and to perform communication between the devices on the network Service API are used. A web service implements an API (Application Programming Interface) to communicate between client and server over a network usually through HTTP. A web service is a service provided by an independent separate program that can be called by an application and can be run on different machines.
