[CDRIVER-136] Add tags to read preferences. Created: 16/May/12  Updated: 11/Nov/13  Resolved: 11/Nov/13

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.90.0

Type: Improvement Priority: Major - P3
Reporter: Kyle Banker Assignee: Gregor Macadam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-68 Add read preference when connecting t... Closed

 Comments   
Comment by Christian Hergert [ 11/Nov/13 ]

The new C driver has support for tags in read preferences. For API use, see https://github.com/chergert/libmongoc/blob/92dd66de4f80ede5b877239e0608a1d8e98564a8/mongoc/mongoc-read-prefs.h#L49

Comment by Gary Murakami [ 14/Aug/12 ]

There are a couple of challenge for this issues.
1) test environment
This requires setting up a replica set, to verify that the tagging is actually working. There's no such facility for the C driver, and nothing has emerged as of yet from the other drivers, although this is a primary concern across the board. It's likely that something will emerge with a server or HTTP REST interface, but this hasn't yet happened, its non-trivial and it's probably a prereq.
2) basic read prefernces
The C driver yet support basic read preferences for replica sets (primary, secondary OK, secondary only, etc.). This was the big push for the mainstream 2.2 drivers, but the C driver is of lower priority at present. We should do basic read preference first, but keep tagging in mind.
3) API interface
Both basic read preferences and tags will require an API change. We should only have one API change if we can managed that, instead of two API changes.

We should link this ticket and basic read preferences together.

Generated at Wed Feb 07 21:08:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.