I am new in django and Python. So I am using angular 7 in front-end and django for API's. So I want to achieve parallel processing.
Scenario: I have some script name's that I will send to python for execution and python should execute those scripts(script may take different time to execute like some script will take 10 sec and some will take 20 sec). I want all the script should execute simultaneously and once anyone of those will finish it should send response back to angular. So that I don't need to wait for all the script to execute. As I know we can achieve this using sockets. but I want to know the best way of doing this. Note: I don't need any code here, just want some guideline how to achieve this.
Thanks