Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-threads or multi-processes #40

Open
BECATRUE opened this issue Dec 2, 2024 · 0 comments
Open

Support multi-threads or multi-processes #40

BECATRUE opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@BECATRUE
Copy link
Member

BECATRUE commented Dec 2, 2024

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 a threading.

@BECATRUE BECATRUE added the bug Something isn't working label Dec 2, 2024
@BECATRUE BECATRUE added this to the v1.0.0 milestone Dec 3, 2024
@BECATRUE BECATRUE self-assigned this Dec 3, 2024
@BECATRUE BECATRUE modified the milestone: v1.0.0 Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant