nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
15.56k stars 1.39k forks source link

Ability to view the undelivered messages #3998

Closed AvinashVenkatesaiah closed 6 months ago

AvinashVenkatesaiah commented 1 year ago

We use nats jetstream and have set up streams and consumers with "all" as the acknowledgement policy . Do we have an ability to view the undelivered messages becuase of the all acknowledgement policy . Based on our understanding , an all ack policy acknowledges all the prior messages as a result of which the messages may not be delivered . Would want to know if there is a way we can view such messages using either the nats cli or sdks

derekcollison commented 1 year ago

Should you select ExplicitAck instead?

AvinashVenkatesaiah commented 1 year ago

Hello @derekcollison : Our use case demands we use the all acknolowdgement policy

derekcollison commented 1 year ago

You can get stream sequence number details on the pending messages and view them with direct gets from the stream by stream sequence number.

bruth commented 6 months ago

@AvinashVenkatesaiah Per:

Our use case demands we use the all acknolowdgement policy

Please share the additional info on the use case. Closing for now, but feel free to re-open.