Coder Social home page Coder Social logo

Comments (8)

markphelps avatar markphelps commented on July 23, 2024

@thepabloaguilar great catch! will add this

from flipt.

erka avatar erka commented on July 23, 2024

Hey @thepabloaguilar. Do you plan to used it with OCI storage?

from flipt.

thepabloaguilar avatar thepabloaguilar commented on July 23, 2024

Yes, I do @erka

from flipt.

erka avatar erka commented on July 23, 2024

@thepabloaguilar https://community.flipt.io/t/cache-and-reference-with-git-backend/14/2

from flipt.

thepabloaguilar avatar thepabloaguilar commented on July 23, 2024

I don't think I've understood completely @erka, the cache for OCI storage I get it (it's already in memory) but I thought the cache also will be used to cache flags evaluation results! Is my last statement wrong?

from flipt.

erka avatar erka commented on July 23, 2024

@thepabloaguilar I think it's only used on storage level.

flipt/internal/cmd/grpc.go

Lines 193 to 201 in bc3f7be

cacher, cacheShutdown, err = getCache(ctx, cfg)
if err != nil {
return nil, err
}
server.onShutdown(cacheShutdown)
store = storagecache.NewStore(store, cacher, logger)

from flipt.

markphelps avatar markphelps commented on July 23, 2024

yeah it caches the data used in the evaluation, but not the evaluation results themselves, as this would likely make the cache grow very large depending on usage patterns.

We could benchmark the results of evaluating using OCI storage with and without cache, but as George said in the linked community discourse, adding cache in front is unlikely to speed it up very much and may make it slower actually because the extra hop for Redis

from flipt.

thepabloaguilar avatar thepabloaguilar commented on July 23, 2024

Got it @erka and @markphelps, maybe an update to the doc are required to maybe make it more clear to the readers like me 🥲

When I read the Storage - Caching session I thought it'll also cache the evaluations because of this items:

  • All flag reads and evaluation requests go through the cache
  • Evaluation cache entries are purged after the TTL expires only

from flipt.

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.