wso2 / andes

Apache License 2.0
39 stars 129 forks source link

Reset message cursor when last subscriber leaves #941

Closed Asitha closed 7 years ago

Asitha commented 7 years ago

Purpose

We deliver messages for a given queue based on a cursor that moves forward while delegating every N messages to all active subscribers. However, if the last subscriber leaves abruptly, the next subscription will not receive the messages previously allocated. Thus, resetting the cursor.