Handlerdriven
Handlerdriven is a software design approach in which the control flow and behavior of a system are primarily determined by discrete handlers. A handler is a small unit of code that responds to a specific event, message, or request. A central dispatcher or router selects and invokes the appropriate handler at runtime, often using a registry or map of event identifiers to handlers.
Core characteristics include decoupling between event sources and processing logic, modularity through isolated handlers, and extensibility
Typical architectures and contexts for handlerdriven systems include graphical user interfaces, web frameworks where each endpoint
Potential trade-offs involve managing complexity in the dispatcher’s routing logic, ensuring consistent state across multiple handlers,
See also: event-driven programming, callback, handler pattern, middleware, dispatcher, plugin architecture.