Locking and Redis

后端 未结 2 526
野性不改
野性不改 2021-02-03 11:28

We have 75 (and growing) servers that need to share data via Redis. All 75 servers would ideally want to write to two fields in Redis with INCRBYFLOAT operations. W

2条回答
  •  天涯浪人
    2021-02-03 12:03

    Since Redis is single threaded, you will probably want to use master-slave replication to separate writes from reads, since yes, writes will generally block reads.

    Alternatively you can consider using Apache Zookeeper for this, it provides reliable cluster coordination without single points of failure (like single Redis instance).

提交回复
热议问题