xConnect Client API read preferences
The xConnect Client API supports the ability to specify an explicit read preference option for any Get or data extraction operation:
|
Option |
Description |
|---|---|
|
|
The default read preference. It means that whenever the (For example, automatically route all the data extraction operations with |
|
|
Defines the preference to read stale data. When |
|
|
Defines the preference to read the most actual data from the primary replica. |
The following is an example to specify ReadPreference.AllowStaleData for the GetContactsAsync operation:
Contact contact = await _client.GetContactAsync(contactId, new ContactExecutionOptions
{
ReadPreference = ReadPreference.AllowStaleData
});