What downsides are there to creating many middleware? #5219
Unanswered
schester44
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to do request body validation and parsing, similar to inputValidator, except for server routes.
My plan is to use a factory to generate a middleware per server route.
Something along the lines of this:
What sort of performance implications will this have? Assuming there are 100+ of these middleware?
And is there a better way to handle this ?
Beta Was this translation helpful? Give feedback.
All reactions