180 likes | 319 Views
This overview explores Remote Method Invocation (RMI) and Remote Procedure Call (RPC), two key mechanisms for enabling communication between distributed systems. RMI allows objects in different processes to communicate seamlessly, while RPC provides a way for client programs to invoke procedures in server processes. The document covers essential aspects such as request-reply protocols, case study analysis of Java RMI, message contents, design issues, and error handling in remote communications. Learn about the challenges and methodologies in implementing these models for distributed applications.
E N D
Remote Invocation Pages 185 - 225
Objectives • Introduction • RRP • RPC • Remote method invocation(RMI) • Case study: java RMI
Introduction • Request-reply protocols • Remote procedure call model (RPC) • allows client programs to call procedures in server programs running in separate processes and computers • Remote method invocation (RMI) • allows an object living in one process to invoke methods of an object living in another process
Request-reply protocols • Message identifiers • Failure model • Timeout • Discarding duplicate request messages • Lost reply messages • History
Request-reply protocols • Styles of exchange protocols
Request-reply protocols • HTTP methods (get,head,post,put,delete,options,trace)
Request-reply protocols • Message contents (Request and reply message)
Remote procedure call • Design issues for RPC • RPC Call semantics
Remote procedure call • Implementation of RPC
Remote method invocation • The object model • Distributed objects • The distributed object model
Remote method invocation • Implementation of RMI
Case Study : Java RMI (self study)