CN117216142A - Service data processing method, device and system, electronic equipment and storage medium - Google Patents
Service data processing method, device and system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117216142A CN117216142A CN202311176601.3A CN202311176601A CN117216142A CN 117216142 A CN117216142 A CN 117216142A CN 202311176601 A CN202311176601 A CN 202311176601A CN 117216142 A CN117216142 A CN 117216142A
- Authority
- CN
- China
- Prior art keywords
- server
- business data
- data processing
- target
- business
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical field
本发明涉及数据处理技术领域,特别是涉及一种业务数据的处理方法、一种业务数据的处理装置、一种业务数据的处理系统以及一种电子设备和一种计算机可读存储介质。The present invention relates to the technical field of data processing, and in particular to a business data processing method, a business data processing device, a business data processing system, an electronic device, and a computer-readable storage medium.
背景技术Background technique
目前,视联网的应用越来越广泛,相应地,视联网中也会产生不同业务的业务数据。若需要对视联网中的业务数据进行统计,通常需要人工获取业务数据之后再进行统计处理。At present, the application of video network is becoming more and more extensive. Accordingly, business data of different businesses will also be generated in video network. If you need to collect statistics on business data in the video network, you usually need to manually obtain the business data and then perform statistical processing.
在业务数据种类繁多、数量庞大的情况下,人工获取业务数据并统计的方式需要消耗大量的人工成本,导致业务数据的统计效率低,而且,容易出现统计出错的问题。When there are many types and huge quantities of business data, manual acquisition and statistics of business data consumes a lot of labor costs, resulting in low statistical efficiency of business data and prone to statistical errors.
发明内容Contents of the invention
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种业务数据的处理方法、一种业务数据的处理装置和一种业务数据的处理系统。In view of the above problems, embodiments of the present invention are proposed to provide a business data processing method, a business data processing device, and a business data processing system that overcome the above problems or at least partially solve the above problems.
为了解决上述问题,本发明实施例公开了一种业务数据的处理方法,应用于第一服务器,所述方法包括:从业务数据的处理系统获取业务数据处理通知命令包;解析所述业务数据处理通知命令包得到解析结果;根据所述解析结果从目标服务器获取目标业务数据;传输所述目标业务数据至所述业务数据的处理系统,以使所述业务数据的处理系统对所述目标业务数据进行处理。In order to solve the above problem, an embodiment of the present invention discloses a business data processing method, which is applied to the first server. The method includes: obtaining the business data processing notification command packet from the business data processing system; parsing the business data processing Notify the command package to obtain the parsing result; obtain the target business data from the target server according to the parsing result; transmit the target business data to the processing system of the business data, so that the processing system of the business data can process the target business data for processing.
可选地,所述解析所述业务数据处理通知命令包得到解析结果,包括:解析所述业务数据处理通知命令包得到所述目标服务器的标识列表。Optionally, parsing the business data processing notification command packet to obtain a parsing result includes: parsing the business data processing notification command packet to obtain an identification list of the target server.
可选地,所述根据所述解析结果从目标服务器获取目标业务数据,包括:当所述标识列表包含所述第一服务器和第二服务器的标识信息时,将所述业务数据处理通知命令包转发至所述第二服务器;从所述第一服务器和所述第二服务器获取所述目标业务数据。Optionally, obtaining the target service data from the target server according to the parsing result includes: when the identification list contains the identification information of the first server and the second server, notifying the service data processing command package Forwarding to the second server; obtaining the target service data from the first server and the second server.
可选地,所述将所述业务数据处理通知命令包转发至所述第二服务器,包括:若所述第二服务器为所述第一服务器的上级级联服务器,则将所述标识列表中所述第一服务器的下级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至所述第二服务器;若所述第二服务器为所述第一服务器的下级级联服务器,则将所述标识列表中所述第一服务器的上级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至所述第二服务器。Optionally, forwarding the business data processing notification command packet to the second server includes: if the second server is a superior cascade server of the first server, then After the identification information of the subordinate cascade server of the first server is deleted, the business data processing notification command packet is forwarded to the second server; if the second server is a subordinate cascade server of the first server, then After deleting the identification information of the upper-level cascade server of the first server in the identification list, the business data processing notification command packet is forwarded to the second server.
可选地,所述从所述第一服务器和所述第二服务器获取所述目标业务数据,包括:接收所述第二服务器逐级转发的第二业务数据;将来源于所述第一服务器的第一业务数据与所述第二业务数据进行汇总得到所述目标业务数据。Optionally, obtaining the target service data from the first server and the second server includes: receiving second service data forwarded step by step by the second server; The first service data and the second service data are aggregated to obtain the target service data.
本发明实施例还公开了一种业务数据的处理方法,应用于业务数据的处理系统,所述方法包括:生成并传输业务数据处理通知命令包至第一服务器;接收来源于所述第一服务器的目标业务数据,并对所述目标业务数据进行处理;其中,所述目标业务数据为所述第一服务器根据所述业务数据处理通知命令包的解析结果,从目标服务器获取得到。Embodiments of the present invention also disclose a business data processing method, which is applied to a business data processing system. The method includes: generating and transmitting a business data processing notification command packet to a first server; receiving data from the first server. The target business data is processed, and the target business data is processed; wherein the target business data is obtained from the target server by the parsing result of the first server according to the business data processing notification command packet.
本发明实施例还公开了一种业务数据的处理装置,应用于第一服务器,所述装置包括:命令包获取模块,用于从业务数据的处理系统获取业务数据处理通知命令包;命令包解析模块,用于解析所述业务数据处理通知命令包得到解析结果;业务数据获取模块,用于根据所述解析结果从目标服务器获取目标业务数据;业务数据传输模块,用于传输所述目标业务数据至所述业务数据的处理系统,以使所述业务数据的处理系统对所述目标业务数据进行处理。Embodiments of the present invention also disclose a business data processing device, which is applied to the first server. The device includes: a command packet acquisition module, used to acquire the business data processing notification command packet from the business data processing system; command packet parsing Module, used to parse the business data processing notification command packet to obtain the parsing result; business data acquisition module, used to obtain the target business data from the target server according to the parsing result; business data transmission module, used to transmit the target business data to the business data processing system, so that the business data processing system processes the target business data.
可选地,所述命令包解析模块,用于解析所述业务数据处理通知命令包得到所述目标服务器的标识列表。Optionally, the command packet parsing module is configured to parse the business data processing notification command packet to obtain the identification list of the target server.
可选地,所述业务数据获取模块,包括:命令包转发模块,用于当所述标识列表包含所述第一服务器和第二服务器的标识信息时,将所述业务数据处理通知命令包转发至所述第二服务器;目标业务数据获取模块,用于从所述第一服务器和所述第二服务器获取所述目标业务数据。Optionally, the business data acquisition module includes: a command packet forwarding module, configured to forward the business data processing notification command packet when the identification list contains the identification information of the first server and the second server. to the second server; a target service data acquisition module, configured to acquire the target service data from the first server and the second server.
可选地,所述命令包转发模块,用于若所述第二服务器为所述第一服务器的上级级联服务器,则将所述标识列表中所述第一服务器的下级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至所述第二服务器;若所述第二服务器为所述第一服务器的下级级联服务器,则将所述标识列表中所述第一服务器的上级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至所述第二服务器。Optionally, the command packet forwarding module is configured to, if the second server is an upper-level cascade server of the first server, add the identifier of the lower-level cascade server of the first server in the identifier list to After the information is deleted, the business data processing notification command packet is forwarded to the second server; if the second server is a subordinate cascade server of the first server, the first server's name in the identification list is After the identification information of the upper-level cascade server is deleted, the service data processing notification command packet is forwarded to the second server.
可选地,所述目标业务数据获取模块,包括:逐级业务数据接收模块,用于接收所述第二服务器逐级转发的第二业务数据;业务数据汇总模块,用于将来源于所述第一服务器的第一业务数据与所述第二业务数据进行汇总得到所述目标业务数据。Optionally, the target business data acquisition module includes: a level-by-level business data receiving module, used to receive the second business data forwarded level by level by the second server; a business data summary module, used to aggregate the data from the The first service data of the first server and the second service data are aggregated to obtain the target service data.
本发明实施例还公开了一种业务数据的处理系统,所述系统包括:命令包生成模块,用于生成并传输业务数据处理通知命令包至第一服务器;业务数据处理模块,用于接收来源于所述第一服务器的目标业务数据,并对所述目标业务数据进行处理;其中,所述目标业务数据为所述第一服务器根据所述业务数据处理通知命令包的解析结果,从目标服务器获取得到。Embodiments of the present invention also disclose a business data processing system. The system includes: a command packet generation module for generating and transmitting a business data processing notification command packet to the first server; a business data processing module for receiving source data. Target business data of the first server, and process the target business data; wherein, the target business data is the parsing result of the notification command packet processed by the first server based on the business data, from the target server Get get.
本发明实施例还公开了一种电子设备,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述电子设备执行如上所述的业务数据的处理方法。Embodiments of the present invention also disclose an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon. When executed by the one or more processors, The electronic device is caused to execute the business data processing method as described above.
本发明实施例还公开了一种计算机可读存储介质,其存储的计算机程序使得处理器执行如上所述的业务数据的处理方法。An embodiment of the present invention also discloses a computer-readable storage medium, which stores a computer program that causes the processor to execute the business data processing method as described above.
本发明实施例包括以下优点:Embodiments of the present invention include the following advantages:
本发明实施例提供的业务数据的处理方案,应用于第一服务器。该第一服务器从业务数据的处理系统获取业务数据处理通知命令包,然后解析业务数据处理通知命令包得到解析结果,再根据解析结果从目标服务器获取目标业务数据,最终,传输目标业务数据至业务数据的处理系统。The business data processing solution provided by the embodiment of the present invention is applied to the first server. The first server obtains the business data processing notification command packet from the business data processing system, then parses the business data processing notification command packet to obtain the parsing result, and then obtains the target business data from the target server based on the parsing result, and finally transmits the target business data to the business Data processing system.
本发明实施例提供的业务数据的处理方案应用于第一服务器,利用自动化技术来处理业务数据,相对于人工统计业务数据而言,可以自动执行业务数据的处理任务,无需等待人工干预,具有更高的处理效率,大大减少了业务数据处理的时间。通过解析业务数据处理通知命令包和从目标服务器获取目标业务数据,提高了业务数据的准确性和一致性,减少了人为错误的可能性,确保了业务数据的处理质量。此外,适用于大规模的业务数据处理,而不会出现人工疲劳或效率下降的情况。The business data processing solution provided by the embodiment of the present invention is applied to the first server and utilizes automation technology to process business data. Compared with manual statistics of business data, the business data processing task can be automatically performed without waiting for manual intervention, and has more advantages. High processing efficiency greatly reduces business data processing time. By parsing the business data processing notification command package and obtaining the target business data from the target server, the accuracy and consistency of the business data are improved, the possibility of human error is reduced, and the quality of business data processing is ensured. In addition, it is suitable for large-scale business data processing without manual fatigue or loss of efficiency.
综上所述,本发明实施例提供的业务数据的处理方案在提高效率、准确性等方面相对于人工统计业务数据具有显著的有益效果。To sum up, the business data processing solution provided by the embodiment of the present invention has significant beneficial effects in improving efficiency, accuracy, etc. compared with manual statistics of business data.
附图说明Description of drawings
图1是本发明实施例的一种业务数据的处理方法的步骤流程图;Figure 1 is a step flow chart of a business data processing method according to an embodiment of the present invention;
图2是本发明实施例的另一种业务数据的处理方法的步骤流程图;Figure 2 is a step flow chart of another business data processing method according to an embodiment of the present invention;
图3是本发明实施例的业务数据的处理系统的运行流程示意图;Figure 3 is a schematic diagram of the operation flow of the business data processing system according to the embodiment of the present invention;
图4是本发明实施例的一种业务统计方案的结构示意图;Figure 4 is a schematic structural diagram of a business statistics solution according to an embodiment of the present invention;
图5是本发明实施例的一种业务统计方案的流程示意图;Figure 5 is a schematic flow chart of a business statistics solution according to an embodiment of the present invention;
图6是本发明实施例的一种业务数据的处理装置的结构框图;Figure 6 is a structural block diagram of a business data processing device according to an embodiment of the present invention;
图7是本发明实施例的一种业务数据的处理系统的结构框图。Figure 7 is a structural block diagram of a service data processing system according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
本发明实施例提供的业务数据的处理方案应用于第一服务器,用于处理业务数据。首先,从业务数据处理系统获取业务数据处理通知命令包(简称命令包)。命令包包含了业务数据处理的指令和参数等。解析命令包,将其转化为可操作的解析结果。接下来,根据解析结果,与目标服务器进行通信,从目标服务器中获取所需的目标业务数据。最后,获取到的目标业务数据会被传输回业务数据处理系统,供进一步的分析和处理使用。本发明实施例大幅提高了业务数据处理的效率和准确性,同时减少了对人工干预的依赖,使业务数据的处理流程更为自动化和可控。The business data processing solution provided by the embodiment of the present invention is applied to the first server to process the business data. First, obtain the business data processing notification command package (command package for short) from the business data processing system. The command package contains instructions and parameters for business data processing. Parse command packages and convert them into actionable parsing results. Next, based on the parsing results, communicate with the target server and obtain the required target business data from the target server. Finally, the obtained target business data will be transmitted back to the business data processing system for further analysis and processing. The embodiments of the present invention greatly improve the efficiency and accuracy of business data processing, while reducing the reliance on manual intervention, making the business data processing process more automated and controllable.
当本发明实施例提供的业务数据的处理方法应用于视联网时,第一服务器可以为视联网的核心服务器。视联网的所有业务执行均基于核心服务器。业务数据的处理系统向核心服务器发送业务数据处理通知命令包。核心服务器对业务数据处理通知命令包进行解析得到解析结果。然后,核心服务器可以根据解析结果从目标服务器(当前核心服务器和/或其他核心服务器)获取目标业务数据。最终,核心服务器将目标业务数据返回至业务数据的处理系统。上述其他核心服务器可以为与当前核心服务器级联的核心服务器。即其他核心服务器可以为当前核心服务器的上级级联核心服务器,其他核心服务器也可以为当前核心服务器的下级级联核心服务器。When the service data processing method provided by the embodiment of the present invention is applied to the video network, the first server may be the core server of the video network. All business execution of the video network is based on the core server. The business data processing system sends a business data processing notification command packet to the core server. The core server parses the business data processing notification command package to obtain the parsing result. Then, the core server can obtain the target business data from the target server (current core server and/or other core servers) based on the parsing results. Finally, the core server returns the target business data to the business data processing system. The above-mentioned other core servers may be core servers cascaded with the current core server. That is, other core servers can be the upper-level cascading core servers of the current core server, and other core servers can also be the lower-level cascading core servers of the current core server.
参照图1,示出了本发明实施例的一种业务数据的处理方法的步骤流程图。该业务数据的处理方法可以应用于第一服务器,该业务数据的处理方法具体可以包括如下步骤:Referring to FIG. 1 , a flow chart of steps of a business data processing method according to an embodiment of the present invention is shown. The business data processing method may be applied to the first server. The business data processing method may specifically include the following steps:
步骤101,从业务数据的处理系统获取业务数据处理通知命令包。Step 101: Obtain the business data processing notification command package from the business data processing system.
在本发明的实施例中,业务数据的处理系统可以生成业务数据处理通知命令包。该命令包用于获取业务数据并对业务数据进行相关处理。该命令包可以包含有关如何处理业务数据的指令和参数等等。这些指令和参数可以包括数据处理的类型(例如,统计、筛选、分组),时间范围,数据源的位置等信息。该命令包可以采用标准化的格式,如JavaScript对象表示法(JavaScript Object Notation,简称JSON)或可扩展标记语言(ExtensibleMarkup Language,简称XML),以便于解析和处理。In the embodiment of the present invention, the service data processing system may generate a service data processing notification command package. This command package is used to obtain business data and perform related processing on the business data. The command package can contain instructions and parameters on how to process business data, etc. These instructions and parameters can include the type of data processing (for example, statistics, filtering, grouping), time range, location of the data source and other information. The command package can be in a standardized format, such as JavaScript Object Notation (JSON for short) or Extensible Markup Language (XML for short), to facilitate parsing and processing.
步骤102,解析业务数据处理通知命令包得到解析结果。Step 102: Parse the business data processing notification command package to obtain the parsing result.
在本发明的实施例中,第一服务器可以利用解析器或解析算法来处理接收到的业务数据处理通知命令包。解析的目标是将命令包的内容转化为可理解和可操作的形式,通常以数据结构或对象的形式表示。解析结果可以包括执行业务数据处理任务所需的全部信息或部分信息,包括但不限于:数据处理类型、时间范围、目标服务器地址等。In an embodiment of the present invention, the first server may use a parser or parsing algorithm to process the received business data processing notification command packet. The goal of parsing is to convert the contents of the command package into an understandable and operable form, usually represented in the form of a data structure or object. The parsing results may include all or part of the information required to perform business data processing tasks, including but not limited to: data processing type, time range, target server address, etc.
步骤103,根据解析结果从目标服务器获取目标业务数据。Step 103: Obtain target business data from the target server according to the parsing results.
在本发明的实施例中,第一服务器利用解析结果中包含的信息,确定目标服务器并与目标服务器进行通信。通常情况下,第一服务器与目标服务器之间的通信是基于网络协议进行的,可能涉及到超文本传输协议(Hypertext Transfer Protocol,简称HTTP)、文件传输协议(File Transfer Protocol,简称FTP)、安全文件传输协议(Secure FileTransfer Protocol,简称SFTP)等通信协议。通过与目标服务器的通信,第一服务器请求并获取所需的目标业务数据。目标服务器可能会位于本地或远程位置,取决于目标业务数据的来源。获取到的目标业务数据可以是数据库记录、文件、应用程序编程接口(ApplicationProgramming Interface,简称API)响应等。In the embodiment of the present invention, the first server uses the information contained in the parsing result to determine the target server and communicate with the target server. Normally, the communication between the first server and the target server is based on network protocols, which may involve Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), security Communication protocols such as Secure FileTransfer Protocol (SFTP). Through communication with the target server, the first server requests and obtains the required target business data. The target server may be located in a local or remote location, depending on the source of the target business data. The obtained target business data can be database records, files, application programming interface (Application Programming Interface, API for short) responses, etc.
步骤104,传输目标业务数据至业务数据的处理系统,以使业务数据的处理系统对目标业务数据进行处理。Step 104: Transmit the target business data to the business data processing system, so that the business data processing system processes the target business data.
在本发明的实施例中,第一服务器将从目标服务器获取的目标业务数据传输回到业务数据的处理系统。传输过程通常也是通过网络进行的,使用适当的数据传输协议。传输的目标业务数据可能需要进行加密或压缩,以确保目标业务数据的安全性和传输效率。一旦目标业务数据传输完成,业务数据的处理系统就可以开始进一步的数据处理、分析、存储或报告生成等操作,以满足特定的业务需求。In the embodiment of the present invention, the first server transmits the target business data obtained from the target server back to the business data processing system. The transfer is usually also over a network, using an appropriate data transfer protocol. The transmitted target business data may need to be encrypted or compressed to ensure the security and transmission efficiency of the target business data. Once the target business data transmission is completed, the business data processing system can start further data processing, analysis, storage or report generation operations to meet specific business needs.
本发明实施例提供的业务数据的处理方案,应用于第一服务器。该第一服务器从业务数据的处理系统获取业务数据处理通知命令包,然后解析业务数据处理通知命令包得到解析结果,再根据解析结果从目标服务器获取目标业务数据,最终,传输目标业务数据至业务数据的处理系统。The business data processing solution provided by the embodiment of the present invention is applied to the first server. The first server obtains the business data processing notification command packet from the business data processing system, then parses the business data processing notification command packet to obtain the parsing result, and then obtains the target business data from the target server based on the parsing result, and finally transmits the target business data to the business Data processing system.
本发明实施例提供的业务数据的处理方案应用于第一服务器,利用自动化技术来处理业务数据,相对于人工统计业务数据而言,可以自动执行业务数据的处理任务,无需等待人工干预,具有更高的处理效率,大大减少了业务数据处理的时间。通过解析业务数据处理通知命令包和从目标服务器获取目标业务数据,提高了业务数据的准确性和一致性,减少了人为错误的可能性,确保了业务数据的处理质量。此外,适用于大规模的业务数据处理,而不会出现人工疲劳或效率下降的情况。The business data processing solution provided by the embodiment of the present invention is applied to the first server and utilizes automation technology to process business data. Compared with manual statistics of business data, the business data processing task can be automatically performed without waiting for manual intervention, and has more advantages. High processing efficiency greatly reduces business data processing time. By parsing the business data processing notification command package and obtaining the target business data from the target server, the accuracy and consistency of the business data are improved, the possibility of human error is reduced, and the quality of business data processing is ensured. In addition, it is suitable for large-scale business data processing without manual fatigue or loss of efficiency.
综上所述,本发明实施例提供的业务数据的处理方案在提高效率、准确性等方面相对于人工统计业务数据具有显著的有益效果。To sum up, the business data processing solution provided by the embodiment of the present invention has significant beneficial effects in improving efficiency, accuracy, etc. compared with manual statistics of business data.
在本发明的一种示例性实施例中,解析业务数据处理通知命令包得到解析结果的一种实施方式为,解析业务数据处理通知命令包得到目标服务器的标识列表。其中,目标服务器的标识列表可以作为解析结果或者解析结果的一部分。目标服务器的标识列表可以包含目标服务器的标识信息。在业务数据的处理流程中,解析业务数据处理通知命令包是一项关键任务。这个过程涉及将命令包中的数据进行解码和分析,以从中提取所需的信息。在实际应用中,标识列表通常包含有关目标服务器的标识信息,如IP地址、主机名、端口号等。In an exemplary embodiment of the present invention, an implementation manner of parsing the business data processing notification command packet to obtain the parsing result is to parse the business data processing notification command packet to obtain the identification list of the target server. Among them, the identification list of the target server can be used as the parsing result or a part of the parsing result. The target server's identification list can contain identification information for the target server. In the business data processing process, parsing the business data processing notification command package is a key task. This process involves decoding and analyzing the data in the command packet to extract the required information from it. In practical applications, the identification list usually contains identification information about the target server, such as IP address, host name, port number, etc.
举例说明:假设一个公司的业务数据处理系统需要从多个目标服务器中获取目标业务数据。业务数据处理系统通过一个命令包将获取目标业务数据的通知传递给核心服务器,该命令包可能包含如下内容:操作码(获取业务数据)、当前统计用户所在核心服务器的标识信息、用户标识、目标服务器的标识列表(为空表示所有核心服务器均为目标服务器)、业务数据类型(1为会议业务;2为直播业务;3为可视电话业务)、数据上报方式(0为关闭上报;1为即时上报;2为视联网空闲时主动上报;3为指定时间统一上报)、上报时间等。其中,若数据上报方式为0,表示关闭核心服务器的业务数据统计功能,核心服务器不再缓存、统计和上报业务数据。For example: Suppose a company's business data processing system needs to obtain target business data from multiple target servers. The business data processing system delivers the notification of obtaining the target business data to the core server through a command package. The command package may contain the following content: operation code (obtaining business data), identification information of the core server where the current statistical user is located, user ID, target Server identification list (empty means all core servers are target servers), business data type (1 is conference business; 2 is live broadcast business; 3 is video phone business), data reporting method (0 means closed reporting; 1 Immediate reporting; 2 means active reporting when the network is idle; 3 means unified reporting at a designated time), reporting time, etc. Among them, if the data reporting method is 0, it means that the business data statistics function of the core server is turned off, and the core server will no longer cache, count, and report business data.
本发明实施例的解析结果中提供了明确的目标服务器的标识列表,使得第一服务器能够有针对性地与目标服务器通信,有助于提高业务数据获取的准确性和效率。另外,由于通过标识列表明确了目标服务器的标识信息,有助于降低业务数据获取错误的发生。The parsing results of the embodiment of the present invention provide a clear identification list of target servers, enabling the first server to communicate with the target server in a targeted manner, which helps to improve the accuracy and efficiency of business data acquisition. In addition, since the identification information of the target server is clarified through the identification list, it helps to reduce the occurrence of business data acquisition errors.
在本发明的一种示例性实施例中,根据解析结果从目标服务器获取目标业务数据的一种实施方式为,当标识列表包含第一服务器和第二服务器的标识信息时,将业务数据处理通知命令包转发至第二服务器,再从第一服务器和第二服务器获取目标业务数据。在业务数据的处理流程中,根据解析结果来决定如何获取目标业务数据是一项关键任务。在实际应用中,解析结果包含了目标服务器的标识信息,可能包括多个目标服务器的标识信息。根据多个标识信息,第一服务器选择性地将业务数据处理通知命令包转发至特定的目标服务器,然后从目标服务器中获取所需的目标业务数据。In an exemplary embodiment of the present invention, an implementation method of obtaining target business data from the target server according to the parsing result is to notify the business data processing when the identification list contains the identification information of the first server and the second server. The command packet is forwarded to the second server, and the target service data is obtained from the first server and the second server. In the business data processing process, deciding how to obtain the target business data based on the parsing results is a key task. In actual applications, the parsing result contains the identification information of the target server, which may include the identification information of multiple target servers. According to the plurality of identification information, the first server selectively forwards the business data processing notification command packet to a specific target server, and then obtains the required target business data from the target server.
举例说明:假设一个电子商务网站需要从不同的目标服务器获取销售数据。通过一个命令包将请求传递给核心服务器A。解析结果包含了核心服务器A和核心服务器B的标识信息。核心服务器A将命令包转发至核心服务器B,然后从核心服务器A自身和核心服务器B获取目标销售数据。For example: Suppose an e-commerce website needs to obtain sales data from different target servers. Pass the request to core server A through a command package. The parsing result contains the identification information of core server A and core server B. Core server A forwards the command packet to core server B, and then obtains the target sales data from core server A itself and core server B.
本发明实施例允许第一服务器有选择性地将命令包发送到适当的目标服务器。以第一服务器作为命令包的转发中心,不仅获取第一服务器上的目标业务数据,还可以获取第二服务器上的目标业务数据,实现了获取分布在多个目标服务器上的目标业务数据。The embodiment of the present invention allows the first server to selectively send the command packet to the appropriate target server. Using the first server as the forwarding center of the command packet not only obtains the target business data on the first server, but also obtains the target business data on the second server, achieving the acquisition of target business data distributed on multiple target servers.
在本发明的一种示例性实施例中,根据解析结果从目标服务器获取目标业务数据的另一种实施方式为,当标识列表只包含第一服务器的标识信息时,直接从第一服务器获取目标业务数据。In an exemplary embodiment of the present invention, another implementation method of obtaining the target business data from the target server according to the parsing result is to directly obtain the target service data from the first server when the identification list only contains the identification information of the first server. business data.
在本发明的一种示例性实施例中,将业务数据处理通知命令包转发至第二服务器的一种实施方式为,若第二服务器为第一服务器的上级级联服务器,则将标识列表中第一服务器的下级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至第二服务器。若第二服务器为第一服务器的下级级联服务器,则将标识列表中第一服务器的上级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至第二服务器。In an exemplary embodiment of the present invention, an implementation method of forwarding the business data processing notification command packet to the second server is: if the second server is the superior cascade server of the first server, then the identification list is After the identification information of the subordinate cascade server of the first server is deleted, the business data processing notification command packet is forwarded to the second server. If the second server is a subordinate cascade server of the first server, then the business data processing notification command packet is forwarded to the second server after deleting the identification information of the upper-level cascade server of the first server in the identification list.
本发明实施例可以根据服务器之间的级联关系,对标识列表中的标识信息进行筛选,然后将命令包转发至目标服务器。当存在多个目标服务器时,目标服务器之间可能存在级联关系,其中某些服务器可能是其他服务器的上级级联服务器,而其他服务器可能是其下级级联服务器。在实际应用中,根据服务器之间的级联关系,第一服务器可以有选择性地删除标识列表中特定服务器的标识信息,然后将业务数据处理通知命令包转发至另一级服务器,以实现数据处理的分发和协调。The embodiment of the present invention can filter the identification information in the identification list according to the cascade relationship between servers, and then forward the command packet to the target server. When there are multiple target servers, there may be a cascading relationship between the target servers, where some servers may be cascading superiors to other servers and other servers may be cascading subordinates to them. In practical applications, according to the cascading relationship between servers, the first server can selectively delete the identification information of a specific server in the identification list, and then forward the business data processing notification command package to another level server to implement data processing. Distribution and coordination of processing.
举例说明:一个全球零售商的销售数据存储在多个级联服务器中。需要从各个服务器获取销售数据。如果第一服务器是核心服务器A,核心服务器B是核心服务器A的上级级联服务器,核心服务器C是核心服务器A的下级级联服务器。核心服务器A在转发命令包时,可以将命令包中标识列表的核心服务器B的标识信息删除之后,转发命令包至核心服务器C。而且,核心服务器A在转发命令包时,可以将命令包中标识列表的核心服务器C的标识信息删除之后,转发命令包至核心服务器B。For example: a global retailer's sales data is stored in multiple cascaded servers. Sales data needs to be obtained from various servers. If the first server is core server A, core server B is the upper-level cascade server of core server A, and core server C is the lower-level cascade server of core server A. When core server A forwards the command packet, it can delete the identification information of core server B from the identification list in the command packet and then forward the command packet to core server C. Moreover, when core server A forwards the command packet, it can delete the identification information of core server C from the identification list in the command packet and then forward the command packet to core server B.
本发明实施例允许根据服务器之间的级联关系删除多余的标识信息,从而实现命令包的有序分发和协调,可以提高业务数据获取的效率,减少不必要的数据传输,从而降低网络带宽和服务器资源的使用。The embodiment of the present invention allows deletion of redundant identification information according to the cascade relationship between servers, thereby realizing orderly distribution and coordination of command packets, improving the efficiency of business data acquisition, reducing unnecessary data transmission, thereby reducing network bandwidth and Usage of server resources.
在本发明的一种示例性实施例中,从第一服务器和第二服务器获取目标业务数据的一种实施方式为,接收第二服务器逐级转发的第二业务数据,将来源于第一服务器的第一业务数据与第二业务数据进行汇总得到目标业务数据。本发明实施例涉及从多个目标服务器获取目标业务数据,包括接收逐级转发的业务数据,然后将这些业务数据汇总,以生成目标业务数据。在实际应用中,目标业务数据可能分布在多个目标服务器上。第一服务器通过接收逐级转发的业务数据,将来自多个目标服务器的业务数据进行合并,以生成目标业务数据。In an exemplary embodiment of the present invention, an implementation method of obtaining target service data from the first server and the second server is to receive the second service data forwarded step by step by the second server and obtain the target service data from the first server. The first business data and the second business data are aggregated to obtain the target business data. Embodiments of the present invention involve obtaining target business data from multiple target servers, including receiving business data forwarded step by step, and then summarizing these business data to generate target business data. In actual applications, target business data may be distributed on multiple target servers. The first server receives the business data forwarded step by step and merges the business data from multiple target servers to generate target business data.
举例说明:假设一个全球零售商需要汇总来自不同分店的销售数据,每个分店的销售数据存储在不同的核心服务器上。其中,核心服务器A收集分店m的销售数据,核心服务器B收集分店n的销售数据。核心服务器A接收到业务数据的处理系统发送的业务数据处理通知命令包,并将命令包转发至核心服务器B。核心服务器B将分店n的销售数据t向其上级级联服务器即核心服务器A转发。核心服务器A接收销售数据t,并将其收集的分店m的销售数据p进行汇总得到目标业务数据o。For example: Suppose a global retailer needs to aggregate sales data from different branches. The sales data of each branch is stored on a different core server. Among them, core server A collects sales data of branch m, and core server B collects sales data of branch n. Core server A receives the business data processing notification command packet sent by the business data processing system, and forwards the command packet to core server B. Core server B forwards the sales data t of branch n to its superior cascade server, namely core server A. The core server A receives the sales data t, and summarizes the sales data p of the branch m collected by it to obtain the target business data o.
本发明实施例允许第一服务器有效地汇总和整合分布在不同目标服务器上的业务数据,以生成全面的目标业务数据,无需手动整理和分析多个数据源。此外,来源于不同目标服务器的业务数据可以逐级转发。具体地,某核心服务器可以将收集到的业务数据转发给直接向其发送命令包的上级级联或下级级联核心服务器,避免了将来源于不同目标服务器的业务数据丢失或者重复,有助于降低业务数据错误的风险,从而提高业务数据汇总的准确率。Embodiments of the present invention allow the first server to effectively aggregate and integrate business data distributed on different target servers to generate comprehensive target business data without the need to manually organize and analyze multiple data sources. In addition, business data originating from different target servers can be forwarded step by step. Specifically, a core server can forward the collected business data to an upper-level cascade or lower-level cascade core server that directly sends command packets to it. This avoids the loss or duplication of business data from different target servers and helps Reduce the risk of business data errors, thereby improving the accuracy of business data summary.
参照图2,示出了本发明实施例的另一种业务数据的处理方法的步骤流程图。该业务数据的处理方法可以应用于业务数据的处理系统,该业务数据的处理方法具体可以包括如下步骤:Referring to FIG. 2 , a flow chart of steps of another business data processing method according to an embodiment of the present invention is shown. The business data processing method can be applied to the business data processing system. The business data processing method specifically includes the following steps:
步骤201,生成并传输业务数据处理通知命令包至第一服务器。Step 201: Generate and transmit a business data processing notification command package to the first server.
在本发明的实施例中,业务数据的处理系统可以包含客户端和后端服务器。其中,后端服务器可以包含用户交互模块、业务数据接收模块和数据处理模块。数据处理模块可以对业务数据进行存储、生成报表数据等。客户端主要为用户提供可视化界面操作设置和数据报表展示。用户交互模块主要接收和处理客户端的业务数据处理通知命令包,连接第一服务器、向第一服务器发送业务数据处理通知命令包,同时,向业务数据的处理系统的其他模块转发用户操作通知和接收上报其他模块向用户返回的数据。业务数据接收模块接收第一服务器上报的业务数据,并解析业务数据和重新组装符合向用户展示的业务数据,组装的业务数据存放到数据处理模块中的数据存储队列中。数据处理模块实时获取数据存储队列中的业务数据,并存储到本地数据库中。而且,获取本地数据库中业务数据,按照用户需求生成不同的业务统计报表数据。In the embodiment of the present invention, the business data processing system may include a client and a back-end server. Among them, the back-end server can include a user interaction module, a business data receiving module and a data processing module. The data processing module can store business data, generate report data, etc. The client mainly provides users with visual interface operation settings and data report display. The user interaction module mainly receives and processes the client's business data processing notification command packet, connects to the first server, sends the business data processing notification command packet to the first server, and at the same time forwards the user operation notification and reception to other modules of the business data processing system. Report data returned by other modules to users. The business data receiving module receives the business data reported by the first server, parses the business data and reassembles the business data that is consistent with the display to the user. The assembled business data is stored in the data storage queue in the data processing module. The data processing module obtains the business data in the data storage queue in real time and stores it in the local database. Moreover, it obtains business data from the local database and generates different business statistical report data according to user needs.
步骤202,接收来源于第一服务器的目标业务数据,并对目标业务数据进行处理。Step 202: Receive target business data from the first server and process the target business data.
在本发明的实施例中,目标业务数据为第一服务器根据业务数据处理通知命令包的解析结果,从目标服务器获取得到。关于本步骤202的介绍,可以参照上述实施例中的相关说明,在此不再赘述。In the embodiment of the present invention, the target service data is the parsing result of the first server processing the notification command packet according to the service data, and is obtained from the target server. For the introduction of this step 202, reference may be made to the relevant descriptions in the above embodiments, which will not be described again here.
参照图3,示出了本发明实施例中业务数据的处理系统的运行流程示意图。Referring to FIG. 3 , a schematic diagram of the operation flow of the business data processing system in the embodiment of the present invention is shown.
业务数据的处理系统可以包含客户端和后端服务器。其中,后端服务器可以包含用户交互模块、业务数据接收模块和数据处理模块。数据处理模块可以对业务数据进行存储、生成报表数据等。在客户端上,系统管理员登录系统,设置获取业务数据模式,主要参数包括:1、登录核心服务器用户名、密码;2、获取业务数据类型及其他参数。用户交互模块根据系统管理员在客户端上设置的主要参数,通过指定核心服务器上的统计账号登录到核心服务器。登录成功后,用户交互模块向核心服务器发送获取业务数据通知(业务数据处理通知命令包)。用户交互模块从核心服务器接收返回的通知结果,该通知结果可以为核心服务器接收到获取业务数据通知的响应结果。客户端根据用户交互模块接收到的通知结果,提示通知结果。用户可以通过客户端登录业务数据的处理系统,并获取业务统计报表。用户交互模块从客户端获取用户需要的统计报表类型,将统计报表类型告知数据处理模块。数据处理模块获取数据库数据,按照统计报表类型生成统计报表,并向用户交互模块返回统计报表数据。用户交互模块返回统计报表数据至客户端。客户端通过用户界面对统计报表数据进行可视化展示。The business data processing system can include clients and back-end servers. Among them, the back-end server can include a user interaction module, a business data receiving module and a data processing module. The data processing module can store business data, generate report data, etc. On the client, the system administrator logs in to the system and sets the business data acquisition mode. The main parameters include: 1. Log in to the core server user name and password; 2. Obtain business data type and other parameters. The user interaction module logs in to the core server by specifying the statistical account on the core server according to the main parameters set by the system administrator on the client. After successful login, the user interaction module sends a business data acquisition notification (business data processing notification command package) to the core server. The user interaction module receives the notification result returned from the core server. The notification result may be the response result of the core server receiving the notification of obtaining business data. The client prompts the notification result based on the notification result received by the user interaction module. Users can log in to the business data processing system through the client and obtain business statistical reports. The user interaction module obtains the statistical report type required by the user from the client and informs the data processing module of the statistical report type. The data processing module obtains database data, generates statistical reports according to statistical report types, and returns statistical report data to the user interaction module. The user interaction module returns statistical report data to the client. The client visually displays statistical report data through the user interface.
上述数据库中业务数据的存储过程主要为:业务数据接收模块接收核心服务器上报的业务数据,解析业务数据并将解析后的业务数据存储在数据处理模块的数据存储队列中。数据处理模块从数据存储队列中获取业务数据,将业务数据存储在数据库中。The storage process of business data in the above database is mainly as follows: the business data receiving module receives the business data reported by the core server, parses the business data and stores the parsed business data in the data storage queue of the data processing module. The data processing module obtains business data from the data storage queue and stores the business data in the database.
在客户端上,系统管理员可以设置定时生成统计报表并发送给指定用户。用户交互模块从客户端接收系统管理员的设置信息,如记录接收邮件的用户账号、时间、报表类型等。到达指定日期时,用户交互模块按照报表类型获取业务数据。数据处理模块从数据库获取业务数据,并按照用户交互模型通知的报表类型生成统计报表,返回统计报表数据给用户交互模块。用户交互模块将统计报表数据推送到指定用户的邮件信箱。On the client, the system administrator can set up scheduled statistical reports and send them to designated users. The user interaction module receives the system administrator's setting information from the client, such as recording the user account, time, report type, etc. that receive the email. When the specified date is reached, the user interaction module obtains business data according to the report type. The data processing module obtains business data from the database, generates statistical reports according to the report types notified by the user interaction model, and returns statistical report data to the user interaction module. The user interaction module pushes statistical report data to the email mailbox of the specified user.
本发明实施例中的系统管理员可以在客户端上设置获取业务数据的参数,包括登录核心服务器信息和获取业务数据的类型等。配置的灵活性使业务数据的处理系统能够满足不同用户和业务需求。用户交互模块能够根据系统管理员设置的参数自动登录核心服务器并发送获取业务数据通知。降低了系统管理员的工作负担,同时减少了手动操作可能引入的错误。用户交互模块能够即时向客户端反馈获取业务数据通知的结果,有助于系统管理员和用户了解操作是否成功或是否需要采取进一步的措施。数据处理模块能够根据用户需求自动生成统计报表,提高了生成统计报表的效率。客户端能够将统计报表数据以可视化的方式呈现给用户,使业务数据更易于理解和分析。系统管理员设置定时生成统计报表并发送给指定用户,确保了及时的报表更新,使用户能够按计划获取业务数据,无需等待手动请求。用户交互模块将统计报表数据推送到指定用户的邮件信箱,提供了一种有效的通信方式,有助于用户及时获取重要的业务数据。The system administrator in the embodiment of the present invention can set parameters for obtaining business data on the client, including login core server information and the type of business data obtained. The flexibility of configuration enables the business data processing system to meet different user and business needs. The user interaction module can automatically log in to the core server and send notifications to obtain business data according to the parameters set by the system administrator. It reduces the workload of system administrators and reduces errors that may be introduced by manual operations. The user interaction module can instantly feedback the results of obtaining business data notifications to the client, helping system administrators and users understand whether the operation was successful or whether further measures need to be taken. The data processing module can automatically generate statistical reports based on user needs, improving the efficiency of generating statistical reports. The client can present statistical report data to users in a visual way, making business data easier to understand and analyze. The system administrator sets up scheduled statistical reports and sends them to designated users, ensuring timely report updates and enabling users to obtain business data as planned without waiting for manual requests. The user interaction module pushes statistical report data to the designated user's email mailbox, providing an effective communication method that helps users obtain important business data in a timely manner.
总之,上述业务数据的处理系统通过提供灵活性、自动化、实时反馈和定时推送等功能,大幅提高了业务数据的获取、处理和展示效率,有助于提升决策支持和数据管理的质量。In short, the above-mentioned business data processing system greatly improves the efficiency of acquiring, processing and displaying business data by providing functions such as flexibility, automation, real-time feedback and scheduled push, and helps improve the quality of decision support and data management.
基于上述关于一种业务数据的处理方法的实施例的相关说明,下面介绍一种业务统计方案。参照图4,示出了本发明实施例的一种业务统计方案的结构示意图。该业务统计方案涉及到业务统计系统、核心服务器A、核心服务器C。其中,核心服务器A和核心服务器C均包含各自的主控设备、分控设备、终端设备、上边界路由设备、下边界路由设备。主控设备作为核心服务器的大脑,每个核心服务器中有一个主控设备。每个核心服务器中可以有多个分控设备,分控设备级联在主控设备下。而且,每个核心服务器可以有多个终端设备,终端设备级联在分控设备下。核心服务器中的上边界路由设备可以与主控设备通信,用于与核心服务器的上级级联核心服务器中的下边界路由设备进行通信。核心服务器中的下边界路由设备可以级联在分控设备下,用于与核心服务器的下级级联核心服务器中的上边界路由设备进行通信。核心服务器A与核心服务器C基于视联网进行通信。而且,核心服务器A和核心服务器C内部的各设备也基于视联网进行通信。业务统计系统与核心服务器A之间基于互联网进行通信。Based on the above description of the embodiment of a business data processing method, a business statistics solution is introduced below. Referring to Figure 4, a schematic structural diagram of a business statistics solution according to an embodiment of the present invention is shown. The business statistics solution involves the business statistics system, core server A, and core server C. Among them, core server A and core server C each include their own main control equipment, sub-control equipment, terminal equipment, upper boundary routing equipment, and lower boundary routing equipment. The main control device serves as the brain of the core server, and there is one main control device in each core server. Each core server can have multiple sub-control devices, and the sub-control devices are cascaded under the main control device. Moreover, each core server can have multiple terminal devices, and the terminal devices are cascaded under the sub-control device. The upper boundary routing device in the core server can communicate with the main control device and is used to communicate with the lower boundary routing device in the upper-level cascade core server of the core server. The lower boundary routing device in the core server can be cascaded under the sub-control device to communicate with the upper boundary routing device in the lower-level cascaded core server of the core server. Core server A and core server C communicate based on the video network. Moreover, each device within the core server A and core server C also communicates based on the video network. Communication between the business statistics system and core server A is based on the Internet.
参照图5,示出了本发明实施例的一种业务统计方案的流程示意图。Referring to FIG. 5 , a schematic flow chart of a business statistics solution according to an embodiment of the present invention is shown.
该业务统计方案涉及到业务统计系统,核心服务器A、核心服务器B、核心服务器C。业务统计系统通过传输控制协议套接字(Transmission Control Protocol Socket,简称TCP Socket)连接到核心服务器,并使用核心服务器中注册的统计账号登录到核心服务器。业务统计系统封装获取业务数据通知命令包并发送到核心服务器A的主控设备,命令包遵循视联网协议规则。命令包括主要信息:操作码(获取业务数据)、当前统计账号所在核心服务器的前缀(标识信息)、用户标识、获取核心服务器前缀列表(为空表示获取所有核心服务器)、获取业务数据类型(1:会议业务;2直播业务;3:可视电话业务)、数据上报方式(0:关闭;1:即时上报;2:视联网空闲时主动上报;3:指定时间统一上报)、上报时间等。数据上报方式为0,表示关闭业务数据统计功能,核心服务器不再缓存、统计和上报业务数据。The business statistics solution involves the business statistics system, core server A, core server B, and core server C. The business statistics system connects to the core server through Transmission Control Protocol Socket (TCP Socket), and logs in to the core server using the statistics account registered in the core server. The business statistics system encapsulates and obtains the business data notification command packet and sends it to the main control device of core server A. The command packet follows the rules of the video network protocol. The command includes main information: operation code (obtaining business data), prefix (identification information) of the core server where the current statistics account is located, user ID, obtaining core server prefix list (empty means obtaining all core servers), obtaining business data type (1 : Conference business; 2 Live broadcast business; 3: Video phone business), data reporting method (0: Close; 1: Instant reporting; 2: Active reporting when the video network is idle; 3: Unified reporting at a designated time), reporting time, etc. The data reporting mode is 0, which means the business data statistics function is turned off, and the core server no longer caches, counts, and reports business data.
核心服务器A的主控设备解析命令包,获取核心服务器前缀列表。同时根据视联网级联信息,获取当前视联网中所有核心服务器的级联关系。核心服务器A的主控设备根据核心服务器前缀列表和级联关系,判断核心服务器A是否存在上级/下级级联核心服务器。如果核心服务器A不存在上级/下级级联核心服务器,则向业务统计系统返回通知响应结果,该通知响应结果可以表示核心服务器A不存在级联核心服务器。如果核心服务器A存在上级/下级级联核心服务器,则核心服务器A的主控设备将命令包转发到上级/下级级联服务器。核心服务器A的上级级联核心服务器B接收到命令包,核心服务器B的主控设备对命令包进行解析,开启业务数据上报通道并向核心服务器A返回通知响应结果,该通知响应结果可以表示核心服务器B接收到核心服务器A转发的命令包。核心服务器A的下级级联核心服务器C接收到命令包,核心服务器C的主控设备对命令包进行解析,开启业务数据上报通道并向核心服务器A返回通知响应结果,该通知响应结果可以表示核心服务器C接收到核心服务器A转发的命令包。核心服务器A可以将来自核心服务器B和核心服务器C的通知响应结果返回给业务统计系统。业务统计系统展示通知响应结果。通知响应结果主要包括:操作码(获取业务数据通知响应)、响应核心服务器前缀、设置结果(0表示成功,其他值表示失败)等。如果设置结果为失败,则业务统计系统登录的核心服务器每隔一段时间,如5秒再次发送一次命令包,直至返回的通知响应结果中的设置结果为成功。The main control device of core server A parses the command package and obtains the core server prefix list. At the same time, according to the cascading information of the video network, the cascading relationship of all core servers in the current video network is obtained. The main control device of core server A determines whether there is an upper/lower-level cascade core server in core server A based on the core server prefix list and cascading relationship. If core server A does not have an upper/lower-level cascade core server, a notification response result is returned to the business statistics system. The notification response result may indicate that core server A does not have a cascade core server. If core server A has an upper-level/lower-level cascade core server, the main control device of core server A will forward the command packet to the upper-level/lower-level cascade server. The superior cascade core server B of core server A receives the command package. The main control device of core server B parses the command package, opens the business data reporting channel and returns the notification response result to core server A. The notification response result can represent the core Server B receives the command packet forwarded by core server A. The subordinate cascade core server C of the core server A receives the command package. The main control device of the core server C parses the command package, opens the business data reporting channel and returns the notification response result to the core server A. The notification response result can represent the core Server C receives the command packet forwarded by core server A. Core server A can return notification response results from core server B and core server C to the business statistics system. The business statistics system displays notification response results. The notification response results mainly include: operation code (obtaining business data notification response), response core server prefix, setting result (0 indicates success, other values indicate failure), etc. If the setting result is failure, the core server logged in by the business statistics system will send a command packet again at intervals, such as 5 seconds, until the setting result in the returned notification response result is success.
核心服务器A可以通过其边界路由设备把命令包转发到上级/下级核心服务器中。具体地,核心服务器A的主控设备如果将命令包转发到上级级联核心服务器,则去除标识列表中核心服务器A的下级级联核心服务器前缀。核心服务器A的主控设备如果将命令包转发到下级级联核心服务器,则去除标识列表中在核心服务器A的上级级联核心服务器前缀。Core server A can forward the command packet to the upper/lower level core server through its border routing device. Specifically, if the master control device of core server A forwards the command packet to the upper-level cascading core server, it removes the prefix of the lower-level cascading core server of core server A in the identification list. If the master control device of core server A forwards the command packet to the lower-level cascading core server, it will remove the prefix of the upper-level cascading core server of core server A in the identification list.
上述核心服务器A级联在核心服务器B之下,核心服务器C级联在核心服务器A之上。业务统计系统利用统计账号登录到核心服务器A中,核心服务器间之间命令包的具体转发流程如下:The above-mentioned core server A is cascaded under core server B, and core server C is cascaded above core server A. The business statistics system uses the statistics account to log in to core server A. The specific forwarding process of command packets between core servers is as follows:
核心服务器A的主控设备转发命令包给其下的分控设备,再由分控设备转发给其下的下边界路由设备。核心服务器A的下边界路由设备与核心服务器C的上边界路由设备处于级联状态,所以核心服务器A的下边界路由设备再把命令包转发给核心服务器C的上边界路由设备,再由核心服务器C的上边界路由设备,转发命令包给核心服务器C的主控设备。The main control device of core server A forwards the command packet to the sub-control device under it, and then the sub-control device forwards it to the lower boundary routing device under it. The lower boundary routing device of core server A and the upper boundary routing device of core server C are in a cascade state, so the lower boundary routing device of core server A forwards the command packet to the upper boundary routing device of core server C, and then the core server The upper boundary routing device of C forwards the command packet to the main control device of core server C.
核心服务器A的主控设备转发命令包给其上边界路由设备。核心服务器A的上边界路由设备与核心服务器B的下边界路由设备处于级联状态,所以核心服务器A的上边界路由设备再把命令包转发给核心服务器B的下边界路由设备,再由核心服务器B的下边界路由设备,转发命令包给核心服务器B的分控设备。核心服务器B的分控设备转发命令包给核心服务器B的主控设备。The main control device of core server A forwards the command packet to its upper boundary routing device. The upper boundary routing device of core server A and the lower boundary routing device of core server B are in a cascade state, so the upper boundary routing device of core server A forwards the command packet to the lower boundary routing device of core server B, and then the core server The lower boundary routing device of B forwards the command packet to the sub-control device of core server B. The sub-control device of core server B forwards the command packet to the main control device of core server B.
上级/下级核心服务器的主控设备收到命令包后,解析命令包得到前缀列表(标识列表)。如果当前核心服务器前缀在前缀列表中,则业务统计功能生效并开启业务数据上报通道。如果当前核心服务器前缀不在前缀列表中,则禁止业务统计功能生效并关闭业务数据上报通道。After receiving the command packet, the master control device of the upper/lower level core server parses the command packet to obtain the prefix list (identification list). If the current core server prefix is in the prefix list, the business statistics function takes effect and the business data reporting channel is enabled. If the current core server prefix is not in the prefix list, the business statistics function is prohibited from taking effect and the business data reporting channel is closed.
需要上报业务数据的核心服务器收到命令包后,记录命令包的来源核心服务器前缀(后续统计业务数据上报给该来源核心服务器。可简单理解为:谁通知的我,我就把统计业务数据返回给谁)。由业务统计系统登录的核心服务器统计来源于各核心服务器的业务数据,得到业务统计结果,最后上报给业务统计系统。After the core server that needs to report business data receives the command package, it records the source core server prefix of the command package (subsequent statistical business data is reported to the source core server. It can be simply understood as: Whoever notifies me, I will return the statistical business data to whom). The core server statistics logged in by the business statistics system come from the business data of each core server, and the business statistics results are obtained, and finally reported to the business statistics system.
当核心服务器中产生业务数据后,主控设备判断需要获取的业务数据类型,记录符合条件的业务数据。当业务完成后记录业务完成详情,并根据业务统计系统下发的数据上报方式(及时或空闲或指定时间)上报业务数据。核心服务器对上报完成的业务数据进行内部清除。When business data is generated in the core server, the main control device determines the type of business data that needs to be obtained and records the business data that meets the conditions. When the business is completed, record the business completion details and report the business data according to the data reporting method issued by the business statistics system (timely or idle or specified time). The core server internally clears the reported business data.
当核心服务器产生业务数据后,如检测到业务统计系统的用户账号未登录到核心服务器中,则核心服务器中的主控设备先进行本地业务数据保存,待业务统计系统的用户账号登录核心服务器后再上报业务数据。After the core server generates business data, if it is detected that the user account of the business statistics system has not logged in to the core server, the main control device in the core server will first save the local business data, and wait until the user account of the business statistics system logs in to the core server. Then report business data.
当核心服务器产生业务数据后,判断业务数据上报通道是否开启。如果业务数据上报通道未开启,则在本地存储业务数据,待业务数据上报通道开启之后,再上传业务数据。如果业务数据上报通道开启,则上报业务数据。其中,核心服务器B和C将业务数据上报给核心服务器A。核心服务器A将各核心服务器的业务数据进行汇总后,上报给业务统计系统。业务统计系统对接收到的业务数据进行统计分析。After the core server generates business data, it determines whether the business data reporting channel is open. If the business data reporting channel is not opened, the business data is stored locally, and then the business data is uploaded after the business data reporting channel is opened. If the business data reporting channel is enabled, the business data will be reported. Among them, core servers B and C report business data to core server A. Core server A summarizes the business data of each core server and reports it to the business statistics system. The business statistics system performs statistical analysis on the received business data.
如果业务统计系统登录的核心服务器与级联的核心服务器断连(检测到无法通信),业务统计系统登录的核心服务器先上报获取到的业务数据,等与级联核心服务器恢复通信后,再获取级联核心服务器上的业务数据并上报到业务统计系统。If the core server logged in to the business statistics system is disconnected from the cascaded core server (no communication is detected), the core server logged in to the business statistics system first reports the obtained business data, and then obtains it after the communication with the cascaded core server is restored. Cascade the business data on the core server and report it to the business statistics system.
本发明实施例提供的业务统计系统通过TCP Socket与核心服务器建立连接,可以自动化地向核心服务器发送获取业务数据通知命令包,降低了人工干预的需求,使数据收集过程更加高效和可靠。核心服务器能够即时响应业务统计系统的通知请求,无论是成功还是失败,通过通知响应结果迅速反馈给业务统计系统,有助于业务统计系统了解请求状态,避免不必要的等待。由于业务数据的来源核心服务器前缀被记录,业务统计系统能够追踪业务数据的来源,确保业务数据归属和准确性。核心服务器根据前缀列表和级联关系确定命令包的转发方式,有助于将命令包路由到正确的核心服务器,减少不必要的数据传输和处理。当业务统计系统的用户账号未登录到核心服务器时,核心服务器能够自动保存业务数据,待用户登录后再进行上报,确保了业务数据不会因用户未登录而丢失。业务统计系统和核心服务器之间的通信机制能够处理断连情况,确保业务数据不会丢失,并在通信恢复后继续数据传输,提高了容错性和可靠性。The business statistics system provided by the embodiment of the present invention establishes a connection with the core server through TCP Socket, and can automatically send the business data acquisition notification command package to the core server, reducing the need for manual intervention and making the data collection process more efficient and reliable. The core server can immediately respond to notification requests from the business statistics system, whether successful or failed. The notification response results are quickly fed back to the business statistics system, which helps the business statistics system understand the request status and avoid unnecessary waiting. Since the core server prefix of the source of business data is recorded, the business statistics system can track the source of business data and ensure the attribution and accuracy of business data. The core server determines the forwarding method of the command packet based on the prefix list and cascade relationship, which helps route the command packet to the correct core server and reduces unnecessary data transmission and processing. When the user account of the business statistics system is not logged in to the core server, the core server can automatically save the business data and report it after the user logs in, ensuring that the business data will not be lost because the user is not logged in. The communication mechanism between the business statistics system and the core server can handle disconnection situations, ensure that business data will not be lost, and continue data transmission after communication is restored, improving fault tolerance and reliability.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that for the sake of simple description, the method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence because According to embodiments of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily necessary for the embodiments of the present invention.
参照图6,示出了本发明实施例的一种业务数据的处理装置的结构框图。该业务数据的处理装置应用于第一服务器,该业务数据的处理装置具体可以包含如下模块。Referring to FIG. 6 , a structural block diagram of a service data processing device according to an embodiment of the present invention is shown. The business data processing device is applied to the first server. The business data processing device may specifically include the following modules.
命令包获取模块61,用于从业务数据的处理系统获取业务数据处理通知命令包;The command package acquisition module 61 is used to obtain the business data processing notification command package from the business data processing system;
命令包解析模块62,用于解析所述业务数据处理通知命令包得到解析结果;The command packet parsing module 62 is used to parse the business data processing notification command packet to obtain the parsing result;
业务数据获取模块63,用于根据所述解析结果从目标服务器获取目标业务数据;The business data acquisition module 63 is used to acquire the target business data from the target server according to the parsing result;
业务数据传输模块64,用于传输所述目标业务数据至所述业务数据的处理系统,以使所述业务数据的处理系统对所述目标业务数据进行处理。The business data transmission module 64 is used to transmit the target business data to the business data processing system, so that the business data processing system processes the target business data.
在本发明的一种示例性实施例中,所述命令包解析模块62,用于解析所述业务数据处理通知命令包得到所述目标服务器的标识列表。In an exemplary embodiment of the present invention, the command packet parsing module 62 is configured to parse the business data processing notification command packet to obtain an identification list of the target server.
在本发明的一种示例性实施例中,所述业务数据获取模块63,包括:In an exemplary embodiment of the present invention, the business data acquisition module 63 includes:
命令包转发模块,用于当所述标识列表包含所述第一服务器和第二服务器的标识信息时,将所述业务数据处理通知命令包转发至所述第二服务器;A command packet forwarding module, configured to forward the business data processing notification command packet to the second server when the identification list contains the identification information of the first server and the second server;
目标业务数据获取模块,用于从所述第一服务器和所述第二服务器获取所述目标业务数据。A target service data acquisition module is configured to obtain the target service data from the first server and the second server.
在本发明的一种示例性实施例中,所述命令包转发模块,用于若所述第二服务器为所述第一服务器的上级级联服务器,则将所述标识列表中所述第一服务器的下级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至所述第二服务器;若所述第二服务器为所述第一服务器的下级级联服务器,则将所述标识列表中所述第一服务器的上级级联服务器的标识信息删除之后的,业务数据处理通知命令包转发至所述第二服务器。In an exemplary embodiment of the present invention, the command packet forwarding module is configured to forward the first server in the identification list if the second server is a superior cascade server of the first server. After the identification information of the server's subordinate cascade server is deleted, the business data processing notification command packet is forwarded to the second server; if the second server is a subordinate cascade server of the first server, the identification information is forwarded to the second server. After the identification information of the upper-level cascade server of the first server in the list is deleted, the business data processing notification command packet is forwarded to the second server.
在本发明的一种示例性实施例中,所述目标业务数据获取模块,包括:In an exemplary embodiment of the present invention, the target business data acquisition module includes:
逐级业务数据接收模块,用于接收所述第二服务器逐级转发的第二业务数据;A step-by-step service data receiving module, configured to receive the second service data forwarded step by step by the second server;
业务数据汇总模块,用于将来源于所述第一服务器的第一业务数据与所述第二业务数据进行汇总得到所述目标业务数据。A business data summary module is used to summarize the first business data and the second business data from the first server to obtain the target business data.
参照图7,示出了本发明实施例的一种业务数据的处理系统的结构框图。该业务数据的处理系统具体可以包含如下模块。Referring to FIG. 7 , a structural block diagram of a service data processing system according to an embodiment of the present invention is shown. The business data processing system may specifically include the following modules.
命令包生成模块71,用于生成并传输业务数据处理通知命令包至第一服务器;The command packet generation module 71 is used to generate and transmit the business data processing notification command packet to the first server;
业务数据处理模块72,用于接收来源于所述第一服务器的目标业务数据,并对所述目标业务数据进行处理;The business data processing module 72 is used to receive target business data from the first server and process the target business data;
其中,所述目标业务数据为所述第一服务器根据所述业务数据处理通知命令包的解析结果,从目标服务器获取得到。Wherein, the target service data is the parsing result of the first server processing notification command packet according to the service data, and is obtained from the target server.
对于装置和系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device and system embodiments, since they are basically similar to the method embodiments, the descriptions are relatively simple. For relevant details, please refer to the partial description of the method embodiments.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Thus, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine such that the instructions are executed by the processor of the computer or other programmable data processing terminal device. Means are generated for implementing the functions specified in the process or processes of the flowchart diagrams and/or the block or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the The instruction means implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, so that a series of operating steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby causing the computer or other programmable terminal equipment to perform a computer-implemented process. The instructions executed on provide steps for implementing the functions specified in a process or processes of the flow diagrams and/or a block or blocks of the block diagrams.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although preferred embodiments of the embodiments of the present invention have been described, those skilled in the art will be able to make additional changes and modifications to these embodiments once the basic inventive concepts are apparent. Therefore, it is intended that the appended claims be construed to include the preferred embodiments and all changes and modifications that fall within the scope of embodiments of the invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or any such actual relationship or sequence between operations. Furthermore, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or end device that includes a list of elements includes not only those elements, but also elements not expressly listed or other elements inherent to such process, method, article or terminal equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or terminal device including the stated element.
以上对本发明所提供的一种业务数据的处理方法、一种业务数据的处理装置和一种业务数据的处理系统,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above has introduced in detail a business data processing method, a business data processing device and a business data processing system provided by the present invention. Specific examples are used in this article to illustrate the principles and implementations of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, there will be changes in the specific implementation and application scope according to the idea of the present invention. In summary, the contents of this description should not be construed as limitations of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311176601.3A CN117216142A (en) | 2023-09-12 | 2023-09-12 | Service data processing method, device and system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311176601.3A CN117216142A (en) | 2023-09-12 | 2023-09-12 | Service data processing method, device and system, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117216142A true CN117216142A (en) | 2023-12-12 |
Family
ID=89036501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311176601.3A Pending CN117216142A (en) | 2023-09-12 | 2023-09-12 | Service data processing method, device and system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117216142A (en) |
-
2023
- 2023-09-12 CN CN202311176601.3A patent/CN117216142A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11914495B1 (en) | Evaluating machine and process performance in distributed system | |
CN101795222B (en) | Multi-stage forward service system and method | |
US20180287920A1 (en) | Intercepting application traffic monitor and analyzer | |
KR20140072044A (en) | Distributing multi-source push notifications to multiple targets | |
CN110928934A (en) | Data processing method and device for business analysis | |
CN111177094B (en) | Log data processing method and device, electronic equipment and storage medium | |
US20190370353A1 (en) | Change notifications for object storage | |
CN107147527A (en) | System and method for Linux cluster alarm | |
US10498825B2 (en) | Method and system for selecting a transport mechanism and a storage process | |
CN112004161B (en) | Address resource processing method, device, terminal equipment and storage medium | |
EP3002910B1 (en) | Connecting computer management systems via cellular digital telecommunication networks | |
CN117216142A (en) | Service data processing method, device and system, electronic equipment and storage medium | |
CN109831335B (en) | Data monitoring method, monitoring terminal, storage medium and data monitoring system | |
CN118214650A (en) | Metric and event infrastructure | |
CN112019604A (en) | Edge data transmission method and system | |
CN118400447A (en) | Internet of things protocol adaptation method, device and computer equipment | |
CN112131198B (en) | Log analysis method and device and electronic equipment | |
CN105991316B (en) | A real-time management method and device for transmission network resource data | |
CN108280017A (en) | A kind of System Event Log method for uploading, device, equipment and system | |
CN110852537B (en) | Quality of service detection method and device | |
CN107147867B (en) | Distributed transcoding method and system | |
US12273422B2 (en) | Systems and methods for real time streaming, logging, and reporting of network data | |
CN108400988A (en) | A kind of System Event Log method for uploading, apparatus and system | |
CN115865680A (en) | Method, system and device for distributed equipment access, control and data transmission | |
CN106331043A (en) | Data transmission system |
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 |