full-stack-fastapi-template
full-stack-fastapi-template copied to clipboard
♻️ Send account creation email asynchronously via BackgroundTasks
Making it a background task improves responsiveness and user experience. For future If you need to perform heavy background computation and you don't necessarily need it to be run by the same process (for example, you don't need to share memory, variables, etc), you might benefit from using other bigger tools like Celery According to the FastAPI docs : https://fastapi.tiangolo.com/tutorial/background-tasks/?h=#technical-details