CN117032589A - Terminal application data management method and related device based on data center - Google Patents

Terminal application data management method and related device based on data center Download PDF

Info

Publication number
CN117032589A
CN117032589A CN202311270803.4A CN202311270803A CN117032589A CN 117032589 A CN117032589 A CN 117032589A CN 202311270803 A CN202311270803 A CN 202311270803A CN 117032589 A CN117032589 A CN 117032589A
Authority
CN
China
Prior art keywords
data
terminal application
independent
data center
data management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311270803.4A
Other languages
Chinese (zh)
Inventor
黄海亮
谢韵佳
丁一
白剑
梁瑛玮
张海林
鲁和平
李长杰
陈焕然
李乐
王浩
洪行健
冷冬
李尚然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yifang Information Technology Co ltd
Original Assignee
Yifang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yifang Information Technology Co ltd filed Critical Yifang Information Technology Co ltd
Priority to CN202311270803.4A priority Critical patent/CN117032589A/en
Publication of CN117032589A publication Critical patent/CN117032589A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Abstract

The invention discloses a terminal application data management method and a related device based on a data center, wherein the method comprises the following steps: each module in the terminal application is independently divided into a plurality of independent subsystems, the independent subsystems exist in the application terminal, and each independent subsystem comprises a service function part and a service data management part; creating a data center in a terminal application, and storing pointers of data management objects of independent subsystems in the data center; the terminal application establishes communication interactive connection with a user based on a data center and receives a data interaction demand instruction of the user; and the data center performs data interaction processing on the business data management of the corresponding independent subsystem based on the data interaction demand instruction. In the embodiment of the invention, the business isolation in the terminal application is realized, and the independent subsystems are independent of each other and are not dependent on each other, and meanwhile, the technical problems of code bloated and difficult maintenance caused by the fact that the data of the terminal application are managed at the same place are avoided.

Description

