After you perform operations, such as transfers or deposits, for the scenarios in Develop a unitized application, you can go to the console of each product to verify the unitization results:
Distributed Tracing: View traffic flow between units
Distributed Transaction: View transaction execution status
Message Queue: View message trace
Microservices: Push dynamic configurations by unit
Real-time Monitoring: View traffic comparison between units
View traffic flow between units
In the transfer scenario, you can use distributed tracing to view the traffic distribution.
Procedure
Log on to the Distributed Tracing console. In the navigation pane on the left, choose Trace Search.
On the Trace Search page, enter the search criteria as needed and click Query. For example, in the Application Name field, enter the name of the application that initiated the transfer, such as `tnxflow`.
In the list of traces, find the most recent trace and click its TraceId to view the details.
On the Trace Details page, you can view the traffic distribution for the trace between units.
If the transfer was processed within a single zone, the Unitization column for the trace shows Intra-unit. The destination zone is the same as the source zone.
If the transfer was processed across zones, the Unitization column for the trace shows Cross-unit. The destination zone is different from the source zone.
View transaction execution status
In the transfer scenario, you can also use the distributed transaction middleware to view the details of the transfer transaction.
Procedure
Log on to the Distributed Transaction console. In the navigation pane on the left, choose Transaction Monitoring > Transaction Query.
On the Transaction Query page, search for the transaction using the following criteria:
Transaction ID: The unique identifier of the transaction.
Business ID: The unique business identifier.
Application Name: The name of the application that corresponds to the transaction, such as `tnxflow`.
Transaction Status: Includes All, In Progress, Abnormal, and Completed.
Time Period: Select a recent time range, such as 10 minutes, 1 hour, or 1 day. You can also specify a custom time period.
In the search results, find the transaction for your recent transfer and click Details on the right.
On the Transaction Details page, you can view the basic information and the execution process of the distributed transaction.
Basic Information: Includes the BizType, initiator IP address, business ID, transaction status, start time, end time, and number of participants.
Transaction Details: The start and end times of the distributed transaction, initiator and participant information, transaction operation process, and participant type.
View message trace
In the points scenario, you can go to the Message Queue console to query the message and view its trace.
Procedure
Log on to the Message Queue console. In the navigation pane on the left, choose Message Trace.
On the Message Trace page, click Create Query Task.
In the Create Query Task dialog box, select a unit and a query condition, and then enter the required information. For example, you can select Query by Topic and enter the topic of the transactional message.
Click OK. After the query task is created, it appears on the Message Trace page.
Click the expand icon next to the task to view a summary of the trace. The summary includes the message properties and receive status.
In the expanded section, click View Trace to view the complete message trace graph. The graph shows the following information:
Producer information: The zone where the producer is located, sender IP address, send time, send duration, and send status.
Topic information: The zone where the topic is located, topic name, business identifier key of the message, and message tag.
Consumer information: The zone where the consumer is located, duration, delivery time, and consumption status.
Push dynamic configurations by unit
In the transfer scenario, you can also use microservices to push dynamic configurations by unit.
Procedure
Log on to the Microservices console. In the navigation pane on the left, choose Dynamic Configuration.
In the list of configuration classes, click the plus sign (+) next to the desired class to expand its list of properties.
Click the name of the property that you want to push to open its details page.
In the Basic Information section, for Push Target, select Specify Unit and then select the target unit.
Enter a value to push, click Push Configuration, and then confirm the push.
View traffic comparison between units
You can use real-time monitoring to compare traffic between application units.
Procedure
Log on to the Real-time Monitoring console. In the navigation pane on the left, choose Application Monitoring.
Find your application, such as `accountcenter`, and click Details to go to the application details page.
In the navigation pane on the left, choose Application Monitoring > Unitized Perspective to view a comparison of data between units.