liftbridge-io / go-liftbridge

Go client for Liftbridge. https://github.com/liftbridge-io/liftbridge
Apache License 2.0
67 stars 18 forks source link

Add opt-in option to read from ISR replica #52

Closed LaPetiteSouris closed 4 years ago

LaPetiteSouris commented 4 years ago

Context

Related to issue https://github.com/liftbridge-io/liftbridge/issues/103

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.

Required PR:

https://github.com/liftbridge-io/liftbridge-api/pull/22

LaPetiteSouris commented 4 years ago

Note for CircleCI build : Build will be fixed once https://github.com/liftbridge-io/liftbridge-api/pull/22 is merged.