How to manage requests queued to the Flask server?

I am working on a simple flash server that will provide a compilation service for a small group of people.

You can connect to the server using the URL, enter its function code in </textarea>, and then click the " submit" button , which is going to compile the code in the background, and then display it on another </textarea>on the same page. Each such compilation request can take several minutes, so I thought that I would need a queue to store the requests of these users in case some users make requests at the same time. What is the best way to do this? Do I have to create Lib/Queueand manage everything manually, queues after callback and so on?

I assume that there is some search methodology for the sequence of requests made to a server that simply does not know. I don’t think I need to reinvent the wheel here.

+4
source share

Source: https://habr.com/ru/post/1682705/


All Articles