Skip to content

canonical way to process batches of jetstream pull consumer messages as they come in #800

Answered by abalmos
databasedav asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe something like

let mut stream = consumer.messages().await?; 

while let Some(message) = stream.next().await {
  let message = message?; 
  // process message
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@databasedav
Comment options

Answer selected by databasedav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants