You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Subscribe starting with most recently published valuevaropts=StanSubscriptionOptions.GetDefaultOptions();opts.StartWithLastReceived();vars=c.Subscribe("foo",opts,(obj,args)=>{Console.WriteLine("Received a message: {0}",System.Text.Encoding.UTF8.GetString(args.Message.Data));});
I have question about the above StartWithLastReceived flag. What is really it is doing
Case 1 : The messages are published and subscribers are down. For example publisher publishes 1 to 10 messages. the subscriber is up at message 9, if the above property is set then it start receiving from 9 and 10 and ignore previous ones or it receives messages from 1 through 10.
Case 2: if the publisher publishes 1 to 20, the subscribers down randomly and it is a durable subscribers case and if we set the above property, do we receive all messages or did we loose messages.
Another question, what is the default behavior.
Thank you for your help.
Thanks
ram
The text was updated successfully, but these errors were encountered:
I have question about the above StartWithLastReceived flag. What is really it is doing
Case 1 : The messages are published and subscribers are down. For example publisher publishes 1 to 10 messages. the subscriber is up at message 9, if the above property is set then it start receiving from 9 and 10 and ignore previous ones or it receives messages from 1 through 10.
Case 2: if the publisher publishes 1 to 20, the subscribers down randomly and it is a durable subscribers case and if we set the above property, do we receive all messages or did we loose messages.
Another question, what is the default behavior.
Thank you for your help.
Thanks
ram
The text was updated successfully, but these errors were encountered: