Giter Site home page Giter Site logo

Failover to cached_db about django-redis HOT 4 CLOSED

jazzband avatar jazzband commented on July 2, 2024
Failover to cached_db

from django-redis.

Comments (4)

teferi avatar teferi commented on July 2, 2024

That doesn't seem like a good idea to me. It looks like this kind of failover operations should be executed by django itself, not by a cache backend.
Also the whole idea seems strange. Why would you want to failover to another backend, rather than to a redis-slave (which can be configured to be read-write) for example?
Also have you considered using tools like haproxy for failover?

from django-redis.

mauricioabreu avatar mauricioabreu commented on July 2, 2024

Imagine if your Redis (server itself) turns down. You should have 2 servers with 2 Redis running. Am I missing something?
I will consider haproxy. Thanks for your tip, @teferi .

from django-redis.

niwinz avatar niwinz commented on July 2, 2024

Hi!
I really agree with @teferi ! But I have done some experiments in this area on some experimental client: https://github.com/niwibe/django-redis/blob/master/redis_cache/client/experimental.py#L52

It can be adapted for use an other backend instead of using an other connection string.

In any case, consider @teferi recomendations.

from django-redis.

mauricioabreu avatar mauricioabreu commented on July 2, 2024

Thanks for your feedback. I am closing this issue because I agree with you both.
And yes, I will consider.

from django-redis.

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.