Coder Social home page Coder Social logo

Comments (4)

hypeJunction avatar hypeJunction commented on May 25, 2024 1

I did see it, and it does look great. My plugin integrates with a larger framework that already has a memcached wrapper, so it was easy to write my own adapter.

from flintstone.

fire015 avatar fire015 commented on May 25, 2024

Great question! Reading from memory is always going to be faster than reading from disk. I haven't benchmarked it to that scale but I would say choosing something like memcached/redis is a better option if you are having hundreds of reads per page. However it is a trade off - using something like memcached comes with more maintenance from a devops point of view. It's also not a permanent memory store so you would need a fallback like a database if the data does not exist. Totally depends on your use case and how willing you are to optimise your site for speed. I hope that helps :)

from flintstone.

hypeJunction avatar hypeJunction commented on May 25, 2024

I do have a database table, which contains additional information about each route. I needed a fast way to rewrite all inline URLs on the page without having to query the database to get the target path.
I have integrated memcached today and left flintstone in as a fallback for servers that are not memcached. There was a considerable improvement in speed.

from flintstone.

fire015 avatar fire015 commented on May 25, 2024

Great. There is a nice package written by @adammbalogh which allows you switch out flintstone for memcached/redis without any code changes, would recommend you take a look: https://github.com/adammbalogh/key-value-store

from flintstone.

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.