I am trying to make an application with fastapi and each request takes about 5 seconds to process. When I have many users using my service, it creates a backlog of unprocessed requests. I want to get the size of this backlog and show users how many requests are there to process. Is there any way to get the size of such backlog?
Asked
Active
Viewed 94 times
0
-
in fact, my problem is a little different. I need to serve in serial fashion and need to show users how many tasks is in the pipeline before their task is completed – Tomas Batrla Oct 07 '22 at 08:41