Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add APIs for getting the first/next message in a stream #1357

Open
zerolfx opened this issue Dec 31, 2024 · 1 comment · May be fixed by #1359
Open

Add APIs for getting the first/next message in a stream #1357

zerolfx opened this issue Dec 31, 2024 · 1 comment · May be fixed by #1359
Labels
proposal Enhancement idea or proposal

Comments

@zerolfx
Copy link

zerolfx commented Dec 31, 2024

Proposed change

Currently, we have:

  • stream.direct_get
  • stream.direct_get_next_for_subject
  • stream.direct_get_first_for_subject
  • stream.direct_get_last_for_subject

and

  • stream.get_raw_message
  • stream.get_last_raw_message_by_subject

The problem is, there is no non-direct version of direct_get_next_for_subject or direct_get_last_for_subject.

Use case

Get the first message by subject in a jetstream.

Contribution

No response

@zerolfx zerolfx added the proposal Enhancement idea or proposal label Dec 31, 2024
@Jarema
Copy link
Member

Jarema commented Dec 31, 2024

Hey.
Sure, we can add those for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants