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

Prevent djmp from spawning a mapproxy instance on every request #10

Open
mvanveen opened this issue Jul 22, 2016 · 1 comment
Open

Prevent djmp from spawning a mapproxy instance on every request #10

mvanveen opened this issue Jul 22, 2016 · 1 comment

Comments

@mvanveen
Copy link
Contributor

@simod comments:

right now djmp is spawning mapproxy instance on any call to /pk/map/x. This means that for every ogc requests, any single tile, we spawn a new mapproxy that will die immediately.
Would it make sense and be possible to keep it alive for some time and share it among requests?

here is the offending line of code.

@simod suggests:

we could store the configured mp to at least avoid the configuration all the times

@mvanveen
Copy link
Contributor Author

udpate: @ingenieroariel has explained to me that there's a lot of perf considerations and trade-offs with both approaches depending on whether we're doing simple proxying or users are doing a lot of heavy rendering with no caching. So, there's definitely some nuance around this proposed modification and if it makes sense for all use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant