DISTRIBUTED SYSTEM
CHAPTER 10 : CASE STUDY
LAB WORK SOLUTION- DISTRIBUTED SYSTEM
DISTRIBUTED SYSTEM -BCA -ALL SLIDES
MCQ- DISTRIBUTED SYSTEM

Events and notifications are crucial components in distributed systems, enabling communication and coordination among different parts of the system. 

Events in Distributed Systems

An event is any significant occurrence or change in the state of a system or its environment. Events can be generated by hardware, software, users, or even external systems.

Types of Events:

  1. Hardware Events: Changes in hardware states like a printer getting connected or disconnected.
  2. Software Events: Changes within software applications, like a user logging in or a file being modified.
  3. User Events: Actions taken by users, such as clicking a button or submitting a form.
  4. System Events: Changes in the state of the system itself, such as a node failure or recovery in a cluster.

Notification in Distributed System

Notifications are messages sent to inform a system or user about an event that has occurred. They ensure that the relevant components are aware of changes and can respond accordingly.

Notification Mechanisms:

  1. Push Notifications: The system actively sends notifications to subscribers when an event occurs.
  2. Pull Notifications: Subscribers periodically check the system for new events.
  3. Publish/Subscribe Model: Components can publish events, and other components can subscribe to receive notifications about these events.