1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

513 B
Raw Blame History

Durable Subscriptions

Regular subscriptions remember their position while the client is connected. If the client disconnects the position is lost. Durable subscriptions remember their position even if the client is disconnected. Durable subscriptions identify themselves with a name. Connect and disconnect wont affect the durable subscriptions position in the channel. Unsubscribe will clear the durable subscription.

sc.Subscribe("foo", func(m *stan.Msg) {...}, stan.DurableName("my-durable"))