Skip to content

Commit

Permalink
Add note about recreating ordered consumer
Browse files Browse the repository at this point in the history
Ordered  Consumers should be recreated when heartbeats are missed.

This behaviour was not implemented in all clients and should be, especially after switching ordered consumers to memory storage and R1 which makes them much easier to loose.
  • Loading branch information
Jarema committed Sep 28, 2022
1 parent 10573a2 commit 5585135
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adr/ADR-17.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ The subscription must track the last good stream and consumer sequences.
When a gap is observed, the subscription closes its current subscription,
releases its consumer and creates a new one starting at the proper stream sequence.

If hearbeats are missed, consumer might be gone (deleted, lost after reconnect, node restart, etc.), and it should be recreated from last known stream sequence.

You can optionally make the "state" available to the user.

### Subscription Limitations
Expand Down

0 comments on commit 5585135

Please sign in to comment.