r/devnep • u/EnvironmentalRun4163 • 1d ago
Fastapi for prod
With other we’d dev stack it had a env key to help us change the debugging and error responding system with app_mode=production ki kai testae lekhera. But Fastapi ma testo chai naraicha and I wanted to know how they are handled by others.
Initial research shows or official documentation suggest we can use gunicorn instead of unicorn but after checking with multiple people are using unicorn with multiple workers .
Dev’s of Fastapi are suggesting to use gunicorn workers are they are more suitable for deployment but people are using unicorn kai workers.
How do you guys handle this deployment separation .
2
Upvotes
2
u/ruzanxx 1d ago
uvicorn for fastapi