# Event System Architecture This page documents the event-driven architecture and TypedEventBus that powers real-time communication throughout Uptime Watcher. ## Event System Overview The following diagram shows the event system architecture:## Event Type Hierarchy Renderer event contracts are defined in `RendererEventPayloadMap` (see `shared/types/events.ts`). This diagram mirrors the current channels and payload groupings.## Event Flow Sequence This sequence diagram shows a complete event flow from emission to UI update:## Event Middleware Pipeline This diagram shows the event middleware processing pipeline:## Event Subscription Patterns This diagram shows different event subscription patterns:## Event Broadcasting to Multiple Windows This diagram shows how events are broadcast to all renderer windows:## Event Performance Optimization This diagram shows event system performance optimizations:## Event Error Handling This diagram shows how event errors are handled:--- The event system provides a robust, typed, and performant event-driven architecture that enables loose coupling and real-time updates across all application components.
Last updated on by Nick2bad4u