Django stops running when i send an request to api

In the rest api I have a view that sends an otp sms to the user's phone . when I send a request to my api , It just sends another request to other server and waits for the response But It takes a while and django just stops working . I am worry about it . what if upload it to server and django can't handle multi requests and crashes in the real server with different request from multiple users? How can I fix this problem ? Also mu CPU has only 2 cores and I don't think using multi threading is an good idea!

Вернуться на верх