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

Switch WMS router to use async #98

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Switch WMS router to use async #98

wants to merge 3 commits into from

Conversation

mpiannucci
Copy link
Collaborator

@mpiannucci mpiannucci commented Nov 7, 2024

The approach for this is to delay dask chunk downloading for GetMap requests to a single dask compute call that we call in asyncio to_thread(). The rest of the methods simply use to_thread() for now but there is a path to support a more featureful implementation.

This also introduces clipping for GetMap requests to decrease the cpu/memory pressure on the rendering process, as well as decreasing the amount of chunks that need to be downloaded.

@mpiannucci
Copy link
Collaborator Author

Notes

  • Dont have two thread pools (dask and asyncio), or change their sizes.

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.

1 participant