r/FastAPI • • Sep 27 '24

feedback request Is FastAPI really fast ?

Is FastAPI really fast as claimed on the website? “ on par with Node Js and GO “

What do you think ? Is it misleading or not ?

0 Upvotes

77 comments sorted by

View all comments

Show parent comment

1

u/mathmul Jun 26 '25

You would want to make not only a simple CRUD API, but something more intricate so you take advantage of coroutines that FastAPI provides out of the box. If you're trying to measure how fast you can get an item from your PostgreSQL database, no amount of nesting async/await can help making Python faster than Go. The point is FastAPI is faster than Django or Flask for

  1. prototyping,
  2. typing out a full-fledged API, and
  3. for reducing response times at big scale when several backend operations depend on 3rd party API integrations, and you want to free up your resources to handle other requests while waiting for the current request to fully resolve
    and it achieve that by leveraging the same techniques that NodeJS and Go already use.

If you want a faster Python, use Mojo (Modular).