1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00
Ivan Kozlovic 5a458036a2 Major rewrite of NATS Streaming Server concepts section
and updates to the developing section.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2019-05-22 18:11:42 -06:00

13 lines
649 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.
```go
sc.Subscribe("foo", func(m *stan.Msg) {...}, stan.DurableName("my-durable"))
```
Unsubscribe will cause the server to completely remove the durable subscription.
Check the [concepts](/nats_streaming/channels/subscriptions/durable.md) section for more information.