Edit on GitHub

NATS Auto Pruning of Clients

To support resiliency and high availability, NATS provides built-in mechanisms to automatically prune the registered listener interest graph that is used to keep track of subscribers, including slow consumers and lazy listeners.

Slow consumers

NATS automatically handles a slow consumer. If a client is not processing messages quick enough, the NATS server cuts it off.

Lazy listeners

To support scaling, NATS provides for auto-pruning of client connections. If a subscriber does not respond to ping requests from the server within the ping-pong interval, the client is cut off (disconnected). The client will need to have reconnect logic to reconnect with the server.