Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/middleware-refactor #202

Merged
merged 5 commits into from
Jun 6, 2024
Merged

feature/middleware-refactor #202

merged 5 commits into from
Jun 6, 2024

Conversation

ndortega
Copy link
Member

@ndortega ndortega commented Jun 6, 2024

  1. Simplified the middleware chain logic
  2. Added caching to the middleware

Main takeaway is that middleware chains are now only calculated once on the first call, and are reused for subsequent requests. Previously, this would get dynamically created for each request on each route which could slow down applications with lots of middleware functions. In practice, this hasn't been an issue, but this update provided an opportunity to simplify the logic and improve performance in one go.

@ndortega ndortega merged commit f09e6da into master Jun 6, 2024
7 checks passed
@ndortega ndortega deleted the feature/middleware-refactor branch June 19, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant