Add an opt-in option ReadReplica to indicate that the SubscribeRequest can be subscribed to an ISR replica.
Implementation
The client, upon seeing readReplica option, will not try to get partition's leader address but instead, get server address of a partition's ISR replica.
Context
Related to issue https://github.com/liftbridge-io/liftbridge/issues/103
Add an opt-in option
ReadReplica
to indicate that theSubscribeRequest
can be subscribed to an ISR replica.Implementation
The client, upon seeing
readReplica
option, will not try to get partition's leader address but instead, get server address of a partition's ISR replica.Required PR:
https://github.com/liftbridge-io/liftbridge-api/pull/22