Coder Social home page Coder Social logo

Comments (2)

rfyiamcool avatar rfyiamcool commented on May 25, 2024

And How about his performance?

from redis-py-cluster.

Grokzen avatar Grokzen commented on May 25, 2024

Hi @rfyiamcool Please read the docs and specially this section https://github.com/Grokzen/redis-py-cluster/blob/unstable/docs/Pipelines.md#transactions-and-watch that might describe some and give awnswers to your question.

The short awnser is that it kinda depends on what level of transaction you are looking for. Let me give you some examples.

The highest level of transactions that is normally used today with a pipeline is that you want the entire pipeline to be transactional and if some error occurs with any command it should be rolled back. This in a redis cluster is not possible because the problem is that you need to send a seperate transaction to each node in the cluster and they are execute seperatly and you can't for example "load" a pipeline into redis --> wait for confirmation that all nodes have loaded the pipeline and then trigger the execution from the client and they will be all commited or rolledback.

If you however are looking for Node level transaactions where if you construct a pipeline and then want each node to execute a transaction that is possible to support but i would not recommend it because it is not a real transaction support and you can't do a rollback on all pipelines across the cluster once they are commited.

Transactions are tricky and not easy to implement :] I hope this answers your question. Please close the ticket if it did or ask away if you have any other questions regarding this topic.

from redis-py-cluster.

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.