Code Monkey home page Code Monkey logo

Comments (2)

edgurgel avatar edgurgel commented on September 22, 2024

I would love to have swappable storage engines BUT it comes with a reasonably high price.

The problem with swappable k/v stores is that they would have completely different guarantees. We would need to ensure that the same guarantees are present. These are the main reasons why we picked Redis as datastore:

  • Extremely fast as it uses in-memory data structures;
  • Atomic changes to the data structures so that we ALWAYS execute a job at least once;
  • Lua scripting is possible allowing the combination of different data structure manipulations that are still viewed as atomic.
  • Supported by a fair amount of cloud providers. You just connect to a database that AWS, Google Cloud or Azure maintains.

Also there are a few features that would be really hard to implement using queueing systems (like RabbitMQ):

  • How to schedule jobs in the future when the only structure you have is a queue?
  • How to not retry jobs instantly? How to retry jobs in the future with exponential backoff?

Mnesia is a bit more complicated to maintain the state for example. Now your application will have "state" to move with. So if you were planning to use Docker containers to run on a stateless environment then you need to rethink this and ensure that the state follows your containers etc.

I hope this helps explain why we picked Redis as our datastore.

from verk.

davidkovsky avatar davidkovsky commented on September 22, 2024

Thanks. I appreciate the explanation.

from verk.

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.