CN-122019208-A - Data processing method, apparatus, device, storage medium, and program product
Abstract
The present application relates to a data processing method, apparatus, device, storage medium and program product. The method comprises the steps of obtaining a sub-application access path of a current account in a target system, determining an operation behavior record based on the sub-application access path, predicting a target sub-application accessed subsequently of the current account and target data corresponding to the target sub-application according to the operation behavior record, wherein the target data is data required to be obtained when the current account accesses the target sub-application, and sending the target data to the target sub-application before the current account accesses the target sub-application. By adopting the method, the hysteresis phenomenon of data loading during sub-application switching in the micro front end architecture can be eliminated, and the user operation experience and the accuracy of service logic are ensured.
Inventors
- YAN LEI
- CHEN XUEYONG
Assignees
- 湖南长银五八消费金融股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260116
Claims (10)
- 1. A method of data processing, the method comprising: acquiring a sub-application access path of a current account in a target system, and determining an operation behavior record based on the sub-application access path, wherein the target system comprises a plurality of sub-applications; Predicting a target sub-application accessed later by the current account and target data corresponding to the target sub-application according to the operation behavior record, wherein the target data is data required to be acquired when the current account accesses the target sub-application; and before the current account number accesses the target sub-application, the target data is sent to the target sub-application.
- 2. The method according to claim 1, wherein predicting the target sub-application of the subsequent access of the current account and the target data corresponding to the target sub-application according to the operation behavior record includes: extracting the characteristics of the operation behavior record to obtain operation behavior characteristics; And inputting the operation behavior characteristics into a prediction model, and predicting to obtain a target sub-application of the current account which is accessed later and target data corresponding to the target sub-application.
- 3. The method of claim 1, wherein the sending the target data to the target sub-application comprises: acquiring the access confidence of the target sub-application; if the access confidence is greater than or equal to a first threshold, transmitting the complete target data to the target sub-application; and if the access confidence is smaller than the first threshold and larger than or equal to a second threshold, sending key data in the target data to the target sub-application.
- 4. A method according to any one of claims 1 to 3, wherein there are a plurality of target sub-applications, the sending the target data to the target sub-applications comprising: Acquiring the access confidence of each of the plurality of target sub-applications; And sending corresponding target data to a plurality of target sub-applications according to the order of the access confidence from large to small.
- 5. The method of claim 4, wherein the sending the corresponding target data to the plurality of target sub-applications in order of greater access confidence comprises: According to the order of the access confidence from large to small, sending corresponding target data to a plurality of target sub-applications; Wherein the concurrency number is less than or equal to the preset number.
- 6. A method according to any one of claims 1 to 3, wherein said sending said target data to said target sub-application comprises: And sending the target data and the frequency information of the target data to the target sub-application so that the target sub-application can determine the storage position of the target data in the target sub-application according to the frequency information of the target data, wherein the frequency information comprises an access frequency and an update frequency.
- 7. A data processing apparatus, the apparatus comprising: The system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a sub-application access path of a current account in a target system, determining an operation behavior record based on the sub-application access path, and the target system comprises a plurality of sub-applications; The prediction module is used for predicting a target sub-application accessed later by the current account and target data corresponding to the target sub-application according to the operation behavior record, wherein the target data is data required to be acquired when the current account accesses the target sub-application; and the sending module is used for sending the target data to the target sub-application before the current account accesses the target sub-application.
- 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
- 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
- 10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Description
Data processing method, apparatus, device, storage medium, and program product Technical Field The present application relates to the field of data processing technology, and in particular, to a data processing method, apparatus, device, storage medium, and program product. Background With the development of micro front end architecture technology, a cross-application data sharing technology appears, and the technology can support the collaborative operation of a plurality of sub-applications which are independently deployed and have heterogeneous technical stacks in the same page environment, so that the cross-application multiplexing of core service data is realized, the repeated development of data processing logic is not needed, meanwhile, the independence of the sub-applications and the integral integration of the system are considered, and the technology is widely applied to the scenes of large-scale enterprise applications, multi-module platforms and the like. In the prior art, the cross-application data sharing mainly adopts a processing mode of passive transmission after data change, namely, a communication channel among sub-applications is firstly established through a global state pool, an event bus or an interface call and the like, when a sub-application A (data modifier) performs new, modified or deleted operation on core data, a preset notification event is triggered, a sub-application B (data receiver) needs to register a corresponding data monitoring mechanism in advance to continuously monitor the change of the global state pool or the notification of the event bus, and only after monitoring a trigger signal, a data pulling or receiving process is started, so that the synchronous update of local data is completed. However, the conventional data processing method at present has the problem of high synchronization delay, namely, since the data transmission between the sub-applications completely depends on the passive mode of modifying the trigger-monitor response, after the sub-application A finishes data modification, the sub-application B cannot sense the data change in real time, and has to wait for the monitor mechanism to trigger and execute the subsequent data synchronization operation, when the user rapidly switches between the sub-application A and the sub-application B, the data loading hysteresis phenomenon easily occurs, so that when the sub-application B finishes page rendering, the required synchronization data is not updated yet, and the page display data is inconsistent with the actual core data, thereby influencing the user operation experience and possibly even causing service logic errors. Disclosure of Invention Based on this, it is necessary to provide a data processing method, apparatus, device, storage medium and program product for solving the above technical problems, which can eliminate the data loading hysteresis phenomenon during the sub-application switching in the micro front end architecture, and ensure the accuracy of the user operation experience and the business logic. In a first aspect, the present application provides a data processing method, including: Acquiring a sub-application access path of a current account in a target system, and determining an operation behavior record based on the sub-application access path, wherein the target system comprises a plurality of sub-applications; Predicting a target sub-application accessed later by the current account and target data corresponding to the target sub-application according to the operation behavior record, wherein the target data is data required to be acquired when the current account accesses the target sub-application; And before the current account number accesses the target sub-application, the target data is sent to the target sub-application. In a second aspect, the present application also provides a data processing apparatus, including: The acquisition module is used for acquiring a sub-application access path of the current account in the target system, determining an operation behavior record based on the sub-application access path, and the target system comprises a plurality of sub-applications; The prediction module is used for predicting a target sub-application accessed later by the current account and target data corresponding to the target sub-application according to the operation behavior record, wherein the target data is data required to be acquired when the current account accesses the target sub-application; and the sending module is used for sending the target data to the target sub-application before the current account accesses the target sub-application. In a third aspect, the present application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method embodiments provided in the first aspect above when the processor executes the computer program. In a fourth aspect, the present application also prov