Getting Started
Architecture
NServiceBus
Transports
Persistence
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

Business Continuity / Disaster Recovery

Multiple ServiceControl instances can be used to create a business continuity / disaster recovery configuration. By forwarding failed and audited messages to backup instances of ServiceControl, it is possible to resume operations in the case that the primary instances are no longer available.

graph TD EPB[Endpoints] E((error queue)) EPB --failed messages -->E E --ingested by-->SCEA EPB --audit messages-->A A((audit queue)) A --ingested by-->SCAA subgraph Primary SCEA["ServiceControl Instance"] SCAA["ServiceControl Audit Instance"] end subgraph Backup SCEB["ServiceControl Instance"] SCAB["ServiceControl Audit Instance"] end EB((error_backup<br/>queue)) SCEA --forwards to-->EB EB --ingested by-->SCEB AB((audit_backup<br/>queue)) SCAA --forwards to-->AB AB --ingested by-->SCAB

This configuration works by combining multiple ServiceControl instances with audit log forwarding and error log forwarding. Failed and audited messages are forwarded by the primary instances to the backup instances through log forwarding queues.

To install this configuration:

  1. Create the standard error and audit queues.
  2. Create the backup error and audit queues.
  3. Set up the primary ServiceControl instances and configure them to forward errors and audit messages to the backup queues.
  4. Set up the backup ServiceControl instances and configure them to use the backup queues.

How retrying works

Retrying a message from the primary instance will work as usual, however the backup instances will now update the status of the failed messages to "retry pending". Once the successful audit message is received, the backup instance will be notified as well and the failed message record in both instances will reflect the messages as having been successfully retried.

Related Articles