Well, in short: I have strapi server started, and, for example, 3 routes:
{
“method”: “GET”,
“path”: “/stuff/someActionZero”,
“handler”: “stuffController.actionZero”,
“config”: {
“policies”: []
}
},
{
“method”: “GET”,
“path”: “/stuff/someActionOne”,
“handler”: “stuffController.actionOne”,
“config”: {
“policies”: []
}
},
{
“method”: “GET”,
“path”: “/stuff/someActionTwo”,
“handler”: “stuffController.actionTwo”,
“config”: {
“policies”: []
}
}
let’s say that actionTwo() method execution takes a time - about 15 seconds. This method makes some diagnostic calculations and cannot be simplified. It runs not very often and usually to get some reports. But during it execution other requests are blocked, and clients can’t get responses from other actions actionZero() and actionOne() till actionTwo() finish.
Could you tell me please is there a way to resolve such situation and not block other actions?
System Information
- Strapi Version: 3.6.8
- Operating System: Windows
- Database: MongoDB
- Node Version: 16.15.1
- NPM Version: 8.11.0
- Yarn Version: