Code Monkey home page Code Monkey logo

Comments (8)

IrfanBaqui avatar IrfanBaqui commented on May 9, 2024

How can we link the consumer-management repo to waffle? Here is the PR:
https://github.com/LunchBadger/consumer-management/pull/1

Will add more endpoints..

from express-gateway.

jimhw avatar jimhw commented on May 9, 2024

add the following to the end of PR title:
connect to #49

from express-gateway.

IrfanBaqui avatar IrfanBaqui commented on May 9, 2024

It didn't work... are waffle boards confined to each repo?

from express-gateway.

jimhw avatar jimhw commented on May 9, 2024

you should type "connect to" on the title, instead of "close"

from express-gateway.

jimhw avatar jimhw commented on May 9, 2024

please provide readme with spec, usage and test.

from express-gateway.

jimhw avatar jimhw commented on May 9, 2024

need code review after the restructuring
need to create test for data persistent

from express-gateway.

IrfanBaqui avatar IrfanBaqui commented on May 9, 2024

Here's the PR: https://github.com/LunchBadger/consumer-management/pull/2

It's rather long, but the functionality should be very straightforward looking at the specs.

from express-gateway.

IrfanBaqui avatar IrfanBaqui commented on May 9, 2024

Regarding our conversation on data persistence, I think it's the user's/db-admin's responsibility to define how often they want to persist data to disk. There is an option in the config file where they can define it. Various things, such as whether they're operating a cluster or single instance, would define how often they want to save.

Invoking the BGSAVE command on each write is not recommended because Redis does point-in-time snapshops and not a diff between the last saved and current version. Now if users are using a single instance of redis for several data models, frequent snapshots can be costly on the resources.

Folks using redis in production should define a good architecture of their cluster themselves, in order to prevent data loss during outages. There are other ways of recovering data in case such as scanning log files... and users should be aware of that.

So, what we should offer is not frequent SAVES, but adequate logging so they can recover data in case of a failure or an option to trigger a user-defined callback in case of any db operations. That call-back can write to user's log files or store data in a secondary storage.

Here's a good read: https://redislabs.com/ebook/part-2-core-concepts/chapter-4-keeping-data-safe-and-ensuring-performance/4-1-persistence-options

@altsang @DrMegavolt @jimhw

from express-gateway.

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.