2

I am looking into implementing a failover plan for azure service bus. I've read about Paired namespaces, but I'm not really happy with what that provides, as it doesn't really allow failover to secondary namespace in another data center, just routing of messages to backlog queues during a failover event. To me that isn't going to maintain business continuity as the queue/topic will not be processed during the event.

So, I was trying to come up with another solution, perhaps by duplicating all our messages to a secondary queue/topic, but I can't work out a way of deleting those messages in the secondary queue when the primary message gets completed.

Any ideas, on the best way to achieve this kind of failover with Azure Service Bus?

1 Answer 1

4

Did you review "Best Practices for insulating applications against Service Bus outages and disasters"? The article describes replication approaches and points to samples and further detail guidance. If that doesn't give you want you are looking for, I'd like to understand what you're looking for so we can look into fixing that.

10
  • I don't know how I missed that before! The sample "Geo-replication with Service Bus Brokered Messages" looks exactly what I want.
    – Ian1971
    Commented Jan 5, 2016 at 15:21
  • Is there a recommended way to avoid processing a message twice? Also, how do I stop the secondary from filling up if I am not actively reading it. Could I use sessionId so that the the receiver on the primary could get the message from the secondary and delete it?
    – Ian1971
    Commented Jan 5, 2016 at 15:24
  • I think what I need to do is for my receivers to always check the secondary, though perhaps not as frequently if the primary is known to be up. That will stop the secondary just filling up. Then I can combine that with a write once redis cache to ensure that specific messageIds are not processed twice.
    – Ian1971
    Commented Jan 6, 2016 at 9:32
  • You can potentially use a carefully chosen TimeToLive for automatic cleanup in the secondary. Commented Jan 6, 2016 at 12:31
  • Is using a sessionId that is the same across primary and secondary a reasonable approach to locate a message in the secondary service bus once processed in the primary?
    – Ian1971
    Commented Jan 6, 2016 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.