nats-server icon indicating copy to clipboard operation
nats-server copied to clipboard

Ability to set consumer_name for Key Value store

Open suikast42 opened this issue 3 months ago • 2 comments

Proposed change

I am using the jnats java libraray an subsribe to a kv bucket with

 natKvStoreService.deviceAggregateStore().watchAll(new KeyValueWatcher() {

This generates on every boot different consumer name

jetstream_consumer_ack_floor_stream_seqaccount$Gaccount_id$Gclusterconsumer_descconsumer_leaderconsumer_nameDGix6yiNaWdomainis_consumer_leadertrueis_meta_leadertrueis_stream_leadertruemeta_leaderserver_idamovabi_infra.nats[0]server_nameamovabi_infra.nats[0]stream_leaderamovabi_infra.nats[0]stream_nameKV_DeviceAggregateStore 1087

Is it possible to add consumer name to KeyValueWatchOption ?

Use case

Listen to KV stores

Contribution

No response

suikast42 avatar Mar 29 '24 00:03 suikast42