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

Flexible Dask architecture #54

Open
benbovy opened this issue Sep 17, 2020 · 0 comments
Open

Flexible Dask architecture #54

benbovy opened this issue Sep 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@benbovy
Copy link
Contributor

benbovy commented Sep 17, 2020

Related to this blog post and this thread.

A good way to support those architectures in xpublish would be to have a get_dask_client FastAPI dependency. Like the other resources (dataset, cache, etc.), this dependency would be overridden when initializing the FastAPI application instance in Rest with a dependency function implementing one of the architectures mentioned in the blog post. This would also be extensible to any user-defined architecture.

Perhaps the dask client and cache resources can be independent or tightly coupled to each other, depending on the architecture? I guess accessing those resources as nested dependencies would probably help supporting both cases.

Any thoughts @andersy005 @jhamman?

@benbovy benbovy added the enhancement New feature or request label Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant