Supercharge Your Innovation With Domain-Expert AI Agents!

Data stream management framework and method, terminal device, and storage medium

A data storage and data flow technology, applied in the computer field, can solve problems such as difficulty in debugging, management framework code redundancy, etc., and achieve the effect of reducing redundancy and facilitating code debugging

Active Publication Date: 2018-12-18
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present invention provides a data flow management framework, method, terminal equipment and storage medium to solve the problem of code redundancy or difficult debugging in the existing management framework

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data stream management framework and method, terminal device, and storage medium
  • Data stream management framework and method, terminal device, and storage medium
  • Data stream management framework and method, terminal device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] see figure 1 , a schematic structural diagram of the data flow management framework provided by the embodiment of the present invention, including components:

[0029] Storage component 110: used to provide a singleton mode data storage object and an observable object, the data storage object is used to store data in the data stream, and the observable object is used to control the refresh of the view;

[0030] The singleton mode means that the data storage class has only one object instance. In the singleton mode, only one object is guaranteed to manage and update data, so as to avoid data confusion caused by multiple objects. Specifically, export this module, that is, the data storage class interface, and initialize data in the constructor of this class, and initialize the instance object and return the instance object.

[0031] The observable object is a special type of observable, which can multi-push values ​​to multiple observers. Preferably, the observable obje...

Embodiment 2

[0047] exist figure 1 on the basis of combining figure 2The data transfer process of each component in the data flow management framework is described in detail, as follows:

[0048] The Service component 20 is a service program running in the background without a user interface. Ability to bind other components for data interaction or communication with the server. In the Service component 20, data update is requested through the request interface data module 201, and the request logic with side effects is separated from the business logic by defining the server-side interface data. Optionally, it also includes providing a page-level interface interception function.

[0049] The Controller component 21 is generally used to collect and verify request parameters and bind command objects, and deliver the command objects to business processing logic. In the embodiment of the present invention, the Controller component 21 is mainly used to obtain update data and control view ...

Embodiment 3

[0058] A data flow management framework is mainly described above, and a data flow management method will be described in detail below.

[0059] image 3 A schematic structural diagram of a data flow management method is shown, including:

[0060] S301. In the singleton mode, create a data storage object, and define an observable object in the data storage object, wherein the data storage object is used to store data in the data stream;

[0061] The observable object represents a set of callable future values ​​or events. In the embodiment of the present invention, the observable object can listen to the changed fields of the data, and can also be monitored and observed by the view component as an observable object.

[0062] Optionally, a data registration method and a data acquisition method are defined in the data storage object. In the data storage object, it is necessary to obtain the update data, and register and store the update data according to the category, such as ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data stream management framework and method, a terminal device and a storage medium, which are applicable to the application development field. The framework provided by theinvention comprises: a storage component which is used for providing a data storage object of a singleton mode and a observable object, wherein the data storage object is used for storing data in a data stream, and the observable object is used for controlling the refresh of a view; a view component used to subscribe to observable objects, and when it is detected that the observed field is the same as the initial field, call the forced update method to refresh the view; a control component used for receiving the incoming update data, merging the update data and the current data, and calling the key value of data change of the observable object multicast; a service component used to separate the request logic from the business logic for the data obtained by the request. The invention reduces the redundancy of the code, at the same time, the data transmission process between the components is visible, and the code debugging is convenient.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a data flow management framework, method, terminal equipment and storage medium. Background technique [0002] React.js is one of the mainstream frameworks for front-end development. As a view layer, this framework can solve the view rendering problem very well. However, due to the lack of effective state management, it will appear weak when building large-scale front-end applications. In order to better manage and To debug the components, it is necessary to introduce a state management framework. [0003] At present, the commonly used state management methods are Redux and mobx. When using the Redux architecture, a large amount of boilerplate code is required to implement each function. Redundant code will reduce development efficiency. However, using the Mobx architecture will make the data transfer process between the storage component and other components invisible...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/34G06F8/65
CPCG06F8/34G06F8/65
Inventor 索传良张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More