From e4773f8d4941ab3d3dbe8bae1a009631ef74f66d Mon Sep 17 00:00:00 2001 From: Ginger Collison Date: Fri, 7 Jun 2019 09:01:09 -0500 Subject: [PATCH] Update drain.md --- developer/receiving/drain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer/receiving/drain.md b/developer/receiving/drain.md index 2a4b140..49b5404 100644 --- a/developer/receiving/drain.md +++ b/developer/receiving/drain.md @@ -1,6 +1,6 @@ # Draining Connections and Subscriptions -A feature recently added across the NATS client libraries is the ability to drain connections or subscriptions. Closing a connection, or unsubscribing from a subscription., are generally considered immediate requests. When you close or unsubscribe the library will halt messages in any pending queue or cache for subscribers. When you drain a subscription or connection, it will process any inflight and cached/pending messages before closing. +A feature recently added across the NATS client libraries is the ability to drain connections or subscriptions. Closing a connection, or unsubscribing from a subscription, are generally considered immediate requests. When you close or unsubscribe the library will halt messages in any pending queue or cache for subscribers. When you drain a subscription or connection, it will process any inflight and cached/pending messages before closing. Drain provides clients that use queue subscriptions with a way to bring down applications without losing any messages. A client can bring up a new queue member, drain and shut down the old queue member, all without losing messages sent to the old client. Without drain, there is the possibility of lost messages due to delivery timing. @@ -29,4 +29,4 @@ The API for drain can generally be used instead of unsubscribe: !INCLUDE "../../_examples/drain_sub.html" -Because draining can involve messages flowing to the server, for a flush and asynchronous message processing, the timeout for drain should generally be higher than the timeout for a simple message request/reply or similar. \ No newline at end of file +Because draining can involve messages flowing to the server, for a flush and asynchronous message processing, the timeout for drain should generally be higher than the timeout for a simple message request/reply or similar.