タグ

ブックマーク / redis.io (4)

  • Your Cloud Can't Do That: 0.5M ops + ACID @<1ms Latency! - Redis

    For those of you familiar with Redis, it should be relatively straightforward to create a configuration that guarantees ACID-ish (Atomicity, Consistency, Isolation, Durability) operations: merely create a single Redis instance with a ‘master’ role and have it configured with AOF every write (‘appendfsync always’) to a persistent storage device. This configuration provides ACID characteristics in t

    Your Cloud Can't Do That: 0.5M ops + ACID @<1ms Latency! - Redis
    yass
    yass 2017/07/29
  • SET

    SET key value [NX | XX] [GET] [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL] Available since: 1.0.0 Time complexity: O(1) ACL categories: @write, @string, @slow, Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. Any previous time to live associated with the key is discarded on successful SET o

    yass
    yass 2015/05/10
    " The following pattern is discouraged in favor of the Redlock algorithm which is only a bit more complex to implement, but offers better guarantees and is fault tolerant. The command SET resource-name anystring NX EX max-lock-time is a simple way to implement a locking system with Redis. "
  • Using pipelining to speedup Redis queries

    How to optimize round-trip times by batching Redis commands Redis pipelining is a technique for improving performance by issuing multiple commands at once without waiting for the response to each individual command. Pipelining is supported by most Redis clients. This document describes the problem that pipelining is designed to solve and how pipelining works in Redis. Request/Response protocols an

    yass
    yass 2013/06/24
    "If the interface used is a loopback interface, the RTT is much shorter (for instance my host reports 0,044 milliseconds pinging 127.0.0.1), but it is still a lot if you need to perform many writes in a row."
  • High availability with Redis Sentinel

    High availability for non-clustered Redis Redis Sentinel provides high availability for Redis when not using Redis Cluster. Redis Sentinel also provides other collateral tasks such as monitoring, notifications and acts as a configuration provider for clients. This is the full list of Sentinel capabilities at a macroscopic level (i.e. the big picture): Monitoring. Sentinel constantly checks if your

  • 1