Issue
Recently, I’ve become addicted to web programming with Flask, and I made a shopping site from scratch as part of an engineering department project, but I’m at a loss about product rankings and such
I came up with the idea of a dating site as an exercise, but the server would have to perform its own calculations to rank different couples in terms of compatibility. This is the really interesting part of this project.
I doubt that these ranking calculations are processed only on request, they can be time consuming, but you may be grossly underestimating the speed of SQL processing. I think data processing and calculations should be done continuously on the server. If this is really continuous server data processing, how can I do that?
I hope the question makes sense, but I don’t live in an English-speaking country, so my English tends to be a bit dangerous.
Regards
Solution
If you need background tasks without client requests, you can go for Celery (https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html). You can assign works to this server and it will run in background without intervening Django server.
Answered By – Anoop K George
Answer Checked By – Katrina (Easybugfix Volunteer)