HeavyHorst / easykv

very simple Key/Value store abstraction library
MIT License
12 stars 7 forks source link

Allow usage of etcd serializable reads #15

Open tanguy-ortolo opened 12 months ago

tanguy-ortolo commented 12 months ago

Hello,

I noticed that easyKV uses linearizable reads with both etcd v2 (where is is specified as an option Quorum: true) and with etcd v3 (where it is the implicit default).

Linearizable reads are interesting, but come with a latency cost, which not everybody is willing to pay. I think it would be good to allow this to be configured, I am therefore submitting PR #14.

tanguy-ortolo commented 12 months ago

A corresponding request for remco will follow shortly. :-)

Be aware that, for remco to use that new feature, you will have to tag a new version of easyKV first.