gomessagingnats.ioevent-streamnats-jetstream

NATS JetStream: Is it possible to explicitly ask from JetStream to (re)send the last few messages it received in subject foo.*?


Essentially what the subject says.

I'm wondering if JetStream can be queried in a way that allows us to refetch either the last 15 messages of subject "foo.*" or the messages that JetStream received on subject "foo.*" in the last 1.5 seconds.

If that's possible, any code-samples or links to code-samples are appreciated.


Solution