'How Django handling long request in another request?
Issue about django handling a long request(50sec) in another request(3sec).
I have a POST request will return some infomation for user, in this request will call another api in the same app and it will query database and generate pdf report then upload to s3, it will cost about 50sec.
How can I let first request return infomation to user and generate pdf api run in background?
I have done some research, found Celery may be can handle this task, is this recommend? or anyone have advice?
Thanks in advance!!!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
