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

Add a caching layer? #1

Open
iandees opened this issue Sep 16, 2015 · 3 comments
Open

Add a caching layer? #1

iandees opened this issue Sep 16, 2015 · 3 comments

Comments

@iandees
Copy link
Contributor

iandees commented Sep 16, 2015

What do you think about adding a very simple caching layer to this service so that the ESRI server doesn't have to deal with repeated requests for the same image?

My use-case here is that I want to run this on OpenStreetMap US's server and let people add their own layers, cache them, and share the imagery with the whole community.

@JasonSanford
Copy link
Owner

Yeah, this seems valuable. This app could bring a slower ArcGIS Server instance to its knees with multiple users hitting it.

I'm not sure what type of caching implementation would make the most sense. Something like leveldown might be fairly easy to implement. Redis would probably work well too, but I don't think the free tier offered by RedisToGo would go very far (5MB). Memcachier would probably work too, and provides 25MB on a free tier.

If some cache was implemented, it would be awesome to make it optional because as it stands now this app needs little more than node + express to run, which is great for folks who want to stand up one-off instances for small projects.

@iandees
Copy link
Contributor Author

iandees commented Sep 16, 2015

Yep, optional makes sense.

I was thinking about using Postgres. On Heroku they offer 10K rows for free and don't mention a size limit. Although swapping out postgres for memcache/redis would be pretty easy.

I'll give it a try soon and put together a pull request for comment.

@tmcgee
Copy link

tmcgee commented Sep 16, 2015

I would be interested in this as well. What about something like express-tile-cache npm module? It has built-in support for caching tiles to the filesystem, redis and s3.

https://github.com/CGastrell/express-tile-cache

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

No branches or pull requests

3 participants