This topic describes how to create and manage message routing tasks to route and synchronize messages across units in a unit deployment environment.
This feature applies only to environments that support the LDC unitized architecture.
Create a routing task
You can log on to the MSMQ console and create a cross-region message synchronization task based on your business requirements. The procedure is as follows:
Log on to the SOFAStack console.
In the left-side navigation pane, choose Middleware > MSMQ > Message Routing.
Click Create Routing Task. In the Create Routing Task dialog box, configure the parameters.
Source Topic: Enter the name of the topic to which the messages to be synchronized belong.
Target Unit: Select the unit of the topic to which messages are synchronized.
Target Topic: Enter the name of the topic to which the message will be synchronized.
Start Synchronization Location: Select the position of the MSMQ from the source topic. Messages that enter the queue after the position are synchronized to the destination topic.
Minimum offset: After the task is started for the first time, the earliest message that is written to the source topic queue within the validity period is synchronized. Messages that are sent before the task is started for the first time are not synchronized.
Maximum: After the task is started for the first time, the message that is written to the source topic queue starts to be synchronized. The message that is sent before the task is started for the first time is not synchronized.
Custom offset: Select the location of the MSMQ in the source topic to start message synchronization. Messages sent before the first task start are not synchronized.
Description: Optional. The description or remarks of the synchronization task.
Click OK.
After the task is created, you can view the task in the task list on the Message Routing page.
After the message routing task is created, the task enters the Initializing state. After the task is initialized, the task enters the Running state.
Search for routing tasks
On the Message Routing page, set Source Topic, Target Unit, and Target Topic, and then click Search.
Start and stop a routing task
On the Message Router page, find the target task and click Start or Stop in the Actions column to start or stop the task.
After a task is started, the status of the task changes to Running.
After a task is stopped, the status of the task changes to Stopped.
Delete a routing task
You can delete only stopped message routing tasks.
On the Message Routing page, find the task that you want to delete and click Delete in the Actions column.