Event Handler Pattern
Jump to navigation
Jump to search
A Event Handler Pattern is a software design pattern that implements the low-level event processing mechanisms within event-driven architectures through defined event handlers.
- Context:
- It can (typically) manage event detection through event loops.
- It can (typically) process events using event handlers.
- It can (typically) maintain event state for process tracking.
- It can (typically) support event propagation through handler chains.
- It can (often) implement event filtering for event selection.
- It can (often) provide event queuing for load management.
- It can (often) handle concurrent events through parallel processing.
- ...
- It can range from being a Simple Event Handler to being a Complex Event Processor, depending on its processing requirements.
- It can range from being a Synchronous Handler to being an Asynchronous Handler, depending on its execution model.
- ...
- It can be implemented using Event Frameworks, such as:
- ...
- Examples:
- Event Handling Architectures, such as:
- Observer Patterns, such as:
- Reactor Patterns, such as:
- Publisher-Subscriber Patterns, such as:
- Event Handler Types, such as:
- System Event Handlers, such as:
- Application Event Handlers, such as:
- ...
- Event Handling Architectures, such as:
- Counter-Examples:
- Polling Pattern, which actively checks for state changes.
- Request-Response Pattern, which follows synchronous flows.
- Pipeline Pattern, which processes sequential operations.
- Batch Processing Pattern, which handles grouped operations.
- See: Software Pattern, Event-Driven Architecture, Message Pattern, Asynchronous Programming.