Coder Social home page Coder Social logo

Badger or Nuts? about cache-handler HOT 3 CLOSED

caddyserver avatar caddyserver commented on May 20, 2024
Badger or Nuts?

from cache-handler.

Comments (3)

darkweak avatar darkweak commented on May 20, 2024 1

Hey @DzigaV, you can follow the README on the branch https://github.com/caddyserver/cache-handler/tree/feat/dependencies/bump-to-souin-v1.6.14#example-configurations.
To enable it you have to set the etcd directive with the configuration and use the etcd configuration naming https://pkg.go.dev/go.etcd.io/etcd/clientv3#Config e.g. :

cache {
    etcd {
        configuration {
            Endpoints 192.168.1.123 192.168.1.124
            AutoSyncInterval 10s
        }
    }
}

from cache-handler.

darkweak avatar darkweak commented on May 20, 2024 1

@DzigaV I updated the example documentation that should be used on the cache-handler repository in this PR https://github.com/darkweak/souin/tree/feat/core/configurable-timeout-on-backend-and-cache-access/plugins/caddy.
Let me know if some parts are not well explained.

@mholt I recommend to use Olric and Badger first but in some edge cases Olric has desyncs in a K8s cluster (@eth-limo got this issue). So, in a K8s environment I recommend etcd if you need some distributed storage (but it takes more resources than Olric). And sometimes Badger run into a cache pollution and serves mismatched contents when your RAM limit is too low (when you try to store some huge responses in the Badger cache it gets corrupted, this was discover by @mattvb91). I recommend to use nutsdb on this case.
But for 90% use cases Badger and Olric are good to use and lighter than the alternatives.

from cache-handler.

mholt avatar mholt commented on May 20, 2024

Which do you recommend @darkweak ?

from cache-handler.

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.