# FastAPI 0.163's new dependency concurrency limit deadlocked two of my routes

Source: [DEV Community: python](https://dev.to/alexgeorgiev17/fastapi-0163s-new-dependency-concurrency-limit-deadlocked-two-of-my-routes-33k6) · 2026-11-18 · Languages
Page: https://themorning.dev/story/fastapi-0-163-s-new-dependency-concurrency-limit-deadlocked-two-of-my-routes-a397415d124cd124
Kind: other · Impact: medium

## In brief

- A developer reports that two FastAPI 0.163 routes deadlocked when each used a dependency capped to one concurrent user with the new max_concurrency option.
- One route acquired shared resource A then B, while the other acquired B then A.
- Firing one request at each route at the same time caused the deadlock, according to the post.

## Why it matters

Dependencies limited with max_concurrency can hang routes when they acquire multiple shared resources in conflicting orders, so apps using this option should test concurrent requests.

## Versions

- FastAPI 0.163

## Timeline

- 2026-11-18: Deadlock reported in DEV Community post

## Coverage

- [FastAPI 0.163's new dependency concurrency limit deadlocked two of my routes](https://dev.to/alexgeorgiev17/fastapi-0163s-new-dependency-concurrency-limit-deadlocked-two-of-my-routes-33k6) — DEV Community: python, 2026-11-18

Tags: fastapi, python, concurrency, deadlock, dependencies

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
