[Segment Replication] Expose utility to denote whether data can be stale #9566
Labels
discuss
Issues intended to help drive brainstorming and decision making
distributed framework
Plugins
v2.10.0
With #8211, few plugins resorted to
_primary
preference to support strong reads for all search requests (e.g sql). This is not needed for DOCUMENT replication and thus, puts un-necessary burden on primary. To keep plugins/consumers agnostic of replication strategy, core can expose a utility to identify if replica can return stale data and thus hint consumers to add _primary preference only when needed.In core, we can expose a utility which returns boolean denoting that client should use _primary preference if latest data is desired
Alternative
_primary
preference only for SEGMENT replication enabled indices. This needs clients to know about underlying replication strategy.The text was updated successfully, but these errors were encountered: