symious commented on PR #1296:
URL: https://github.com/apache/ratis/pull/1296#issuecomment-3370155796

   @OneSizeFitsQuorum Thank you for the info.
   
   GPT’s answers can sometimes be wrong too, but from the client’s perspective, 
if at T1 I send a balance inquiry to the bank, at T2 my account is debited by 
100 yuan, and at T3 I receive a response showing that I still have 100 yuan, 
then the result is clearly incorrect from the client’s point of view.
   
   In the case of ReadIndex, this kind of situation is even more likely to 
occur because of higher latency — especially under high write load conditions.
   
   Returning to the original question, LocalLease allows the user to decide 
whether to trust the results read from a follower within certain limits — 
limitLag and limitTime.
   Essentially, it’s the same issue described above:
   if the limits are small, the user can still go through the ReadIndex path;
   but if the user can tolerate some staleness, they may choose to read 
directly from the follower, even though the value might be slightly outdated or 
inaccurate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to