You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mistakenly thought Django always operates on a single-thread😅
It might work on multi-threads or multi-processes, hence we should handle it.
Correction methods
As I found, in default it works on a single-thread and single-process.
Nevertheless, it looks necessary to operate the APIs safely, hence I will force several APIs need a common lock.
If we run the server on multi-processes, we need a special lock supporting multi-processes like redis, however, now it looks enough to use just a threading.
The text was updated successfully, but these errors were encountered:
Describe the bug
I mistakenly thought Django always operates on a single-thread😅
It might work on multi-threads or multi-processes, hence we should handle it.
Correction methods
As I found, in default it works on a single-thread and single-process.
Nevertheless, it looks necessary to operate the APIs safely, hence I will force several APIs need a common lock.
If we run the server on multi-processes, we need a special lock supporting multi-processes like
redis
, however, now it looks enough to use just athreading
.The text was updated successfully, but these errors were encountered: