perhandler
Perhandler is a term used in software architecture to describe a lifecycle policy in which a new instance of a request handler is created for each incoming request and disposed when the request completes. The concept emphasizes isolation of per-request state from other requests and from long-lived application state. The term appears in web frameworks, services architectures, and dependency injection systems that distinguish handler-scoped lifetimes from singleton or application-wide lifetimes. In practice, a per-handler model means that each request is processed by its own handler object, which may hold temporary data, resources, or context relevant only to that request.
Benefits of the per-handler approach include improved thread safety by avoiding shared mutable state across requests,
Implementation is typically achieved via dependency injection containers or frameworks that instantiate a fresh handler per
Per-handler lifetimes are closely related to per-request or handler-scoped lifetimes and are often used interchangeably in