Disclosure of Invention
Aiming at the defects in the prior art, the embodiment of the invention provides a data processing system, a data processing method, a data processing terminal and a data processing medium of a view library system, which do not need an index layer, greatly reduce the hardware resource requirement, have high efficiency under the condition of large data volume and are stable in distributed deployment.
In a first aspect, an embodiment of the present invention provides a data processing system of a view library system, including: an interface application unit, an interface service unit, an intermediate data processing unit and a bottom database unit,
the interface application unit is used for providing application services;
the interface service unit is used for providing interface service and transmitting data;
the intermediate data processing unit is used for counting the data sources in storage in real time and providing data subscription service for the outside;
and the bottom-layer database unit stores data by adopting a column type storage method.
In a second aspect, a data processing method of a view library system provided in an embodiment of the present invention is applicable to the system described in the foregoing embodiment, and the method includes:
the interface application unit displays the application service;
the interface service unit provides interface service for the outside and performs data transmission;
the intermediate data processing unit counts the data sources in storage in real time and provides data subscription service for the outside;
the bottom database unit stores data in a column type storage mode.
In a third aspect, an intelligent terminal provided in an embodiment of the present invention includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method steps described in the foregoing embodiment.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method steps described in the above embodiments.
The invention has the beneficial effects that:
the view library system meets the industrial standard, an index unit is not required to be arranged in the data processing process, the hardware resource requirement is greatly reduced, the efficiency is high under the condition of large data volume, and the distributed deployment is stable.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
As shown in fig. 1, there is a schematic structural diagram illustrating a data processing system of a view library system according to a first embodiment of the present invention, where the system includes: the interface application unit is used for providing application service; the interface application unit is mainly used for providing a visual display interface for a user. Firstly, when nginx receives an http request, finding a corresponding server through a configuration file, then matching all locations in the server, giving a request of suffix of a file by php to php-fpm service for processing through a location instruction, selecting and connecting php-fpm to a fastcgi subprocess, sending an environment variable and a standard input to the fastcgi subprocess, returning a standard output and error information after the fastgi subprocess finishes processing, and when the fastcgi subprocess closes the connection, finishing the processing of the current request. The interface service unit is used for providing interface service and transmitting data. After receiving a request sent from the interface application unit or the third-party application, the flash service of the interface service unit judges the type of the request, if the request is a query request, the interface service unit communicates with the bottom database unit, and corresponding data is returned to the interface application unit or the third-party application; if the request is a data submission request, the submitted data is subjected to cleaning and formatting and then forwarded to the intermediate data processing unit. The intermediate data processing unit is used for counting the data sources in storage in real time and providing data subscription service for the outside; the intermediate processing unit mainly adopts kafka and redis as message middleware, a series of python services are used for consuming and maintaining the data received and processed by the whole system, the data are efficiently stored in a database, and data subscription and distribution services are provided for the outside. And the bottom layer data unit stores data by adopting a column type storage method. The bottom layer data unit adopts srv _ db of the company as a database to store data sent by various services of the intermediate message processing unit, and maintains (inquires, deletes and updates) the stored historical data according to instructions sent by the interface service unit.
In this embodiment, the interface application unit adopts nginx + php to build a web system, the interface service unit adopts python flash framework for development, and is started by gunitron, gunicorn is a high-performance python wsgi Unix Http Server of Unix, and provides high-performance and high-concurrency interface service. The intermediate data processing unit adopts kafka and redis as message middleware, wherein the redis mainly performs real-time statistics, and the kafka is used as a warehousing data source inside the program to provide data subscription service for the outside. The underlying database unit is stored by srv _ db, and is a database stored in a columnar mode, so that high-performance query and mass data storage are met. In the embodiment, an index layer is not needed, hardware resource requirements are greatly reduced, efficiency is not lower than that of es under the condition of large data volume, database falling is fast, distributed deployment is stable, stable interface service can be provided for the outside by means of flash frameworks of kafka and python, and internal data processing is efficient.
The data processing system of the view library system provided by the embodiment of the invention meets the industrial standard, the system does not need to be provided with an index unit, the hardware resource requirement is greatly reduced, the efficiency is high under the condition of large data volume, and the distributed deployment is stable.
In the first embodiment described above, a data processing system of a view library system is provided, and correspondingly, the present application also provides a data processing method of the view library system. Please refer to fig. 2, which is a flowchart illustrating a data processing method of a view library system according to a second embodiment of the present invention. Since the method embodiment is basically similar to the device embodiment, the description is simple, and the relevant points can be referred to the partial description of the device embodiment.
As shown in fig. 2, there is shown a flowchart of a data processing method of a view library system according to another embodiment of the present invention, which is applied to the data processing system of the view library system described in the first embodiment, and the method includes the following steps:
s1, displaying application service by the interface application unit;
s2, the interface service unit provides interface service for external use to transmit data;
s3, the intermediate data processing unit counts the warehousing data sources in real time and provides data subscription service for the outside;
and S4, storing the data by the bottom database unit in a columnar storage mode.
In this embodiment, the interface application unit adopts nginx + php to build a web system, the interface service unit adopts python flash framework for development, and is started by gunitron, gunicorn is a high-performance python wsgi Unix Http Server of Unix, and provides high-performance and high-concurrency interface service. The intermediate data processing unit adopts kafka and redis as message middleware, wherein the redis mainly performs real-time statistics, and the kafka is used as a warehousing data source inside the program to provide data subscription service for the outside. The underlying database unit is stored by srv _ db, and is a database stored in a columnar mode, so that high-performance query and mass data storage are met. In the embodiment, an index layer is not needed, hardware resource requirements are greatly reduced, efficiency is not lower than that of es under the condition of large data volume, database falling is fast, distributed deployment is stable, stable interface service can be provided for the outside by means of flash frameworks of kafka and python, and internal data processing is efficient.
According to the data processing method of the view library system, the view library system meets the industrial standard, an index unit is not required to be arranged in the data processing process, the hardware resource requirement is greatly reduced, the efficiency is high under the condition of large data volume, and the distributed deployment is stable.
As shown in fig. 3, it is shown that another embodiment of the present invention provides an intelligent terminal structure schematic diagram, the terminal includes a processor, an input device, an output device, and a memory, the processor, the input device, the output device, and the memory are connected with each other, the memory is used for storing a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method described in the first embodiment.
It should be understood that in the embodiments of the present invention, the Processor may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input devices may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output devices may include a display (L CD, etc.), a speaker, etc.
The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information.
In a specific implementation, the processor, the input device, and the output device described in the embodiments of the present invention may execute the implementation described in the method embodiments provided in the embodiments of the present invention, and may also execute the implementation described in the system embodiments in the embodiments of the present invention, which is not described herein again.
The invention also provides an embodiment of a computer-readable storage medium, in which a computer program is stored, which computer program comprises program instructions that, when executed by a processor, cause the processor to carry out the method described in the above embodiment.
The computer readable storage medium may be an internal storage unit of the terminal described in the foregoing embodiment, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.