Back to Blog
Architecture

Request Lifecycle for a Mezzio-Based Application

Seamlessly Interconnected Middleware for Enterprise-Level Solutions

The request lifecycle is the sequence of steps that happen from the moment a user makes an HTTP request until the server sends back a response.

The graph below shows how the request is handled by Dotkernel Light (GitHub, documentation), one of the applications in the Dotkernel Headless Platform suite.

Hover over items for description

Entry Point

1. HTTP Request
2. Service Container
3. Route Registration
4. Middleware Pipeline

5. Routing

6. Handler
Invocation

7. Custom Logic
Execution in Handler

8. Template
Rendering

9. Response
Creation

10. Response
Pipeline

11. Response Emitter

HTTP 20x, 30x
HTTP 40x
HTTP 50x