HTTP middlewares are spreading everywhere since PSR-7, yet they are often seen as an implementation detail for very specific problems.

After having discovered them with PSR-7, after having written a middleware-based framework and after collaborating on PSR-15, my understanding is now different: middlewares help us better understand and design the architecture of our applications.

Let's start again from scratch and work our way up to an architecture entirely built on middlewares: what does it look like and how does it compare to the frameworks we all love?

Comments

Comments are closed.

I have used middlewares already with Slim (although I was not aware about it). I liked this solution.

Well prepared talk with great explanation of middlewares and encouraging usage examples. I hope author can one day also draw drawbacks of this approach.