Distributed Computing Paradigms: Mei-Ling Liu
Distributed Computing Paradigms: Mei-Ling Liu
Mei-Ling Liu
le ve l o f ab str ac tio n
hig h
o b je c t s p a c e
n e t w o r k s e r v i c e s , o b je c t r e q u e s t b r o k e r , m o b i l e a g e n t
r e m o te p r o c e d u r e c all, r e m o te m e th o d in vo c atio n
c lie n t-se r ve r
m essag e passing
lo w
Process A
Process B
a m essage
M e s s a g e p a s s in g
12/08/21 Distributed Computing Paradigms, M 6
. Liu
The Message Passing Paradigm - 3
The basic operations required to support the basic message
passing paradigm are send, and receive.
For connection-oriented communication, the operations connect
and disconnect are also required.
With the abstraction provided by this model, the interconnected
processes perform input and output to each other, in a manner
similar to file I/O. The I/O operations encapsulate the detail of
network communication at the operating-system level.
The socket application programming interface is based on this
paradigm.
http://java.sun.com/products/jdk/1.2/docs/api/index.html
http://www.sockets.com/
s e rvic e re q u e s t
a c lie n t p ro c e s s
a se rve r pro c e ss
Server host a s e rvic e
C lient ho st
...
T h e C lie n t-S e r ve r P ar ad ig m , c o n c e p tu al
proce ss 1
re q u e st re q u e st
re sp o n se
re sp o n se
proce ss 2
r e c e iv e r s
m e ssa g e sy ste m sen de r
...
...
http://msdn.microsoft.com/library/psdk/msmq/msmq_overvie
w_4ilh.htm
Java’s Message Service
http://developer.java.sun.com/developer/technicalArticles
/Networking/messaging/
P roce ss B
P roce ss A
p ro c 1 (arg 1 , arg 2 )
p ro c 2 (arg 1 )
p ro c 3 (a rg 1 ,a rg 2 ,a rg 3 )
RPC.
Both APIs provide a tool, rpcgen, for transforming remote
procedure calls to local procedure calls to the stub.
Network services
Object spaces
P rocess 2
P rocess 1
r e m o te m e th o d in v o c a tio n m e th o d1
m e th o d2
a r e m o t e o b je c t
T h e R e m o te M e th o d C all P ar ad ig m
s e r v ic e o b je c t
S e r v ic e r e q u e s to r
O b je c t
O b je c t
R e qu e sto r
O b je c t R e q u e s t B r o k e r
re qu e stor p r o v id e r
re a
re qu e stor d w r it e
read
A n O b je c t S p a c e
H ost 1
Host 3
agent
Host 4
http://www.meitca
.com/HSL/Projects/Concordia/Welcome.html
IBM’s Aglet system.
http://www.trl.ibm.co.jp/aglets/
m essage
m essage
m essage
M e s s a g e -b a s e d g r o u p w a r e p a r a d ig m W h it e b o a r d - b a s e d g r o u p w a r e p a r a d ig m