June 29, 2024, 6:18 a.m. | Ayush

DEV Community dev.to

Recently I delved deep into FastAPI docs and some other resources to understand how each route is processed and what can be done to optimise FastAPI for scale. This is about the learnings I gathered.





A little refresher


Before we go into optimising FastAPI, I'd like to give a short tour on a few technical concepts.





Threads & Processes


Threads share memory space and are easier to create.

Processes have separate memory space and thus require some overhead to create. …

concurrency fastapi learnings python resources route scale technical

Sr. Data Analyst (Revenue Assurance)

@ Rogers Communications | Toronto, ON, CA

Senior Data Scientist

@ Similarweb | Tel Aviv

Technical Growth / Engineering Manager. 1-2 years experience

@ Growth Kitchen | London, England, United Kingdom

Consumer Marketing Retention Officer/ Sr. Officer

@ Umniah | Amman, Amman Governorate, Jordan

SFE and BI Business Partner

@ Merck Group | Bonifacio Global City, Metro Manila, PH, 1630

Software Engineer - Machine Learning Pipelines

@ RWE | Bellevue, WA, US, WA 98004