Coder Social home page Coder Social logo

Redis for caching about t-rex HOT 5 OPEN

t-rex-tileserver avatar t-rex-tileserver commented on May 29, 2024
Redis for caching

from t-rex.

Comments (5)

jorgejesus avatar jorgejesus commented on May 29, 2024 1

@pka:

  • Any updated on sqlite3/mbtiles implementation ?

from t-rex.

pka avatar pka commented on May 29, 2024

Interesting request. I never heard of someone using Redis for tile caching. Do you see a specific advantage?
I'm open to all kind of backends. My current priority list is:

  • Other file cache layouts (like Mapstash #14)
  • S3
  • SQLite/MBTiles
  • others

from t-rex.

musicformellons avatar musicformellons commented on May 29, 2024

Well, I noticed they use redis within tilezen/tileserver and tilezen/tilequeue:
https://github.com/tilezen

And also at: https://github.com/faradayio/tilesplash

I presume this improves performance, but I am not even close to an expert in these matters.

BTW: t-rex is pretty cool!

from t-rex.

shanligang avatar shanligang commented on May 29, 2024

@pka how about geowebcache?

from t-rex.

pnorman avatar pnorman commented on May 29, 2024

mod_tile supports redis, but afaik it's untested in production. Kartotherian uses Cassandra for tile caching, but we've looked at the idea of moving this to Postgres to reduce the number of services we have to maintain.

I think Cassandra has the advantage that you can pick an API that's common to it and S3.

My suggestion for a priority list would be

  • 6-component file cache layout (#14, as far as I can tell). This is a fairly standard format, although there are the zz/xxx/xxx/xxx/yyy/yyy/yyy and [Z]/[xxxxyyyy]/[xxxxyyyy]/[xxxxyyyy]/[xxxxyyyy]/[xxxxyyyy] variants.
  • Cassandra. Being open-source puts this above S3 for me
  • S3
  • others

I don't consider mbtiles a great option. It's designed to transfer tiles around, not act as a cache, and tends to have problems under heavy concurrent loads.

from t-rex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.