amalgam8 icon indicating copy to clipboard operation
amalgam8 copied to clipboard

Optimize Redis-based heartbeat implementation

Open zcahana opened this issue 8 years ago • 0 comments

The heartbeat operation is expected to be the most frequent API operation invoked on the Registry. Today it is implemented using 3 round trips to Redis - read, write, expire - and all with a Write-lock acquired (see #288).

This can already be reduced to 2 operations: read, write+expire as a MULTI-EXEC operation. Looking forward, we also need to look into using server side scripting (Lua) to implement this as 1 roundtrip.

zcahana avatar Sep 21 '16 14:09 zcahana