Skip to content

API for cpu bound task #1866

Answered by alex-oleshkevich
ileixe asked this question in Ideas
Sep 23, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I think the background task processors like RQ or Celery are better suited for this.
Having it as a part of Starlette can lead to high resource usage because in concurrent environment you can spawn a lot of subprocesses and we would need some mechanism to control process concurrency which is out of scope of web framework.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adriangb
Comment options

@ileixe
Comment options

Answer selected by adriangb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants