Coder Social home page Coder Social logo

Cacheops crashes the entire application if for some reason it cannot connect to the configured Redis server about django-cacheops HOT 5 CLOSED

botondus avatar botondus commented on August 15, 2024
Cacheops crashes the entire application if for some reason it cannot connect to the configured Redis server

from django-cacheops.

Comments (5)

Suor avatar Suor commented on August 15, 2024

Continuing happily under load will most probably bring down your database server.

However I see some scenarios when proposed behavior could be useful.

from django-cacheops.

botondus avatar botondus commented on August 15, 2024

Thanks for the quick reply!

I think in a high availability scenario it is much better to have degraded performance than to have a full outage.
Otherwise you have 1 Redis machine that is your single point failure within an otherwise high redundancy infrastructure.

If you have multiple layers of caching and also plenty of reserve database capacity, the failure of 1 cache layer wouldn't necessarily bring down your database server. It will just make your application slower.

So at least it would be nice if it was configurable. I'll attach also a proposed patch soon.

from django-cacheops.

Suor avatar Suor commented on August 15, 2024

I don't mind a configurable solution. I still think just failing loudly
should be default cause it's more common use case. And also it will lead to
far less confusion, especially in dev environment.

An yes, I will willingly accept a pull request.

from django-cacheops.

smal avatar smal commented on August 15, 2024

Hi,

I also was got that error when using your app within my project.
I have made simple solution for fix ConnectionError issue (see #34 )

from django-cacheops.

Suor avatar Suor commented on August 15, 2024

Closed with #36

from django-cacheops.

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.