You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One potential solution is to use the raft-log-id as a pseudo time. This solution involves:
Returning the log id i to the writer W when a log is applied.
A subsequent reader R (whether it's the same as W or not) forwards i to an Openraft node for reading, Openraft will not process this read request until it has applied i.
Since the committed log id ((term, index)) in raft is monotonic, it can be used as a measure of time. However, this solution requires the application to track the log-id amount across a cluster.
One potential solution is to use the raft-log-id as a pseudo time. This solution involves:
i
to the writerW
when a log is applied.R
(whether it's the same asW
or not) forwardsi
to an Openraft node for reading, Openraft will not process this read request until it has appliedi
.Since the committed log id (
(term, index)
) in raft is monotonic, it can be used as a measure of time. However, this solution requires the application to track the log-id amount across a cluster.Originally posted by @drmingdrmer in #262 (comment)
The text was updated successfully, but these errors were encountered: