nats-io / nats-architecture-and-design

Architecture and Design Docs
Apache License 2.0
177 stars 20 forks source link

Consumer Idle Heartbeats #5

Open ripienaar opened 2 years ago

ripienaar commented 2 years ago

Overview

Consumer heartbeats can help clients to detect when an ephemeral consumer have been lost due to network interruption or if messages were lost.

The behavior is documented in ADR-9.

Clients and Tools

Other Tasks

Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.

kozlovic commented 2 years ago

@ripienaar FYI: reference to ADR-9 points to page not found. I don't think there is such ADR at the moment?

ripienaar commented 2 years ago

@ripienaar FYI: reference to ADR-9 points to page not found. I don't think there is such ADR at the moment?

fixed :) actually, something else going on...

kozlovic commented 2 years ago

there seem to be adr-9 in the nats-server repo, so is it just that they have not been moved around yet?

ripienaar commented 2 years ago

there seem to be adr-9 in the nats-server repo, so is it just that they have not been moved around yet?

Yeah there's some confusion, @aricart left a gap for me while my KV one is being reviewed and I confused things moving them here. let me fix that

aricart commented 2 years ago

@ripienaar the javascript client in its current incarnation doesn't 'handle' the error, but enables clients to handle it - if the current box is simply whether you can solicit the heart beating then this is handled, however as an automated solution is likely more desirable.