API(Application Program Interface)
- An application programming interface (API), in the context of Java, is a collection of pre – written packages, classes, and interfaces with their respective methods, fields and constructors.
- An application program interface (API) is a set of routines, protocols, and tools for building software applications.
- Basically, an API specifies how software components should interact. Additionally, APIs are used when programming with graphical user interface (GUI) components.
RPC (Remote Procedure Call)
- RPC is one of the ways to perform communication between two computers either normally or in the form of chat. It organizes the types of messages which an application can receive in the form of functions.
- Remote Procedure Call (RPC) is a protocol that one program can use to request a service from a program located in another computer on a network without having to understand the network’s details.
- RPC uses the client-server model.
- Basically it is a management of streams of data transmission.
- The common difference between RPC and RMI is that RPC only supports procedural programming whereas RMI supports object-oriented programming. RPC supports primitive data types where as RMI support method parameters/return types. RMI is easy to program unlike RPC
- An RPC is analogous to a function call. Like a function call, when an RPC is made, the calling arguments are passed to the remote procedure and the caller waits for a response to be returned from the remote procedure.The client makes a procedure call that sends a request to the server and waits.
- Remote Procedure Call (RPC) is a inter process communication which allows calling a function in another process residing in local or remote machine. RPC supports primitive data types where as RMI support method parameters/return types as java objects.
388 total views, 1 views today