--

I think you just focused on a use case you had and the middleware was really more clean

If you are not over http solution
If you do a framework

Decorator is a solution to a problem
What about adapter pattern if you are doing a lot of decorating

There are a mess of patterns since 30 years and they are all great but we can find newer clean solutions

--

--

Omid Eidivandi
Omid Eidivandi

Written by Omid Eidivandi

i'm a technial lead , solution/softwatre architect with more than 20 years of experience in IT industry,, i m a fan of cloud and serverless in practice

No responses yet