Home / Companies / Cockroach Labs / Blog / Post Details
Content Deep Dive

RFC: Bounded Staleness Reads

Blog post from Cockroach Labs

Post Details
Company
Date Published
Author
Nathan VanBenschoten
Word Count
540
Company Posts That Month
8
Language
English
Hacker News Points
1
Post removed?
No
Summary

Follower reads are a key feature for developers using multi-region databases. They allow read-only queries to be served by any replica, ensuring low-latency access to all data in a database regardless of data homing. CockroachDB initially introduced exact staleness reads, which select how far in the past to read and then send the request to the nearest copy of the requested data. However, this approach can cause issues when the guess is wrong, leading to additional latency or redirection to the leaseholder. To address these issues, CockroachDB is exploring bounded staleness reads, which dynamically determine the optimal timestamp to read at, minimizing staleness and ensuring local query serving without blocking. This new approach provides a more predictable solution in the presence of replication slowdown but comes with a small performance cost and can only be used in single-statement transactions.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.