Skip to content

Switch WMS router to use async#98

Open
mpiannucci wants to merge 3 commits into
mainfrom
async-exploration
Open

Switch WMS router to use async#98
mpiannucci wants to merge 3 commits into
mainfrom
async-exploration

Conversation

@mpiannucci
Copy link
Copy Markdown
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
Copy Markdown
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