Terminal application data management method and related device based on data center
Technical Field
The present invention relates to data management, and more particularly, to a data center-based terminal application data management method and related apparatus.
Background
In a complex mobile application, comprising more than one function, the functions are grouped together to form a complete application; meanwhile, a large amount of data exists in the running process of the program, and the data comprise information input by a user and data pulled from a server, and data generated locally by software; the service functions are connected with each other and coupled, and the data is more and more along with the increase of the service functions, so that how to manage each service function in the software, reduce the coupling degree between the service functions and isolate the data of each service function is a technical problem to be solved.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a terminal application data management method and a related device based on a data center, which realize business isolation in terminal application, are independent of each other and independent of each other, and simultaneously avoid the technical problems of code swelling and difficult maintenance caused by the management of data of the terminal application at the same place.
In order to solve the above technical problems, an embodiment of the present invention provides a terminal application data management method based on a data center, where the method includes:
each module in the terminal application is independently divided into a plurality of independent subsystems, wherein the independent subsystems exist in the application terminal, and each independent subsystem comprises a service function part and a service data management part;
creating a data center in the terminal application, and storing pointers of data management objects of the independent subsystems in the data center;
the terminal application establishes communication interactive connection with a user based on the data center, and receives a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication;
and the data center carries out data interaction processing on the business data management of the corresponding independent subsystem based on the data interaction demand instruction, wherein the data interaction comprises data request or data writing.
Optionally, independent subsystems of a plurality of terminal applications are not in a dependency relationship with each other; and the independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects.
Optionally, the independent subsystems of the plurality of terminal applications are respectively associated with the data center through pointers of the corresponding data management objects, and the method includes:
when a plurality of independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects, if any independent subsystem in the plurality of independent subsystems in the terminal application is cut, the data center deletes the pointers of the data management objects corresponding to the cut independent subsystems;
if an independent subsystem is added in the terminal application, the pointers of the data management objects corresponding to the added independent subsystem are stored in the data center.
Optionally, the independent subsystem for independently dividing each module in the terminal application into a plurality of modules includes:
dividing the terminal application into a plurality of modules according to code functions, and independently dividing the modules into a plurality of independent subsystems;
there is no interdependence between codes in the several independent subsystems.
Optionally, the service function part includes various functions in the corresponding independent subsystem, and processes the input parameters by using the established content in the various functions;
the business data management part is used for managing a plurality of data which are generated by corresponding independent subsystems in the process of program operation.
Optionally, the creating a data center in the terminal application and storing the pointer of the data management object of the independent subsystem in the data center includes:
creating a data center in the terminal application, and opening up a section of storage space for the data center in the terminal application;
storing pointers of data management objects of the independent subsystems into the storage space of the data center.
Optionally, the data center performs data interaction processing on the basis of the data interaction requirement instruction in service data management of the corresponding independent subsystem, and includes:
the data center establishes a communication relationship with the corresponding independent subsystem by utilizing a pointer of the independent subsystem which needs to be communicated in the data interaction demand instruction;
the data center obtains data interaction demand information of the data interaction demand instruction;
and the data center performs data interaction processing with the independent subsystem establishing the communication relationship based on the data interaction demand information.
In addition, the embodiment of the invention also provides a terminal application data management device based on the data center, which comprises the following steps:
and (3) an independent module: the system comprises an application terminal, an independent subsystem and a service data management part, wherein the application terminal is used for receiving a service data management request from the service data management part;
the creation module: the terminal application is used for creating a data center in the terminal application and storing pointers of data management objects of the independent subsystems in the data center;
and a receiving module: the terminal application is used for establishing communication interactive connection with a user based on the data center, receiving a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication;
and a data interaction module: and the data center is used for carrying out data interaction processing on the business data management of the corresponding independent subsystem based on the data interaction demand instruction, and the data interaction comprises data request or data writing.
In addition, the embodiment of the invention also provides a terminal device, which comprises a processor and a memory, wherein the processor runs a computer program or code stored in the memory to realize the terminal application data management method according to any one of the above.
In addition, an embodiment of the present invention further provides a computer readable storage medium storing a computer program or code, which when executed by a processor, implements a terminal application data management method according to any one of the above.
In the embodiment of the invention, the terminal application is independently divided into a plurality of independent subsystems, a data center is created at the same time, the independent subsystems are independent of each other, and an association relationship is respectively established with the data center, so that service isolation in the terminal application is realized, the independent subsystems are independent of each other, and meanwhile, the technical problems of code swelling and difficult maintenance caused by the management of data of the terminal application at the same place are avoided.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a data center-based terminal application data management method in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal application data management device based on a data center in an embodiment of the present invention;
fig. 3 is a schematic structural composition diagram of a terminal device in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flow chart of a data center-based terminal application data management method according to an embodiment of the invention.
As shown in fig. 1, a terminal application data management method based on a data center, the method includes:
s11: each module in the terminal application is independently divided into a plurality of independent subsystems, wherein the independent subsystems exist in the application terminal, and each independent subsystem comprises a service function part and a service data management part;
in the implementation process of the invention, the independent subsystems in a plurality of terminal applications are not in a dependency relationship with each other; and the independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects.
Further, the independent subsystems of the plurality of terminal applications are respectively associated with the data center through pointers of the corresponding data management objects, and the method comprises the following steps: when a plurality of independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects, if any independent subsystem in the plurality of independent subsystems in the terminal application is cut, the data center deletes the pointers of the data management objects corresponding to the cut independent subsystems; if an independent subsystem is added in the terminal application, the pointers of the data management objects corresponding to the added independent subsystem are stored in the data center.
Further, the independent subsystem for independently dividing each module in the terminal application into a plurality of independent subsystems includes: dividing the terminal application into a plurality of modules according to code functions, and independently dividing the modules into a plurality of independent subsystems; the codes in the independent subsystems have no mutual dependency, and after the codes in one independent subsystem are added and deleted, the normal compiling of the codes of other independent subsystems in the terminal application is not affected.
Further, the service function part comprises various functions in the corresponding independent subsystems, and utilizes established contents in the various functions to process the input parameters; the business data management part is used for managing a plurality of data which are generated by corresponding independent subsystems in the process of program operation.
Specifically, the terminal application operates on the intelligent terminal, and a plurality of independent subsystems in the terminal do not have a dependency relationship with each other, namely, the independent subsystem of any one of the independent subsystems is edited, so that the operation of other independent subsystems is not influenced; the independent subsystems in the terminal application are respectively associated with the data center through pointers of corresponding data manager objects, namely, the pointers of the corresponding data manager objects are stored in the data center, and the data center establishes a communication relationship with the corresponding independent subsystems through the stored pointers of the corresponding data manager objects.
When a plurality of independent subsystems in the terminal application are respectively associated with the data center through pointers of corresponding data management objects, if any independent subsystem in the plurality of independent subsystems in the terminal application is cut, the data center deletes the pointers of the data management objects corresponding to the cut independent subsystems; the tailorable means that codes of a plurality of independent subsystems are not mutually dependent on other independent subsystems, and after the codes of one independent subsystem are deleted, the normal compiling operation of the codes of the rest independent subsystems in the terminal application is not influenced; if an independent subsystem is added in the terminal application, storing pointers of data management objects corresponding to the added independent subsystem into the data center; in the iteration process of items in the terminal application, new functions are iterated and old functions are removed, when one old function (independent subsystem) is not needed any more, clipping is needed, and when one new function (independent subsystem) is added, adding is needed.
A business function part and a business data management part exist in each independent subsystem, wherein the business function part comprises various functions in the corresponding independent subsystem, and the parameters imported by the established contents in the various functions are utilized to process; the business data management part comprises management of a plurality of data stored in the memory, which are generated in the running process of the program by the corresponding independent subsystem; program operation within the terminal application depends on binary data, which is initial data; and the data of the business data management part is the data generated in the operation process of the corresponding independent subsystem in the terminal application program.
S12: creating a data center in the terminal application, and storing pointers of data management objects of the independent subsystems in the data center;
in the implementation process of the invention, the creating a data center in the terminal application and storing the pointer of the data management object of the independent subsystem in the data center comprises the following steps: creating a data center in the terminal application, and opening up a section of storage space for the data center in the terminal application; storing pointers of data management objects of the independent subsystems into the storage space of the data center.
Specifically, when a data center is created in a terminal application, a section of storage space is synchronously opened up for the created data center in the terminal application, and the storage space is used for the created data center, so that pointers of data management objects of independent subsystems can be stored in the storage space of the data center; thus, the data management objects of the independent subsystems in the terminal application are not actually stored in the storage space of the data center, but are stored in each independent subsystem, and the storage space of the data center is only used for storing pointers of the data management objects of the independent subsystems.
S13: the terminal application establishes communication interactive connection with a user based on the data center, and receives a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication;
in the implementation process of the invention, when the user performs communication interaction with the terminal application, the terminal application performs interaction with the terminal application through the data center, thus, the terminal application establishes communication interaction connection with the user through the data center and receives a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication, namely, the user needs to interact with the independent subsystems in the corresponding terminal application.
S14: and the data center carries out data interaction processing on the business data management of the corresponding independent subsystem based on the data interaction demand instruction, wherein the data interaction comprises data request or data writing.
In the implementation process of the invention, the data center performs data interaction processing on the basis of the data interaction demand instruction in the service data management of the corresponding independent subsystem, and the method comprises the following steps: the data center establishes a communication relationship with the corresponding independent subsystem by utilizing a pointer of the independent subsystem which needs to be communicated in the data interaction demand instruction; the data center obtains data interaction demand information of the data interaction demand instruction; and the data center performs data interaction processing with the independent subsystem establishing the communication relationship based on the data interaction demand information.
Further, the data center establishes a communication relationship with the corresponding independent subsystem by utilizing a pointer of the independent subsystem which needs to be communicated in the data interaction demand instruction; then the data center obtains the data interaction demand information of the data interaction demand instruction; and then carrying out data interaction processing through the data interaction requirement information and the independent subsystem establishing the communication relationship.
The user interacts (here, interaction includes user input data, user acquired data and the like) with a plurality of independent subsystems in the terminal application through the data center to serve as a communication hub, then establishes communication with each independent subsystem according to the requirements of the user, and obtains required data from the data management objects of each subsystem and returns the required data to the user; the interaction between the user of the terminal application and the application terminal application comprises clicking a button, various gestures (pull-down, dragging, double-finger zooming and the like), inputting by a (virtual) keyboard and the like, namely all actions of the user for operating the mobile phone software.
In the embodiment of the invention, from the perspective of the user, the data management is central, because the user is only in contact with the object of the data center; but from the point of view inside the terminal application, the data management is distributed, because the data within the terminal application is distributed in each independent subsystem according to each independent subsystem partition, and the data center holds not the data itself but pointers to the data management objects of each independent subsystem holding the data.
In the embodiment of the invention, the terminal application is independently divided into a plurality of independent subsystems, a data center is created at the same time, the independent subsystems are independent of each other, and an association relationship is respectively established with the data center, so that service isolation in the terminal application is realized, the independent subsystems are independent of each other, and meanwhile, the technical problems of code swelling and difficult maintenance caused by the management of data of the terminal application at the same place are avoided.
In a second embodiment, referring to fig. 2, fig. 2 is a schematic structural diagram of a terminal application data management device based on a data center according to an embodiment of the present invention.
As shown in fig. 2, a terminal application data management device based on a data center, the device includes:
the independent module 21: the system comprises an application terminal, an independent subsystem and a service data management part, wherein the application terminal is used for receiving a service data management request from the service data management part;
in the implementation process of the invention, the independent subsystems in a plurality of terminal applications are not in a dependency relationship with each other; and the independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects.
Further, the independent subsystems of the plurality of terminal applications are respectively associated with the data center through pointers of the corresponding data management objects, and the method comprises the following steps: when a plurality of independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects, if any independent subsystem in the plurality of independent subsystems in the terminal application is cut, the data center deletes the pointers of the data management objects corresponding to the cut independent subsystems; if an independent subsystem is added in the terminal application, the pointers of the data management objects corresponding to the added independent subsystem are stored in the data center.
Further, the independent subsystem for independently dividing each module in the terminal application into a plurality of independent subsystems includes: dividing the terminal application into a plurality of modules according to code functions, and independently dividing the modules into a plurality of independent subsystems; the codes in the independent subsystems have no mutual dependency, and after the codes in one independent subsystem are added and deleted, the normal compiling of the codes of other independent subsystems in the terminal application is not affected.
Further, the service function part comprises various functions in the corresponding independent subsystems, and utilizes the established content in the various functions to process the input parameters; the business data management part is used for managing a plurality of data which are generated by corresponding independent subsystems in the process of program operation.
Specifically, the terminal application operates on the intelligent terminal, and a plurality of independent subsystems in the terminal do not have a dependency relationship with each other, namely, the independent subsystem of any one of the independent subsystems is edited, so that the operation of other independent subsystems is not influenced; the independent subsystems in the terminal application are respectively associated with the data center through pointers of corresponding data manager objects, namely, the pointers of the corresponding data manager objects are stored in the data center, and the data center establishes a communication relationship with the corresponding independent subsystems through the stored pointers of the corresponding data manager objects.
When a plurality of independent subsystems in the terminal application are respectively associated with the data center through pointers of corresponding data management objects, if any independent subsystem in the plurality of independent subsystems in the terminal application is cut, the data center deletes the pointers of the data management objects corresponding to the cut independent subsystems; the tailorable means that codes of a plurality of independent subsystems are not mutually dependent on other independent subsystems, and after the codes of one independent subsystem are deleted, the normal compiling operation of the codes of the rest independent subsystems in the terminal application is not influenced; if an independent subsystem is added in the terminal application, storing pointers of data management objects corresponding to the added independent subsystem into the data center; in the iteration process of items in the terminal application, new functions are iterated and old functions are removed, when one old function (independent subsystem) is not needed any more, clipping is needed, and when one new function (independent subsystem) is added, adding is needed.
A business function part and a business data management part exist in each independent subsystem, wherein the business function part comprises various functions in the corresponding independent subsystem, and the parameters imported by the established contents in the various functions are utilized to process; the business data management part comprises management of a plurality of data stored in the memory, which are generated in the running process of the program by the corresponding independent subsystem; program operation within the terminal application depends on binary data, which is initial data; and the data of the business data management part is the data generated in the operation process of the corresponding independent subsystem in the terminal application program.
Creation module 22: the terminal application is used for creating a data center in the terminal application and storing pointers of data management objects of the independent subsystems in the data center;
in the implementation process of the invention, the creating a data center in the terminal application and storing the pointer of the data management object of the independent subsystem in the data center comprises the following steps: creating a data center in the terminal application, and opening up a section of storage space for the data center in the terminal application; storing pointers of data management objects of the independent subsystems into the storage space of the data center.
Specifically, when a data center is created in a terminal application, a section of storage space is synchronously opened up for the created data center in the terminal application, and the storage space is used for the created data center, so that pointers of data management objects of independent subsystems can be stored in the storage space of the data center; thus, the data management objects of the independent subsystems in the terminal application are not actually stored in the storage space of the data center, but are stored in each independent subsystem, and the storage space of the data center is only used for storing pointers of the data management objects of the independent subsystems.
The receiving module 23: the terminal application is used for establishing communication interactive connection with a user based on the data center, receiving a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication;
in the implementation process of the invention, when the user performs communication interaction with the terminal application, the terminal application performs interaction with the terminal application through the data center, thus, the terminal application establishes communication interaction connection with the user through the data center and receives a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication, namely, the user needs to interact with the independent subsystems in the corresponding terminal application.
Data interaction module 24: and the data center is used for carrying out data interaction processing on the business data management of the corresponding independent subsystem based on the data interaction demand instruction, and the data interaction comprises data request or data writing.
In the implementation process of the invention, the data center performs data interaction processing on the basis of the data interaction demand instruction in the service data management of the corresponding independent subsystem, and the method comprises the following steps: the data center establishes a communication relationship with the corresponding independent subsystem by utilizing a pointer of the independent subsystem which needs to be communicated in the data interaction demand instruction; the data center obtains data interaction demand information of the data interaction demand instruction; and the data center performs data interaction processing with the independent subsystem establishing the communication relationship based on the data interaction demand information.
Further, the data center establishes a communication relationship with the corresponding independent subsystem by utilizing a pointer of the independent subsystem which needs to be communicated in the data interaction demand instruction; then the data center obtains the data interaction demand information of the data interaction demand instruction; and then carrying out data interaction processing through the data interaction requirement information and the independent subsystem establishing the communication relationship.
The user interacts (here, interaction includes user input data, user acquired data and the like) with a plurality of independent subsystems in the terminal application through the data center to serve as a communication hub, then establishes communication with each independent subsystem according to the requirements of the user, and obtains required data from the data management objects of each subsystem and returns the required data to the user; the interaction between the user of the terminal application and the application terminal application comprises clicking a button, various gestures (pull-down, dragging, double-finger zooming and the like), inputting by a (virtual) keyboard and the like, namely all actions of the user for operating the mobile phone software.
In the embodiment of the invention, from the perspective of the user, the data management is central, because the user is only in contact with the object of the data center; but from the point of view inside the terminal application, the data management is distributed, because the data within the terminal application is distributed in each independent subsystem according to each independent subsystem partition, and the data center holds not the data itself but pointers to the data management objects of each independent subsystem holding the data.
In the embodiment of the invention, the terminal application is independently divided into a plurality of independent subsystems, a data center is created at the same time, the independent subsystems are independent of each other, and an association relationship is respectively established with the data center, so that service isolation in the terminal application is realized, the independent subsystems are independent of each other, and meanwhile, the technical problems of code swelling and difficult maintenance caused by the management of data of the terminal application at the same place are avoided.
An embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements the terminal application data management method of any one of the foregoing embodiments. The computer readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS Memory, random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable ProgrammableRead-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., computer, cell phone), and may be read-only memory, magnetic or optical disk, etc.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the terminal application data management method of any one of the embodiments.
In addition, fig. 3 is a schematic structural composition diagram of a terminal device in the embodiment of the present invention.
The embodiment of the invention also provides terminal equipment, as shown in fig. 3. The terminal device comprises a processor 302, a memory 303, an input unit 304, a display unit 305 and the like. It will be appreciated by those skilled in the art that the device architecture shown in fig. 3 does not constitute a limitation of all devices, and may include more or fewer components than shown, or may combine certain components. The memory 303 may be used to store an application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal memory or external memory, or include both internal memory and external memory. The internal memory may include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, floppy disk, ZIP disk, U-disk, tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory disclosed herein is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of a signal and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel may collect touch operations on or near the user (e.g., the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, mouse, joystick, etc. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, performs various functions and processes data by running or executing software programs and/or modules stored in the memory 303, and invoking data stored in the memory.
As an embodiment, the terminal device includes: the system comprises one or more processors 302, a memory 303, one or more application programs 301, wherein the one or more application programs 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and the one or more application programs 301 are configured to perform the terminal application data management method in any of the above embodiments.
In the embodiment of the invention, the terminal application is independently divided into a plurality of independent subsystems, a data center is created at the same time, the independent subsystems are independent of each other, and an association relationship is respectively established with the data center, so that service isolation in the terminal application is realized, the independent subsystems are independent of each other, and meanwhile, the technical problems of code swelling and difficult maintenance caused by the management of data of the terminal application at the same place are avoided.
In addition, the foregoing details of the method for managing terminal application data based on the data center and the related devices provided by the embodiments of the present invention are presented in the following description, and specific examples should be adopted to illustrate the principles and embodiments of the present invention, where the foregoing description of the embodiments is only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A data center-based terminal application data management method, the method comprising:
each module in the terminal application is independently divided into a plurality of independent subsystems, wherein the independent subsystems exist in the application terminal, and each independent subsystem comprises a service function part and a service data management part;
creating a data center in the terminal application, and storing pointers of data management objects of the independent subsystems in the data center;
the terminal application establishes communication interactive connection with a user based on the data center, and receives a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication;
and the data center carries out data interaction processing on the business data management of the corresponding independent subsystem based on the data interaction demand instruction, wherein the data interaction comprises data request or data writing.
2. The terminal application data management method according to claim 1, wherein there is no dependency between individual subsystems of a plurality of the terminal applications; and the independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects.
3. The terminal application data management method according to claim 2, wherein the independent subsystems of the trunk in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects, and the method comprises:
when a plurality of independent subsystems in the terminal application are respectively associated with the data center through pointers of the corresponding data management objects, if any independent subsystem in the plurality of independent subsystems in the terminal application is cut, the data center deletes the pointers of the data management objects corresponding to the cut independent subsystems;
if an independent subsystem is added in the terminal application, the pointers of the data management objects corresponding to the added independent subsystem are stored in the data center.
4. The method for managing data of a terminal application according to claim 1, wherein the step of independently dividing each module in the terminal application into a plurality of independent subsystems comprises:
dividing the terminal application into a plurality of modules according to code functions, and independently dividing the modules into a plurality of independent subsystems;
there is no interdependence between codes in the several independent subsystems.
5. The terminal application data management method according to claim 1, wherein the service function part includes various functions in the corresponding independent subsystems, and processes incoming parameters using predetermined contents in the various functions;
the business data management part is used for managing a plurality of data which are generated by corresponding independent subsystems in the process of program operation.
6. The terminal application data management method according to claim 1, wherein the creating a data center within the terminal application and storing pointers of data management objects of the independent subsystems within the data center comprises:
creating a data center in the terminal application, and opening up a section of storage space for the data center in the terminal application;
storing pointers of data management objects of the independent subsystems into the storage space of the data center.
7. The terminal application data management method according to claim 1, wherein the data center performs data interaction processing on the basis of the data interaction demand instruction in service data management of the corresponding independent subsystem, and the method comprises the following steps:
the data center establishes a communication relationship with the corresponding independent subsystem by utilizing a pointer of the independent subsystem which needs to be communicated in the data interaction demand instruction;
the data center obtains data interaction demand information of the data interaction demand instruction;
and the data center performs data interaction processing with the independent subsystem establishing the communication relationship based on the data interaction demand information.
8. A data center-based terminal application data management apparatus, the apparatus comprising:
and (3) an independent module: the system comprises an application terminal, an independent subsystem and a service data management part, wherein the application terminal is used for receiving a service data management request from the service data management part;
the creation module: the terminal application is used for creating a data center in the terminal application and storing pointers of data management objects of the independent subsystems in the data center;
and a receiving module: the terminal application is used for establishing communication interactive connection with a user based on the data center, receiving a data interaction demand instruction of the user, wherein the data interaction demand instruction comprises pointers of independent subsystems needing communication;
and a data interaction module: and the data center is used for carrying out data interaction processing on the business data management of the corresponding independent subsystem based on the data interaction demand instruction, and the data interaction comprises data request or data writing.
9. A terminal device comprising a processor and a memory, characterized in that the processor runs a computer program or code stored in the memory implementing a terminal application data management method according to any of claims 1 to 7.
10. A computer readable storage medium storing a computer program or code which, when executed by a processor, implements the terminal application data management method according to any one of claims 1 to 7.
CN202311270803.4A 2023-09-28 2023-09-28 Terminal application data management method and related device based on data center Pending CN117032589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311270803.4A CN117032589A (en) 2023-09-28 2023-09-28 Terminal application data management method and related device based on data center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311270803.4A CN117032589A (en) 2023-09-28 2023-09-28 Terminal application data management method and related device based on data center

Publications (1)

Publication Number Publication Date
CN117032589A true CN117032589A (en) 2023-11-10

Family

ID=88641356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311270803.4A Pending CN117032589A (en) 2023-09-28 2023-09-28 Terminal application data management method and related device based on data center

Country Status (1)

Country Link
CN (1) CN117032589A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704802B1 (en) * 1996-03-27 2004-03-09 Dell Usa, Lp Method and system for communicating between independent software modules
CN111090430A (en) * 2019-11-19 2020-05-01 许继集团有限公司 Application software development system under embedded system
CN112000670A (en) * 2020-08-20 2020-11-27 厦门亿联网络技术股份有限公司 Multithreading program data unified management method and system and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704802B1 (en) * 1996-03-27 2004-03-09 Dell Usa, Lp Method and system for communicating between independent software modules
CN111090430A (en) * 2019-11-19 2020-05-01 许继集团有限公司 Application software development system under embedded system
CN112000670A (en) * 2020-08-20 2020-11-27 厦门亿联网络技术股份有限公司 Multithreading program data unified management method and system and electronic equipment

Similar Documents

Publication Publication Date Title
US9548942B2 (en) Linking instances within a cloud computing environment
US7934162B2 (en) Running state migration of platform specific graphical user interface widgets between heterogeneous device platforms
CN100435094C (en) System and method for building mixed mode execution environment for component applications
CN109902255B (en) Page mixed browsing record generation method, device, equipment and storage medium
CN103370689A (en) Cross-environment application compatibility
US20030063120A1 (en) Scalable graphical user interface architecture
US20030081003A1 (en) System and method to facilitate analysis and removal of errors from an application
WO2001077822A2 (en) Method and computer program for rendering assemblies objects on user-interface to present data of application
CN101888320A (en) Enhanced network adapter framework
CN102054217A (en) Entity morphing in metamodel-based tools
CN113032273B (en) Application program debugging method and device, computer equipment and storage medium
US20230401214A1 (en) Graph database and methods with improved functionality
CN113268260A (en) Routing method and device for web front end
CN112528179A (en) Two-dimensional code processing method and system, electronic device and storage medium
CN111611475A (en) Information batch sending method and device and electronic equipment
CN117032589A (en) Terminal application data management method and related device based on data center
CN109117351B (en) Front-end display implementation method for Docker container cloud host and Dashboard
CN116301785A (en) Method and device for realizing custom text editor component
CN111723134A (en) Information processing method, information processing device, electronic equipment and storage medium
CN110134888B (en) Tree structure node retrieval method, device, storage medium and server
US20210357419A1 (en) Preventing dbms deadlock by eliminating shared locking
CN113110846A (en) Method and device for acquiring environment variable
CN102436446A (en) Method and device for updating abstract structure
CN112988139A (en) Method and device for developing event processing file
CN116996704B (en) Single-instance container-based data management method and related device for multiple living rooms

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination