I am new to flask and recently created a flask application where user uploads a xlsx file and gets back another xlsx file after processing.
I have hosted this flask application using AWS EB free tier. Everything works fine if the processing time is less than 30 secs. But i have cases where the processing time is large and unknown(15-20 minutes). When the computation is large i get this 504 error.
I would like to know what would be an ideal solution to handle these kinds of requests. I have seen people giving suggestions on ngnix and gunicorn configurations but i don't have any idea about them.
It would be great if anyone can take time and give an idea of what can be done.