FastAPI மிக வேகமான Python frameworks-இல் ஒன்றாகும், ஏனெனில் இது Starlette-இல் (ஒரு lightweight ASGI framework) கட்டப்பட்டுள்ளது மற்றும் async-native-ஆகும், பல concurrent I/O-bound requests-ஐ திறமையாகக் கையாளுகிறது. ஆனால் அதை வேகமாக வைத்திருப்பது async-ஐ சரியாகப் பயன்படுத்துவது தேவைப்படுகிறது — மிகவும் பொதுவான தவறு event loop-ஐ block செய்வது.
இது ஏன் வேகமானது
✓ ASGI + Starlette — a modern async foundation (vs older WSGI sync frameworks)
✓ Async-native — one process handles thousands of concurrent I/O-bound requests
by overlapping wait times, instead of one-at-a-time
✓ Pydantic v2 — validation/serialization core is now in Rust (very fast)
✓ Minimal overhead per request
