Software design and architecture lecture 13 Review


Download 93.83 Kb.
bet1/4
Sana08.06.2023
Hajmi93.83 Kb.
#1463316
  1   2   3   4

SOFTWARE DESIGN AND ARCHITECTURE

LECTURE 13

Review

Outline

  • Implicit Asynchronous Communication Software Architecture

Implicit Asynchronous Communication Software Architecture

Implicit Asynchronous Communication Software Architecture

  • The main purpose of this type of communication architecture is to provide a decoupling between the event/message, the publishers/producers, and the subscribers/customers.
  • These are very popular architectures in distributed applications.

Implicit Invocation Style

  • Instead of invoking a procedure directly
    • A component can announce (or broadcast) one or more events.
    • Other components in the system can register an interest in an event by associating a procedure with the event.
    • When an event is announced, the broadcasting system (connector) itself invokes all of the procedures that have been registered for the event.

Event-based, Implicit Invocation Style

  • Suitable for applications that involve loosely-coupled collection of components, each of which carries out some operation and may in the process enable other operations.
  • Particularly useful for applications that must be reconfigured “on the fly”:
    • Changing a service provider.
    • Enabling or disabling capabilities.
  • Components
    • Modules whose interfaces provide a collection of procedures/methods and a set of events that it may announce
  • Connectors
    • Bindings between event announcements and procedure/method calls

Based on Observer pattern

  • Basically, components communicate using a generalized Observer Design Pattern style of communication.

Implicit Invocation Invariants

  • Announcers of events do not know which components will be affected by those events.
  • Components cannot make assumptions about the order of processing.
  • Components cannot make assumptions about what processing will occur as a result of their events.

Download 93.83 Kb.

Do'stlaringiz bilan baham:
  1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling