Sequential ID for messages?

Options
petegehrman
petegehrman Member Posts: 43 ✭✭

Is there a sequential ID number assigned to each guaranteed message that flows through a broker or queue? I'm using the JCSMP API and was wondering if a consumer could read a sequential number assigned to each message for ordering.

Best Answer

  • TomF
    TomF Member, Employee Posts: 406 Solace Employee
    #2 Answer ✓
    Options

    Hi @petegehrman,

    The short answer is "no." The pattern we use is to apply a sequence number at the publisher.

    There is the replication group message ID, but we make no guarantees as to whether that is sequential or event monotonically increasing. There is also a message ID, but again there are no sequence guarantees for this.

Answers

  • TomF
    TomF Member, Employee Posts: 406 Solace Employee
    #3 Answer ✓
    Options

    Hi @petegehrman,

    The short answer is "no." The pattern we use is to apply a sequence number at the publisher.

    There is the replication group message ID, but we make no guarantees as to whether that is sequential or event monotonically increasing. There is also a message ID, but again there are no sequence guarantees for this.