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

Make tilecloud chain async #2687

Merged
merged 8 commits into from
Jan 17, 2025
Merged

Make tilecloud chain async #2687

merged 8 commits into from
Jan 17, 2025

Conversation

sbrunner
Copy link
Member

@sbrunner sbrunner commented Dec 25, 2024

GSGMF-2112

Currently, we use process and thread who has relay erratic and difficult to understand comportment, And with the Python global lock, I think that's not performant.

This pull reqest will:

  • Remove all the thread and process
  • Use async to have concurrent task
  • Limit the parallel request on a host

Note that some code have been copied from TileCloud to make it async

Used:

Todo to make the HTTP server async:

  • Migrate to FastAPI on uvicorn

Will be used

Open question:

  • What we need from c2cwsgiutils that's not present in prometheus-fastapi-instrumentator?

@sbrunner sbrunner force-pushed the async branch 22 times, most recently from 83e0485 to e168dc2 Compare December 30, 2024 15:28
@sbrunner sbrunner marked this pull request as ready for review December 31, 2024 08:14
@sbrunner sbrunner requested a review from danduk82 December 31, 2024 08:14
@sbrunner sbrunner force-pushed the async branch 2 times, most recently from 400053d to ea7af81 Compare January 6, 2025 09:38
tilecloud_chain/__init__.py Outdated Show resolved Hide resolved
From the artifact of the previous workflow run
From the artifact of the previous workflow run
@sbrunner sbrunner merged commit 3fb9680 into master Jan 17, 2025
8 of 9 checks passed
@sbrunner sbrunner deleted the async branch January 17, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants