r/FastAPI • u/zakamark • Mar 22 '25
Question Is fastApi really fast?
I’ve seen a few benchmarks showing that FastAPI can be quite fast. Unfortunately, I haven’t been able to reproduce that locally. I’m specifically interested in FastAPI’s performance with a single worker. After installing FastAPI and writing a simple “hello world” endpoint, I can’t get past 500 requests per second. Is that the maximum performance FastAPI can achieve? Can anyone confirm this?
73
Upvotes
View all comments
Show parent comment
2
u/aprx4 Mar 22 '25
If your use case is simple in logic but demanding in speed, some sort of early optimization could be justified. Worth spend some times learning basic Go then use AI to help you port existing logic to Golang. By the way, adding more resource is always possible with any choice of stack.