Skip to main content
Back to Questions

Passing a database connection pool to Middleware

Asked 3/10/2026Viewed 450 timesStatus: OPEN
Display Only / Sanitized

I have a Redis connection pool in `app_data`. I want to access it inside a custom Middleware to perform rate limiting. How can I extract `web::Data` inside `Transform`/`Service`?

middlewaredatabasestate
Asked byMidTierDev

0 Answers

No answers yet. Be the first to help!

Your Answer

Account Required

You must be logged in to post a answer.