Maintaining Receipt Sequence Number State
To make the most of explicitly acknowledging receipt sequence numbers, your receiving applications should store, in some reliable way, the receipt sequence numbers of successfully processed events. This will allow your applications to continue receiving events where they left off if they should terminate and need to be restarted.
You can use the
awGetEventReceiptSequenceNumber method to obtain the receipt sequence number from a received event.