This page describes the legacy WCF-based mirroring service, where SuperOffice scheduled a background task that pushed data to a customer-hosted endpoint on a fixed cadence.The current Database Mirroring implementation works very differently: a customer-hosted client long-polls SuperOffice for changes streamed through Kafka, and there is no scheduled push from the cloud. See Overview and Set up the Database Mirroring client for the current model. If you are still running the legacy service, see Migrate from the legacy mirroring service.
- Establish 2-way trust between the Mirroring Task (MT) and the client.
-
For each table to be synchronized:
- The mirroring task enables change tracking for the table (if not already set).
- The mirroring task reads the physical schema and sends it to the client.
- The client responds with the Log Sequence Number if it has data for that table.
- The client updates its physical schema (including creating the table from scratch) as needed.
- For each chunk of changes (repeat until no more changes are found):
- The mirroring task reads the
<chunksize>oldest changes from the table. If change tracking was not installed previously, or the client didn’t have the table, all rows are considered changed. - The mirroring task transmits the changes to the client. Each row includes its LSN.
- The client writes the data to the mirror and returns the LSN of the last successfully written row.
- The mirroring task reads the
-
After the last table has been synchronized, call the
ReplicationCompletedmethod to indicate that mirroring is complete for this customer.
Online customer databases don’t keep state or progress indicator for mirroring, and there is no GUI for it either. By design, only the mirror knows the LSN for each table.
When does the mirroring task run?
The mirroring task is scheduled to run every 20 minutes. However, multiple tasks run in sequence on each customer tenant. If another task takes longer to complete than planned, the mirroring task might be delayed. We also stop the task completely from 01.30 to 03:00 every night. Mirroring does not run during server maintenance, such as SuperOffice CRM Online version upgrades.Options
Customers can add custom user preferences to control database mirroring behaviors.
From version 10.1.8 these may be edited directly in Settings and maintenance.
See the Skip Tables section to understand how to add the Mirroring preferences into SuperOffice.