Giter Site home page Giter Site logo

Comments (1)

spinlock avatar spinlock commented on August 14, 2024

Hi @marathonrush , thank you very much for reminding. But actually, I think your conclusion doesn't make sense. Actually, codis proxy guarantees that the commands from the same client will be handled and dispatched in FIFO order. That is to say, the commands' execution order can be guaranteed if they're sent from the same client and have same hash slot.
If you have read the source code of redis-port, the dirty code, I think you should know that the porting work can be divided into two stages. In the 1st stage, namely the RDB restoring stage, the database will be rebuilt in key-level, which means the execution order doesn't matter and redis-port will setup multiple connections to maximize the speed of restoring process. Then in the 2nd stage, namely the backlog restoring stage, the forwarded command-level backlog will be sent to codis-proxy, and the execution order does matter. In this stage, redis-port will only use single connection to forward the backlog commands. As I said at the very beginning of this reply, the codis-proxy can guarantee the FIFO order in this stage. That's my explanation. Please let me know if you have more questions. Thanks.

from redis-port.

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.