Annotation Interface FollowerRead


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface FollowerRead
Marks the annotated method as a follower-read call. The proxy engine sets the follower-read staleness in CrdbContext, so reads run with AS OF SYSTEM TIME against the nearest replica for low-latency, slightly-stale results.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Staleness expression.
  • Element Details

    • staleness

      String staleness
      Staleness expression. Defaults to CockroachDB's exact-staleness helper follower_read_timestamp().
      Default:
      "follower_read_timestamp()"