190 likes | 264 Views
INF 123 SW Arch, dist sys & interop Lecture 13. Prof. Crista Lopes. Objectives. Understanding of Event-Based Architectures Understanding practicalities of th e Internet IP addresses routers security. Event-Based Architectures.
E N D
INF 123 SW Arch, dist sys & interopLecture 13 Prof. Crista Lopes
Objectives • Understanding of Event-Based Architectures • Understanding practicalities of the Internet • IP addresses • routers • security
Event-Based Architectures • An EBA is an architecture based on parts that interact solely or predominantly using event notifications, instead of direct method calls.
Event-Based Architectures Component A Component B 3 1 4 2 Event Broker Component A registers an event of type E Component B subscribes to that event type Component A raises that event Component B is notified of that event
Advantage over direct calls E Component A Component B E Component C … coupling
Advantage over direct calls Component A Component B 3 1 4 2 Event Broker 4 2 No coupling! Component C …
Disadvantage over direct calls • Less control on timing • More difficult to understand program flow
Events at different levels • Software architecture • possibly with programming language support • System architecture
SW Level without PL support Object A Object B 3 1 4 2 Event Broker (your code or library object) 4 2 Object C …
SW Level with PL Support Object A Object B 3 1 4 2 Event Broker 4 2 Language runtime Object C …
Distributed System Level Component A Component B 3 1 4 2 Network 4 2 Event Broker (your component or someone else’s) Component C …
The Internet Part 2
myipaddress.com myIPaddress.com Your computer’s IP address is: 75.32.137.8
Hierarchical Identification Home network Home network 128.195.54.203 192.x.x.x 192.x.x.x UCI 69.232.36.159 75.32.137.8 128.195.54.203 ISP ISP
Hierarchical Security Home network Home network UCI ISP ISP
OpenSim Virtual World deployment Resource Services region registration Home network Home network Simulator Simulator teleport ! 128.195.54.203 192.x.x.x 192.x.x.x UCI 69.232.36.159 75.32.137.8 ucigrid03.nacs.uci.edu ISP ISP