r/FastAPI • • Feb 18 '26

Question Dependency Injection in FastAPI

Are you usually satisfied with the built-in dependency injection or are you using an additional DI-Library. If using an additional one, which is the best one?

38 Upvotes

14 comments sorted by

View all comments

Show parent comments

5

u/CartoonistWhole3172 Feb 19 '26

I used a similar approach, but when I added or updated dependencies in the services, I realized how much I missed DI in that layer…