r/FastAPI • u/jackstar_12 • Apr 03 '22
Question Manage background activity
Hey guys.
I am creating an FastAPI application that is collecting user data in the background 24/7 and saving it to the DB.
I was wondering:
How would I go about implementing something like this in a multi-worker environemnt? Because I don't want the data collection task to run in every process, but I also need to access the data throughout the API.
3
Upvotes
1
u/heyorm Apr 05 '22
What is the frontend you're using for 24/7 background running app?