CN114896260A - Information processing method, information processing device, electronic equipment and storage medium - Google Patents

Information processing method, information processing device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114896260A
CN114896260A CN202210506258.3A CN202210506258A CN114896260A CN 114896260 A CN114896260 A CN 114896260A CN 202210506258 A CN202210506258 A CN 202210506258A CN 114896260 A CN114896260 A CN 114896260A
Authority
CN
China
Prior art keywords
financial product
information
product change
record
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210506258.3A
Other languages
Chinese (zh)
Inventor
王妍
张名伟
吴琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210506258.3A priority Critical patent/CN114896260A/en
Publication of CN114896260A publication Critical patent/CN114896260A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure provides an information processing method, apparatus, electronic device, and storage medium, which can be applied to the field of computer technology and the field of financial technology. The information processing method includes: responding to the change of the financial product information, receiving a financial product information change log pushed by a data source system, wherein the financial product change log comprises a financial product change record; determining the type of the financial product change record by analyzing the financial product change log; determining a target processing mode according to the type of the financial product change record; processing the financial product change record according to a target processing mode to obtain financial product change information; and sending the financial product change information to the client.

Description

信息处理方法、装置、电子设备及存储介质Information processing method, device, electronic device and storage medium

技术领域technical field

本公开涉及计算机技术领域和金融技术领域,更具体地涉及一种信息处理方法、装置、设备、介质和程序产品。The present disclosure relates to the field of computer technology and financial technology, and more particularly to an information processing method, apparatus, device, medium and program product.

背景技术Background technique

在金融市场中,需要在用户的移动终端更新金融产品的行情报价信息,以便用户获取行情报价,用户在根据行情报价进行投资理财时,会出现行情报价慢导致延误交易处理的情况。In the financial market, it is necessary to update the market quotation information of financial products on the user's mobile terminal so that the user can obtain the market quotation. When the user conducts investment and wealth management according to the market quotation, the market quotation is slow and the transaction processing is delayed.

在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:金融产品的行情报价信息不能及时更新。During the process of realizing the concept of the present disclosure, the inventor found that there are at least the following problems in the related art: the market quotation information of financial products cannot be updated in time.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本公开提供了一种信息处理方法、装置、设备、介质和程序产品。In view of the above problems, the present disclosure provides an information processing method, apparatus, device, medium and program product.

根据本公开的第一个方面,提供了一种信息处理方法,包括:响应于金融产品信息的变更,接收由数据源系统推送的金融产品信息变更日志,其中,金融产品变更日志中包括金融产品变更记录;通过解析金融产品变更日志,确定金融产品变更记录的类型;根据金融产品变更记录的类型,确定目标处理方式;按照目标处理方式处理金融产品变更记录,得到金融产品变更信息;以及向客户端发送金融产品变更信息。According to a first aspect of the present disclosure, an information processing method is provided, comprising: in response to a change of financial product information, receiving a financial product information change log pushed by a data source system, wherein the financial product change log includes financial products Change records; determine the type of financial product change records by analyzing the financial product change log; determine the target processing method according to the type of financial product change records; process the financial product change records according to the target processing method to obtain financial product change information; The terminal sends financial product change information.

根据本公开的实施例,通过解析金融产品变更日志,确定金融产品变更记录的类型,包括:通过解析金融产品变更日志,识别金融产品变更记录中的目标字段;根据金融产品变更记录的目标字段,确定金融产品变更记录的类型。According to the embodiments of the present disclosure, determining the type of the financial product change record by parsing the financial product change log includes: identifying the target field in the financial product change record by parsing the financial product change log; according to the target field of the financial product change record, Determine the type of financial product change records.

根据本公开的实施例,按照目标处理方式处理金融产品变更记录,得到金融产品变更信息,包括:在金融产品变更记录的类型为修改记录的情况下,根据金融产品的标识信息,查询缓存服务器中的已解析变更记录列表;在金融产品变更记录不存在于已解析变更记录列表中的情况下,通过解析金融产品变更记录,得到金融产品变更信息。According to an embodiment of the present disclosure, processing the financial product change record according to the target processing method to obtain the financial product change information includes: in the case that the type of the financial product change record is a modification record, querying the cache server according to the identification information of the financial product. The list of parsed change records; if the financial product change record does not exist in the parsed change record list, the financial product change information can be obtained by parsing the financial product change record.

根据本公开的实施例,按照目标处理方式处理金融产品变更记录,得到金融产品变更信息,包括:在金融产品变更记录的类型为插入记录的情况下,根据金融产品变更记录的类型,确定第一变更标识信息;通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第一变更标识信息。According to the embodiments of the present disclosure, processing the financial product change record according to the target processing method to obtain the financial product change information includes: in the case that the type of the financial product change record is an insertion record, determining the first change record according to the type of the financial product change record. Change identification information; obtain financial product change information by analyzing the financial product change record, wherein the financial product change information includes the first change identification information.

根据本公开的实施例,按照目标处理方式处理金融产品变更记录,得到金融产品变更信息,包括:在金融产品变更记录的类型为删除记录的情况下,根据金融产品变更记录的类型,确定第二变更标识信息;通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第二变更标识信息。According to an embodiment of the present disclosure, processing the financial product change record according to the target processing method to obtain the financial product change information includes: in the case that the type of the financial product change record is a deletion record, determining the second change record according to the type of the financial product change record. Change identification information; obtain financial product change information by analyzing the financial product change record, wherein the financial product change information includes second change identification information.

根据本公开的实施例,上述信息处理方法还包括:按照预设频率,向客户端发送心跳检测数据;接收由客户端发送的心跳检测反馈信息,记录反馈时刻信息,反馈时刻信息表征接收到心跳检测反馈信息的时刻信息。According to an embodiment of the present disclosure, the above information processing method further includes: sending heartbeat detection data to a client according to a preset frequency; receiving heartbeat detection feedback information sent by the client, recording feedback time information, and the feedback time information represents the received heartbeat Detect the time information of the feedback information.

根据本公开的实施例,上述信息处理方法还包括:查询预设时间段内的反馈时刻信息,得到查询结果信息;在查询结果信息满足预设条件的情况下,关闭用于响应客户端发起的服务请求的会话。According to an embodiment of the present disclosure, the above-mentioned information processing method further includes: querying feedback time information within a preset time period to obtain query result information; when the query result information satisfies a preset condition, closing the function for responding to the client's initiation Session to service the request.

本公开的第二方面提供了一种信息处理装置,包括:第一接收模块,用于响应于金融产品信息的变更,接收由数据源系统推送 金融产品信息变更日志,其中,金融产品变更日志中包括金融产品变更记录;第一确定模块,用于通过解析金融产品变更日志,确定金融产品变更记录的类型;第二确定模块,用于根据金融产品变更记录的类型,确定目标处理方式;处理模块,用于按照目标处理方式处理金融产品变更记录,得到金融产品变更信息;以及第一发送模块,用于向客户端发送金融产品变更信息。A second aspect of the present disclosure provides an information processing device, comprising: a first receiving module, configured to receive a change log of financial product information pushed by a data source system in response to a change of financial product information, wherein the change log of financial product It includes a financial product change record; a first determination module is used to determine the type of financial product change record by parsing the financial product change log; the second determination module is used to determine the target processing method according to the type of financial product change record; processing module , which is used to process the financial product change record according to the target processing method to obtain the financial product change information; and the first sending module is used to send the financial product change information to the client.

根据本公开的实施例,上述第一确定模块可以包括第一确定单元和第二确定单元。其中,第一确定单元,用于通过解析金融产品变更日志,识别金融产品变更记录中的目标字段。第二确定单元,用于根据金融产品变更记录的目标字段,确定金融产品变更记录的类型。According to an embodiment of the present disclosure, the above-mentioned first determination module may include a first determination unit and a second determination unit. Wherein, the first determining unit is configured to identify the target field in the financial product change record by parsing the financial product change log. The second determination unit is configured to determine the type of the financial product change record according to the target field of the financial product change record.

根据本公开的实施例,上述处理模块可以包括第一处理单元和第二处理单元。其中,第一处理单元,用于在金融产品变更记录的类型为修改记录的情况下,根据金融产品的标识信息,查询缓存服务器中的已解析变更记录列表。第二处理单元,用于在金融产品变更记录不存在于已解析变更记录列表中的情况下,通过解析金融产品变更记录,得到金融产品变更信息。According to an embodiment of the present disclosure, the above-mentioned processing module may include a first processing unit and a second processing unit. Wherein, the first processing unit is configured to query the parsed change record list in the cache server according to the identification information of the financial product when the type of the financial product change record is a modification record. The second processing unit is configured to obtain the financial product change information by analyzing the financial product change record when the financial product change record does not exist in the parsed change record list.

根据本公开的实施例,上述处理模块可以包括第三处理单元和第四处理单元。其中,第三处理单元,用于在金融产品变更记录的类型为插入记录的情况下,根据金融产品变更记录的类型,确定第一变更标识信息;第四处理单元,用于通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第一变更标识信息。According to an embodiment of the present disclosure, the above-mentioned processing module may include a third processing unit and a fourth processing unit. Wherein, the third processing unit is used to determine the first change identification information according to the type of the financial product change record when the type of the financial product change record is an insert record; the fourth processing unit is used to analyze the financial product change by analyzing record to obtain financial product modification information, wherein the financial product modification information includes first modification identification information.

根据本公开的实施例,上述处理模块可以包括第五处理单元和第六处理单元。其中,第五处理单元,用于在金融产品变更记录的类型为删除记录的情况下,根据金融产品变更记录的类型,确定第二变更标识信息。第六处理单元,用于通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第二变更标识信息。According to an embodiment of the present disclosure, the above-mentioned processing module may include a fifth processing unit and a sixth processing unit. Wherein, the fifth processing unit is configured to determine the second modification identification information according to the type of the financial product modification record when the type of the financial product modification record is a deletion record. The sixth processing unit is configured to obtain financial product modification information by analyzing the financial product modification record, wherein the financial product modification information includes second modification identification information.

根据本公开的实施例,上述信息处理装置还可以包括第二发送模块和记录模块。其中,第二发送模块,用于按照预设频率,向客户端发送心跳检测数据。记录模块,用于接收由客户端发送的心跳检测反馈信息,记录反馈时刻信息,反馈时刻信息表征接收到心跳检测反馈信息的时刻信息。According to an embodiment of the present disclosure, the above-mentioned information processing apparatus may further include a second sending module and a recording module. The second sending module is configured to send heartbeat detection data to the client according to a preset frequency. The recording module is used for receiving the heartbeat detection feedback information sent by the client, and recording the feedback time information, and the feedback time information represents the time information at which the heartbeat detection feedback information is received.

根据本公开的实施例,上述信息处理装置还可以包括查询模块和关闭模块。其中,查询模块,用于查询预设时间段内的反馈时刻信息,得到查询结果信息。关闭模块,用于在查询结果信息满足预设条件的情况下,关闭用于响应客户端发起的服务请求的会话。According to an embodiment of the present disclosure, the above-mentioned information processing apparatus may further include a query module and a closing module. The query module is used for querying feedback time information within a preset time period to obtain query result information. The closing module is used to close the session for responding to the service request initiated by the client when the query result information satisfies the preset condition.

本公开的第三方面提供了一种电子设备,包括:一个或多个处理器;存储器,用于存储一个或多个程序,其中,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器执行上述信息处理方法。A third aspect of the present disclosure provides an electronic device comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors , causing one or more processors to execute the above information processing method.

本公开的第四方面还提供了一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述信息处理方法。A fourth aspect of the present disclosure also provides a computer-readable storage medium on which executable instructions are stored, and when the instructions are executed by the processor, cause the processor to execute the above-mentioned information processing method.

本公开的第五方面还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述信息处理方法。A fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned information processing method when executed by a processor.

根据本公开的实施例,在金融产品价格变更时,由数据源系统直接推送金融产品信息变更日志,然后对金融产品信息变更日志进行解析,根据金融产品信息变更日志中不同的金融产品信息变更记录的类型,按照对应的目标处理方式对金融产品信息变更记录进行处理,得到金融产品变更信息,并向客户端发送金融产品变更信息,使得金融产品变更信息在发生变化时,不需要从数据源系统主动拉取数据,而是由数据源系统直接推送,并且可以及时解析金融产品信息变更日志按照对应的目标处理方式对金融产品信息变更记录进行处理,将金融产品变更信息发送至客户端,所以至少部分地克服了金融产品的行情报价信息不能及时更新的技术问题,使得用户可以获取最新的行情报价信息。According to the embodiments of the present disclosure, when the price of a financial product changes, the data source system directly pushes the financial product information change log, and then parses the financial product information change log, according to different financial product information change records in the financial product information change log. According to the corresponding target processing method, the financial product information change record is processed, the financial product change information is obtained, and the financial product change information is sent to the client, so that when the financial product change information changes, it does not need to be changed from the data source system. Actively pulls the data, but pushes it directly from the data source system, and can analyze the financial product information change log in time, process the financial product information change record according to the corresponding target processing method, and send the financial product change information to the client, so at least It partially overcomes the technical problem that the market quotation information of financial products cannot be updated in time, so that users can obtain the latest market quotation information.

附图说明Description of drawings

通过以下参照附图对本公开实施例的描述,本公开的上述内容以及其他目的、特征和优点将更为清楚,在附图中:The foregoing and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:

图1示意性示出了根据本公开实施例的信息处理方法、装置、设备、介质和程序产品的应用场景图;FIG. 1 schematically shows an application scenario diagram of an information processing method, apparatus, device, medium, and program product according to an embodiment of the present disclosure;

图2示意性示出了根据本公开实施例的信息处理方法的流程图;FIG. 2 schematically shows a flowchart of an information processing method according to an embodiment of the present disclosure;

图3示意性示出了根据本公开又一实施例的信息处理方法的流程图;FIG. 3 schematically shows a flowchart of an information processing method according to yet another embodiment of the present disclosure;

图4示意性示出了根据本公开实施例的信息装置的结构框图;以及FIG. 4 schematically shows a structural block diagram of an information device according to an embodiment of the present disclosure; and

图5示意性示出了根据本公开实施例的适于实现信息处理方法的电子设备的方框图。FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for convenience of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. The terms "comprising", "comprising" and the like as used herein indicate the presence of stated features, steps, operations and/or components, but do not preclude the presence or addition of one or more other features, steps, operations or components.

在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning as commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly rigid manner.

在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where expressions like "at least one of A, B, and C, etc.," are used, they should generally be interpreted in accordance with the meaning of the expression as commonly understood by those skilled in the art (eg, "has A, B, and C") At least one of the "systems" shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ).

在相关技术中,在展示金融市场中产品的行情报价大多是采用定时刷新的方式更新,比如按照5秒钟1次的频率从后台应用服务器拉取报价数据,后台应用服务器启动5秒钟执行一次的线程定时刷新,从行情报价主数据源拉取报价数据,最终展示给用户。相关技术中的数据更新模式,存在多次异步处理过程,行情更新较慢,当网络请求延时还会导致延误用户的交易处理。In the related art, the market quotations of products in the display financial market are mostly updated by means of timed refresh. For example, the quotation data is pulled from the background application server at a frequency of once every 5 seconds, and the background application server is started and executed once every 5 seconds. The thread is refreshed regularly, and the quotation data is pulled from the main data source of market quotations, and finally displayed to the user. In the data update mode in the related art, there are multiple asynchronous processing processes, the market update is slow, and when the network request is delayed, the user's transaction processing will be delayed.

有鉴于此,本公开的实施例提供了一种信息处理方法,包括:响应于金融产品信息的变更,接收由数据源系统推送的金融产品信息变更日志,其中,金融产品变更日志中包括金融产品变更记录;通过解析金融产品变更日志,确定金融产品变更记录的类型;根据金融产品变更记录的类型,确定目标处理方式;按照目标处理方式处理金融产品变更记录,得到金融产品变更信息;以及向客户端发送金融产品变更信息。In view of this, embodiments of the present disclosure provide an information processing method, including: in response to changes in financial product information, receiving a change log of financial product information pushed by a data source system, wherein the change log of financial products includes financial products Change records; determine the type of financial product change records by analyzing the financial product change log; determine the target processing method according to the type of financial product change records; process the financial product change records according to the target processing method to obtain financial product change information; The terminal sends financial product change information.

图1示意性示出了根据本公开实施例的信息处理方法的应用场景图。FIG. 1 schematically shows an application scenario diagram of an information processing method according to an embodiment of the present disclosure.

如图1所示,根据该实施例的应用场景100可以包括终端设备101、102、103、网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。。As shown in FIG. 1 , an application scenario 100 according to this embodiment may include terminal devices 101 , 102 , 103 , a network 104 , and a server 105 . The network 104 is a medium used to provide a communication link between the terminal devices 101 , 102 , 103 and the server 105 . The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others. .

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages and the like. Various communication client applications may be installed on the terminal devices 101 , 102 and 103 , such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子没备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的客户端提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 105 may be a server that provides various services, such as a background management server (just an example) that provides support for the clients browsed by the user using the terminal devices 101 , 102 , and 103 . The background management server can analyze and process the received user requests and other data, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

需要说明的是,本公开实施例所提供的信息处理方法一般可以由服务器105执行。相应地,本公开实施例所提供的信息处理装置-般可以设置于服务器105中。本公开实施例所提供的信息处理方法也可以由不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群执行。相应地,本公开实施例所提供的信息处理装置也可以设置于不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群中。It should be noted that, the information processing method provided by the embodiments of the present disclosure may generally be executed by the server 105 . Correspondingly, the information processing apparatus provided by the embodiments of the present disclosure may generally be provided in the server 105 . The information processing method provided by the embodiments of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101 , 102 , 103 and/or the server 105 . Correspondingly, the information processing apparatus provided by the embodiments of the present disclosure may also be provided in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101 , 102 , 103 and/or the server 105 .

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

以下将基于图1描述的场景,通过图2和图3对本公开实施例的信息处理方法进行详细描述。Based on the scenario described in FIG. 1 , the information processing method of the embodiment of the present disclosure will be described in detail below with reference to FIG. 2 and FIG. 3 .

图2示意性示出了根据本公开实施例的信息处理方法的流程图。FIG. 2 schematically shows a flowchart of an information processing method according to an embodiment of the present disclosure.

如图2所示,该实施例的信息处理方法包括操作S210~操作S250。As shown in FIG. 2 , the information processing method of this embodiment includes operations S210 to S250.

在操作S210,响应于金融产品信息的变更,接收由数据源系统推送的金融产品信息变更日志,其中,金融产品变更日志中包括金融产品变更记录。In operation S210, in response to the change of the financial product information, a financial product information change log pushed by the data source system is received, wherein the financial product change log includes a financial product change record.

根据本公开的实施例,金融产品信息可以是金融市场中的账户贵金属、账户外汇、外汇汇率、账户商品等金融产品的信息,具体的可以是金融产品买入卖出的价格信息,也可以是其他金融产品的信息,在此不做限定。According to an embodiment of the present disclosure, the financial product information may be information of financial products such as account precious metals, account foreign exchange, foreign exchange rates, account commodities, etc. in the financial market. Specifically, it may be the price information for buying and selling financial products, or it may be Information on other financial products is not limited here.

根据本公开的实施例,数据源系统可以是记录金融产品信息的系统,可以记录金融产品的价格信息,还可以记录金融产品的其他变化信息。根据本公开的实施例,当金融产品信息发生变更时,数据源系统可以通过快速反应(Quick Response,QR)复制技术推送金融产品信息变更日志至分布式队列消息Kafka中。According to an embodiment of the present disclosure, the data source system may be a system that records financial product information, may record price information of financial products, and may also record other change information of financial products. According to the embodiment of the present disclosure, when the financial product information changes, the data source system can push the financial product information change log to the distributed queue message Kafka through the Quick Response (QR) replication technology.

在操作S220,通过解析金融产品变更日志,确定金融产品变更记录的类型。In operation S220, the type of the financial product change record is determined by parsing the financial product change log.

根据本公开的实施例,金融产品信息变更日志可以记录金融产品信息发生的变化,具体的可以记录金融产品信息的价格发生的变化,金融产品信息变更日志可以是SQL日志。According to an embodiment of the present disclosure, the financial product information change log may record changes in financial product information, specifically, may record changes in the price of financial product information, and the financial product information change log may be an SQL log.

根据本公开的实施例,可以对Kafka中的金融产品变更日志进行解析,确定金融产品变更记录的类型。例如,可以对账户贵金属报价表的SQL日志中的SQL日志语句进行解析,然后确定账户贵金属变更记录的类型,可以是修改记录、插入记录或者删除记录中的至少一种,在此不做限定。According to the embodiments of the present disclosure, the financial product change log in Kafka can be parsed to determine the type of the financial product change record. For example, the SQL log statement in the SQL log of the account precious metal quotation table can be parsed, and then the type of the account precious metal change record can be determined, which can be at least one of modification record, insert record or delete record, which is not limited here.

在操作S230,根据金融产品变更记录的类型,确定目标处理方式。In operation S230, the target processing mode is determined according to the type of the financial product change record.

根据本公开的实施例,金融产品变更记录可以有多种类型,根据金融产品变更记录的类型,可以选择对金融产品变更记录进行处理的方式作为目标处理方式。According to the embodiment of the present disclosure, the financial product change record may have multiple types, and according to the type of the financial product change record, the method of processing the financial product change record may be selected as the target processing method.

在操作S240,按照目标处理方式处理金融产品变更记录,得到金融产品变更信息。In operation S240, the financial product change record is processed according to the target processing mode to obtain financial product change information.

根据本公开的实施例,对金融产品变更记录进行处理后,可以得到信息更新后的金融产品变更信息。例如,可以对账户贵金属报价表的变更记录进行处理,然后得到更新后的账户贵金属报价变更信息。According to the embodiments of the present disclosure, after the financial product change record is processed, the financial product change information after the information is updated can be obtained. For example, the change record of the account precious metal quotation table can be processed, and then the updated account precious metal quotation change information can be obtained.

在操作S250,向客户端发送金融产品变更信息。In operation S250, the financial product modification information is sent to the client.

根据本公开的实施例,客户端可以是安装在移动终端用来接收信息的软件应用,可以展示金融产品信息。According to an embodiment of the present disclosure, the client may be a software application installed on the mobile terminal for receiving information, and may display financial product information.

根据本公开的实施例,可以向客户端发送金融产品变更信息,以使用户通过客户端查看金融产品变更信息。例如,可以向用户的客户端发送账户贵金属报价变更信息。According to the embodiments of the present disclosure, the financial product change information can be sent to the client, so that the user can view the financial product change information through the client. For example, the account precious metal quotation change information can be sent to the user's client.

根据本公开的实施例,在金融产品价格变更时,由数据源系统直接推送金融产品信息变更日志,然后对金融产品信息变更日志进行解析,根据金融产品信息变更日志中不同的金融产品信息变更记录的类型,按照对应的目标处理方式对金融产品信息变更记录进行处理,得到金融产品变更信息,并向客户端发送金融产品变更信息,使得金融产品变更信息在发生变化时,不需要从数据源系统主动拉取数据,而是由数据源系统直接推送,并且可以及时解析金融产品信息变更日志按照对应的目标处理方式对金融产品信息变更记录进行处理,将金融产品变更信息发送至客户端,所以至少部分地克服了金融产品的行情报价信息不能及时更新的技术问题,使得用户可以获取最新的行情报价信息。According to the embodiments of the present disclosure, when the price of a financial product changes, the data source system directly pushes the financial product information change log, and then parses the financial product information change log, according to different financial product information change records in the financial product information change log. According to the corresponding target processing method, the financial product information change record is processed, the financial product change information is obtained, and the financial product change information is sent to the client, so that when the financial product change information changes, it does not need to be changed from the data source system. Actively pulls the data, but pushes it directly from the data source system, and can analyze the financial product information change log in time, process the financial product information change record according to the corresponding target processing method, and send the financial product change information to the client, so at least It partially overcomes the technical problem that the market quotation information of financial products cannot be updated in time, so that users can obtain the latest market quotation information.

根据本公开的实施例,通过解析金融产品变更日志,确定金融产品变更记录的类型,可以包括:通过解析金融产品变更日志,识别金融产品变更记录中的目标字段;根据金融产品变更记录的目标字段,确定金融产品变更记录的类型。According to the embodiments of the present disclosure, determining the type of the financial product change record by parsing the financial product change log may include: identifying the target field in the financial product change record by parsing the financial product change log; according to the target field of the financial product change record , to determine the type of financial product change records.

根据本公开的实施例,目标字段可以是金融产品变更日志中的修改字段、插入字段或者删除字段中的至少一种,在解析金融产品变更日志时,可以由金融产品变更记录中的目标字段,确定金融产品变更记录的类型。例如,目标字段是修改字段,可以确定金融产品变更记录的类型是修改记录,目标字段是插入字段,可以确定金融产品变更记录的类型是插入记录。According to an embodiment of the present disclosure, the target field may be at least one of a modified field, an inserted field, or a deleted field in the financial product change log, and when parsing the financial product change log, the target field in the financial product change record can be Determine the type of financial product change records. For example, if the target field is a modification field, it can be determined that the type of the financial product change record is a modification record, and the target field is an insertion field, and it can be determined that the type of the financial product change record is an insertion record.

根据本公开的实施例,在解析金融产品变更日志时,可以识别金融产品变更记录中的目标字段,以便于确定金融产品变更记录的类型。According to the embodiments of the present disclosure, when parsing the financial product change log, the target field in the financial product change record can be identified, so as to determine the type of the financial product change record.

根据本公开的实施例,按照目标处理方式处理金融产品变更记录,得到金融产品变更信息,包括:在金融产品变更记录的类型为修改记录的情况下,根据金融产品的标识信息,查询缓存服务器中的已解析变更记录列表;在金融产品变更记录不存在于已解析变更记录列表中的情况下,通过解析金融产品变更记录,得到金融产品变更信息。According to an embodiment of the present disclosure, processing the financial product change record according to the target processing method to obtain the financial product change information includes: in the case that the type of the financial product change record is a modification record, querying the cache server according to the identification information of the financial product. The list of parsed change records; if the financial product change record does not exist in the parsed change record list, the financial product change information can be obtained by parsing the financial product change record.

根据本公开的实施例,在金融产品变更记录的类型为修改记录的情况下,为了使金融产品变更记录不被重复解析,在缓存服务器中金融产品的已解析变更记录列表不存在金融产品变更记录时,再对金融产品变更记录进行解析得到金融产品变更信息。例如,修改记录可以是在账户贵金属报价表中将金属A的价格由B元修改到C元,需要在缓存服务器查询是否存在对金属A的价格由B元修改到C元的变更记录,不存在时,解析修改记录对应的账户贵金属报价变更记录,得到账户贵金属报价变更信息。According to an embodiment of the present disclosure, when the type of the financial product change record is a modification record, in order to prevent the financial product change record from being repeatedly parsed, there is no financial product change record in the parsed change record list of financial products in the cache server. When , the financial product change records are analyzed to obtain financial product change information. For example, the modification record can be the modification of the price of metal A from B yuan to C yuan in the account precious metal quotation table. It is necessary to query the cache server whether there is a modification record of the price of metal A from B yuan to C yuan. There is no change record. , analyze the account precious metal quotation change record corresponding to the modification record, and obtain account precious metal quotation change information.

根据本公开的实施例,在解析修改记录的金融产品变更记录时,可以查询缓存服务器中的已解析变更记录列表,避免金融产品变更记录被重复解析。According to the embodiments of the present disclosure, when parsing the financial product change records of the modification records, the list of parsed change records in the cache server can be queried, so as to avoid repeated analysis of the financial product change records.

根据本公开的实施例,按照目标处理方式处理金融产品变更记录,得到金融产品变更信息,包括:在金融产品变更记录的类型为插入记录的情况下,根据金融产品变更记录的类型,确定第一变更标识信息;通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第一变更标识信息。According to the embodiments of the present disclosure, processing the financial product change record according to the target processing method to obtain the financial product change information includes: in the case that the type of the financial product change record is an insertion record, determining the first change record according to the type of the financial product change record. Change identification information; obtain financial product change information by analyzing the financial product change record, wherein the financial product change information includes the first change identification information.

根据本公开的实施例,第一变更标识信息可以给插入记录类型的金融产品变更记录赋值的字符串信息。According to an embodiment of the present disclosure, the first change identification information may be character string information assigned to the financial product change record of the insert record type.

根据本公开的实施例,当金融产品变更记录的类型是插入记录时,可以在解析金融产品变更记录时,将第一变更标识信息赋值到解析结果,得到金融产品变更信息。例如,插入记录可以是在账户贵金属报价表中添加金属D的价格,可以在解析对应的金融产品变更记录时,给金融产品变更记录的插入字段赋值金属D的第一变更标识信息,得到包括第一变更标识信息的金融产品变更信息。According to the embodiment of the present disclosure, when the type of the financial product change record is an insert record, when parsing the financial product change record, the first change identification information can be assigned to the analysis result to obtain the financial product change information. For example, the insertion record may be adding the price of metal D in the account precious metal quotation table, and when parsing the corresponding financial product change record, assign the first change identification information of metal D to the insertion field of the financial product change record, and obtain the information including the first change of metal D. 1. Change information of financial products that change the identification information.

根据本公开的实施例,在解析变更记录的金融产品变更记录时,可以对金融产品变更记录增加第一变更标识信息,以便确定金融产品变更信息为变更记录。According to the embodiment of the present disclosure, when analyzing the financial product change record of the change record, the first change identification information can be added to the financial product change record, so as to determine the financial product change information as the change record.

根据本公开的实施例,按照目标处理方式处理金融产品变更记录,得到金融产品变更信息,包括:在金融产品变更记录的类型为删除记录的情况下,根据金融产品变更记录的类型,确定第二变更标识信息;通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第二变更标识信息。According to an embodiment of the present disclosure, processing the financial product change record according to the target processing method to obtain the financial product change information includes: in the case that the type of the financial product change record is a deletion record, determining the second change record according to the type of the financial product change record. Change identification information; obtain financial product change information by analyzing the financial product change record, wherein the financial product change information includes second change identification information.

根据本公开的实施例,第二变更标识信息可以给删除记录类型的金融产品变更记录赋值的字符串信息。According to an embodiment of the present disclosure, the second change identification information may be character string information assigned to a financial product change record of the deletion record type.

根据本公开的实施例,当金融产品变更记录的类型是删除记录时,可以在解析金融产品变更记录时,将第二变更标识信息赋值到解析结果,得到金融产品变更信息。例如,删除记录可以是在账户贵金属报价表中添加金属E的价格,可以在解析对应的金融产品变更记录时,给金融产品变更记录的删除字段赋值金属E的第二变更标识信息,得到包括第二变更标识信息的金融产品变更信息。According to an embodiment of the present disclosure, when the type of the financial product change record is a deletion record, when analyzing the financial product change record, the second change identification information can be assigned to the analysis result to obtain the financial product change information. For example, the deletion record may be adding the price of metal E in the account precious metal quotation table, and when parsing the corresponding financial product change record, assign the second change identification information of metal E to the deletion field of the financial product change record, and obtain the information including the first change of metal E. 2. Change information of financial products that change the identification information.

根据本公开的实施例,在解析删除记录的金融产品变更记录时,可以对金融产品变更记录增加第二变更标识信息,以便确定金融产品变更信息为删除记录。According to the embodiment of the present disclosure, when analyzing the financial product change record of the deletion record, the second change identification information can be added to the financial product change record, so as to determine that the financial product change information is the deletion record.

图3示意性示出了根据本公开又一实施例的信息处理方法的流程图。FIG. 3 schematically shows a flowchart of an information processing method according to yet another embodiment of the present disclosure.

如图3所示,包括操作S301-操作S311。As shown in FIG. 3 , operations S301 to S311 are included.

在操作S301,接收数据源系统通过QR复制技术推送的金融产品信息变更日志。In operation S301, a change log of financial product information pushed by the data source system through the QR replication technology is received.

在操作S302,遍历金融产品信息变更日志。In operation S302, the financial product information change log is traversed.

在操作S303,解析金融产品信息变更日志,确定金融产品变更记录的类型。In operation S303, the financial product information change log is parsed, and the type of the financial product change record is determined.

在操作S304,根据金融产品变更记录的类型,确定目标处理方式。In operation S304, the target processing mode is determined according to the type of the financial product change record.

在操作S305,确定金融产品变更记录是否为修改记录,若是,执行操作S307,若否,执行操作S306。In operation S305, it is determined whether the financial product change record is a modification record, and if so, operation S307 is performed, and if not, operation S306 is performed.

在操作S306,确定金融产品变更记录是否为插入记录,若是,执行操作S308,若否,执行操作S309。In operation S306, it is determined whether the financial product change record is an insertion record, and if so, operation S308 is performed, and if not, operation S309 is performed.

在操作S307,查询缓存服务器中的已解析变更记录列表,在金融产品变更记录不存在于已解析变更记录列表时,执行步骤S310。In operation S307, query the parsed change record list in the cache server, and when the financial product change record does not exist in the parsed change record list, execute step S310.

在操作S305,在插入记录的金融产品变更记录添加第一变更标识信息,执行步骤S310。In operation S305, the first change identification information is added to the financial product change record of the inserted record, and step S310 is executed.

在操作S306,在删除记录的金融产品变更记录添加第二变更标识信息,执行步骤S310。In operation S306, the second change identification information is added to the financial product change record of the deleted record, and step S310 is executed.

在操作S310,解析金融产品变更记录,得到金融产品变更信息。In operation S310, the financial product change record is parsed to obtain financial product change information.

在操作S311,向客户端发送金融产品变更信息。In operation S311, the financial product modification information is sent to the client.

根据本公开的实施例,通过数据源系统主动向客户端推送金融产品变更信息,使得客户端的金融产品变更信息及时更新,用户可以及时根据更新后的金融产品变更信息进行金融产品的选择。According to the embodiments of the present disclosure, the data source system actively pushes the financial product change information to the client, so that the client's financial product change information is updated in time, and the user can select financial products according to the updated financial product change information in time.

根据本公开的实施例,上述信息处理方法还可以包括:按照预设频率,向客户端发送心跳检测数据;接收由客户端发送的心跳检测反馈信息,记录反馈时刻信息,反馈时刻信息表征接收到心跳检测反馈信息的时刻信息。According to an embodiment of the present disclosure, the above-mentioned information processing method may further include: sending heartbeat detection data to the client according to a preset frequency; receiving heartbeat detection feedback information sent by the client, recording feedback time information, and the feedback time information represents the received Time information of heartbeat detection feedback information.

根据本公开的实施例,预设频率可以是根据需要设置的发送心跳检测数据的时间频率,例如,预设频率可以2分钟或者3分钟,在此不做限定。According to an embodiment of the present disclosure, the preset frequency may be a time frequency for sending heartbeat detection data set as required, for example, the preset frequency may be 2 minutes or 3 minutes, which is not limited herein.

根据本公开的实施例,可以通过服务器向客户端发送心跳检测数据,客户端接收到心跳检测数据之后可以发送心跳检测反馈信息,并且记录发送心跳检测反馈信息的时刻信息为反馈时刻信息。例如,客户端在2022年1月1日0时0分0秒发送心跳检测反馈信息,反馈时刻信息就是2022年1月1日0时0分0秒。According to the embodiments of the present disclosure, the heartbeat detection data can be sent to the client through the server, and the client can send the heartbeat detection feedback information after receiving the heartbeat detection data, and record the time information of sending the heartbeat detection feedback information as the feedback time information. For example, the client sends heartbeat detection feedback information at 0:0:00 on January 1, 2022, and the feedback time information is 0:0:0 on January 1, 2022.

根据本公开的实施例,通过客户端发送的心跳检测反馈信息的反馈时刻信息,可以检测客户端的会话窗口是否保持状态。According to the embodiments of the present disclosure, it can be detected whether the session window of the client terminal is maintained through the feedback time information of the heartbeat detection feedback information sent by the client terminal.

根据本公开的实施例,上述信息处理方法还可以包括:查询预设时间段内的反馈时刻信息,得到查询结果信息;在查询结果信息满足预设条件的情况下,关闭用于响应客户端发起的服务请求的会话。According to an embodiment of the present disclosure, the above-mentioned information processing method may further include: querying feedback time information within a preset time period to obtain query result information; when the query result information satisfies a preset condition, closing the function for responding to the client's initiation Session of the service request.

根据本公开的实施例,预设时间段可以是根据需要设置的查询反馈时刻信息的时间段,例如,预设时间段可以是2分钟或者3分钟,在此不做限定。According to an embodiment of the present disclosure, the preset time period may be a time period for querying feedback time information set as required, for example, the preset time period may be 2 minutes or 3 minutes, which is not limited herein.

根据本公开的实施例,预设条件可以是根据需要设置的是否关闭用户会话的条件,例如,预设条件可以是反馈时刻信息不在4分钟内或者反馈时刻信息不在6分钟内,在此不做限定。According to an embodiment of the present disclosure, the preset condition may be a condition for whether to close the user session as required. For example, the preset condition may be that the feedback time information is not within 4 minutes or the feedback time information is not within 6 minutes, which is not done here. limited.

根据本公开的实施例,可以2分钟查询一次反馈时刻信息,当反馈时刻信息不在4分钟内时,可以将客户端的会话关闭。According to the embodiment of the present disclosure, the feedback time information can be queried once every 2 minutes, and when the feedback time information is not within 4 minutes, the session of the client can be closed.

根据本公开的实施例,根据预设条件可以关闭客户端的会话,可以减小服务器连接客户端的数量,从而提高服务器的工作效率。According to the embodiments of the present disclosure, the session of the client can be closed according to a preset condition, the number of clients connected by the server can be reduced, and the work efficiency of the server can be improved.

根据本公开的实施例,可以设置在一定时间段内没有通信的情况下,服务器自动断开,例如,可以设置检测10分钟内的通信情况。According to the embodiment of the present disclosure, it can be set that the server is automatically disconnected when there is no communication within a certain period of time, for example, it can be set to detect the communication situation within 10 minutes.

根据本公开的实施例,在根据客户端的服务请求建立长链接的时候,可以返回建立长链接的反馈时刻信息和客户端的IP等信息,然后将客户端的IP作为key值,会话和反馈时刻信息拼成数组添加到会话中。According to the embodiments of the present disclosure, when a long link is established according to the client's service request, the feedback time information for establishing the long link and the client's IP and other information can be returned, and then the client's IP is used as the key value, and the session and feedback time information are combined. Arrays are added to the session.

根据本公开的实施例,当接收到客户端发送的服务请求时,可以检测是否是第一次请求,如果是第一次请求,可以从数据源系统拉取金融产品信息,如果不是第一次请求,可以每两分钟对向客户端发送一次心跳检测数据,接收客户端发送的反馈时刻信息和IP,更新反馈时刻信息。According to an embodiment of the present disclosure, when a service request sent by a client is received, it can be detected whether it is the first request, and if it is the first request, the financial product information can be pulled from the data source system, and if it is not the first request Request, you can send heartbeat detection data to the client every two minutes, receive the feedback time information and IP sent by the client, and update the feedback time information.

根据本公开的实施例,在发送消息出错时或者长链接关闭时,可以关闭会话。According to an embodiment of the present disclosure, when there is an error in sending a message or when a long link is closed, the session can be closed.

根据本公开的实施例,通过websocket协议,可以实现客户端和服务端的全双工通信。Websocket目标维护单机可以同时在线连接2000个客户端,主要从CPU,内存和带宽三个方面来考虑:1、websocket中长链接是TCP的,系统级别的占用大概在4KB,再加上服务器中间件暂用4KB计算,对象WSsession大小约为2KB,总的常驻内存约为20M;2、由于本公开实施例的应用场景中涉及到的计算很少,cpu满足需求;3、每条消息最大约为3KB,主机大概每秒一次报价,总占用带宽约为6M,可以满足客户端同时在线连接2000个。According to the embodiments of the present disclosure, through the websocket protocol, full-duplex communication between the client and the server can be implemented. Websocket target maintenance single machine can connect 2000 clients online at the same time, mainly from three aspects of CPU, memory and bandwidth: 1. The long link in websocket is TCP, and the system-level occupation is about 4KB, plus server middleware Temporarily using 4KB for calculation, the size of the object WSsession is about 2KB, and the total resident memory is about 20M; 2. Since there are few calculations involved in the application scenario of the embodiment of the present disclosure, the CPU meets the requirements; 3. The maximum value of each message is about It is 3KB, the host quotes about once per second, and the total occupied bandwidth is about 6M, which can satisfy 2000 simultaneous online connections of clients.

根据本公开的实施例,通过客户端反馈的心跳检测数据的反馈时刻信息管理服务端与客户端的会话链接,可以有效调节系统资源的占用率。According to the embodiments of the present disclosure, the session link between the server and the client can be managed through the feedback time information of the heartbeat detection data fed back by the client, so that the occupancy rate of system resources can be effectively adjusted.

根据本公开的实施例,通过使用分布式消息队列和websocket技术主动向客户端推送金融产品信息,解决了金融产品的行情报价信息不能及时更新的问题,提升了用户体验,保障用户在进行金融产品交易处理时获得实时信息,满足用户对金融产品的需求。According to the embodiments of the present disclosure, by using the distributed message queue and websocket technology to actively push financial product information to the client, the problem that the market quotation information of financial products cannot be updated in time is solved, the user experience is improved, and the user is guaranteed to conduct financial products. Real-time information is obtained during transaction processing to meet users' needs for financial products.

基于上述信息处理方法,本公开还提供了一种信息处理装置。以下将结合图4对该装置进行详细描述。Based on the above information processing method, the present disclosure also provides an information processing apparatus. The device will be described in detail below with reference to FIG. 4 .

图4示意性示出了根据本公开实施例的信息处理装置的结构框图。FIG. 4 schematically shows a structural block diagram of an information processing apparatus according to an embodiment of the present disclosure.

如图4所示,该实施例的信息处理装置400包括第一接收模块410、第一确定模块420、第二确定模块430、处理模块440和第一发送模块450。As shown in FIG. 4 , the information processing apparatus 400 of this embodiment includes a first receiving module 410 , a first determining module 420 , a second determining module 430 , a processing module 440 and a first sending module 450 .

第一接收模块410用于响应于金融产品信息的变更,接收由数据源系统推送的金融产品信息变更日志,其中,金融产品变更日志中包括金融产品变更记录。在一实施例中,第一接收模块410可以用于执行前文描述的操作S210,在此不再赘述。The first receiving module 410 is configured to, in response to the change of the financial product information, receive the financial product information change log pushed by the data source system, wherein the financial product change log includes the financial product change record. In an embodiment, the first receiving module 410 may be configured to perform the operation S210 described above, which will not be repeated here.

第一确定模块420用于通过解析金融产品变更日志,确定金融产品变更记录的类型。在一实施例中,第一确定模块420可以用于执行前文描述的操作S220,在此不再赘述。The first determining module 420 is configured to determine the type of the financial product change record by parsing the financial product change log. In an embodiment, the first determining module 420 may be configured to perform the operation S220 described above, which will not be repeated here.

第二确定模块430用于根据金融产品变更记录的类型,确定目标处理方式。在一实施例中,第二确定模块430可以用于执行前文描述的操作S230,在此不再赘述。The second determining module 430 is configured to determine the target processing method according to the type of the financial product change record. In an embodiment, the second determining module 430 may be configured to perform the operation S230 described above, which will not be repeated here.

处理模块440用于按照目标处理方式处理金融产品变更记录,得到金融产品变更信息。在一实施例中,处理模块440可以用于执行前文描述的操作S230,在此不再赘述。The processing module 440 is configured to process the financial product change record according to the target processing mode, and obtain financial product change information. In an embodiment, the processing module 440 may be configured to perform the operation S230 described above, which will not be repeated here.

第一发送模块450用于向客户端发送金融产品变更信息。在一实施例中,第一发送模块450可以用于执行前文描述的操作S230,在此不再赘述。The first sending module 450 is configured to send financial product modification information to the client. In an embodiment, the first sending module 450 may be configured to perform the operation S230 described above, which will not be repeated here.

根据本公开的实施例,在金融产品价格变更时,由数据源系统直接推送金融产品信息变更日志,然后对金融产品信息变更日志进行解析,根据金融产品信息变更日志中不同的金融产品信息变更记录的类型,按照对应的目标处理方式对金融产品信息变更记录进行处理,得到金融产品变更信息,并向客户端发送金融产品变更信息,使得金融产品变更信息在发生变化时,不需要从数据源系统主动拉取数据,而是由数据源系统直接推送,并且可以及时解析金融产品信息变更日志按照对应的目标处理方式对金融产品信息变更记录进行处理,将金融产品变更信息发送至客户端,所以至少部分地克服了金融产品的行情报价信息不能及时更新的技术问题,使得用户可以获取最新的行情报价信息。According to the embodiments of the present disclosure, when the price of a financial product changes, the data source system directly pushes the financial product information change log, and then parses the financial product information change log, according to different financial product information change records in the financial product information change log. According to the corresponding target processing method, the financial product information change record is processed, the financial product change information is obtained, and the financial product change information is sent to the client, so that when the financial product change information changes, it does not need to be changed from the data source system. Actively pulls the data, but pushes it directly from the data source system, and can analyze the financial product information change log in time, process the financial product information change record according to the corresponding target processing method, and send the financial product change information to the client, so at least It partially overcomes the technical problem that the market quotation information of financial products cannot be updated in time, so that users can obtain the latest market quotation information.

根据本公开的实施例,上述第一确定模块420可以包括第一确定单元和第二确定单元。其中,第一确定单元,用于通过解析金融产品变更日志,识别金融产品变更记录中的目标字段。第二确定单元,用于根据金融产品变更记录的目标字段,确定金融产品变更记录的类型。According to an embodiment of the present disclosure, the above-mentioned first determination module 420 may include a first determination unit and a second determination unit. Wherein, the first determining unit is configured to identify the target field in the financial product change record by parsing the financial product change log. The second determination unit is configured to determine the type of the financial product change record according to the target field of the financial product change record.

根据本公开的实施例,上述处理模块440可以包括第一处理单元和第二处理单元。其中,第一处理单元,用于在金融产品变更记录的类型为修改记录的情况下,根据金融产品的标识信息,查询缓存服务器中的已解析变更记录列表。第二处理单元,用于在金融产品变更记录不存在于已解析变更记录列表中的情况下,通过解析金融产品变更记录,得到金融产品变更信息。According to an embodiment of the present disclosure, the above-mentioned processing module 440 may include a first processing unit and a second processing unit. The first processing unit is configured to query the parsed change record list in the cache server according to the identification information of the financial product when the type of the financial product change record is a modification record. The second processing unit is configured to obtain the financial product change information by analyzing the financial product change record when the financial product change record does not exist in the parsed change record list.

根据本公开的实施例,上述处理模块440可以包括第三处理单元和第四处理单元。其中,第三处理单元,用于在金融产品变更记录的类型为插入记录的情况下,根据金融产品变更记录的类型,确定第一变更标识信息;第四处理单元,用于通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第一变更标识信息。According to an embodiment of the present disclosure, the above-mentioned processing module 440 may include a third processing unit and a fourth processing unit. Wherein, the third processing unit is used to determine the first change identification information according to the type of the financial product change record when the type of the financial product change record is an insert record; the fourth processing unit is used to analyze the financial product change by analyzing record to obtain financial product modification information, wherein the financial product modification information includes first modification identification information.

根据本公开的实施例,上述处理模块440可以包括第五处理单元和第六处理单元。其中,第五处理单元,用于在金融产品变更记录的类型为删除记录的情况下,根据金融产品变更记录的类型,确定第二变更标识信息。第六处理单元,用于通过解析金融产品变更记录,得到金融产品变更信息,其中,金融产品变更信息中包括第二变更标识信息。According to an embodiment of the present disclosure, the above-mentioned processing module 440 may include a fifth processing unit and a sixth processing unit. Wherein, the fifth processing unit is configured to determine the second modification identification information according to the type of the financial product modification record when the type of the financial product modification record is a deletion record. The sixth processing unit is configured to obtain financial product modification information by analyzing the financial product modification record, wherein the financial product modification information includes second modification identification information.

根据本公开的实施例,上述装置400还可以包括第二发送模块和记录模块。其中,第二发送模块,用于按照预设频率,向客户端发送心跳检测数据。记录模块,用于接收由客户端发送的心跳检测反馈信息,记录反馈时刻信息,反馈时刻信息表征接收到心跳检测反馈信息的时刻信息。According to an embodiment of the present disclosure, the above-mentioned apparatus 400 may further include a second sending module and a recording module. The second sending module is configured to send heartbeat detection data to the client according to a preset frequency. The recording module is used for receiving the heartbeat detection feedback information sent by the client, and recording the feedback time information, and the feedback time information represents the time information at which the heartbeat detection feedback information is received.

根据本公开的实施例,上述装置400还可以包括查询模块和关闭模块。其中,查询模块,用于查询预设时间段内的反馈时刻信息,得到查询结果信息。关闭模块,用于在查询结果信息满足预设条件的情况下,关闭用于响应客户端发起的服务请求的会话。According to an embodiment of the present disclosure, the above-mentioned apparatus 400 may further include a query module and a closing module. The query module is used for querying feedback time information within a preset time period to obtain query result information. The closing module is used to close the session for responding to the service request initiated by the client when the query result information satisfies the preset condition.

根据本公开的实施例,第一接收模块410、第一确定模块420、第二确定模块430、处理模块440和第一发送模块450中的任意多个模块可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本公开的实施例,第一接收模块410、第一确定模块420、第二确定模块430、处理模块440和第一发送模块450中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,第一接收模块410、第一确定模块420、第二确定模块430、处理模块440和第一发送模块450中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to an embodiment of the present disclosure, any plurality of modules among the first receiving module 410 , the first determining module 420 , the second determining module 430 , the processing module 440 and the first sending module 450 may be combined in one module to implement, or wherein Any one of the modules can be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first receiving module 410, the first determining module 420, the second determining module 430, the processing module 440, and the first transmitting module 450 may be implemented at least partially as a hardware circuit, such as a field Programmable Gate Array (FPGA), Programmable Logic Array (PLA), System-on-Chip, System-on-Substrate, System-on-Package, Application-Specific Integrated Circuit (ASIC), or any other reasonable It can be realized by hardware or firmware, or by any one of the three implementation modes of software, hardware and firmware, or by any suitable combination of any of them. Alternatively, at least one of the first receiving module 410, the first determining module 420, the second determining module 430, the processing module 440 and the first transmitting module 450 may be implemented at least partially as a computer program module, when the computer program module is At runtime, the corresponding function can be executed.

图5示意性示出了根据本公开实施例的适于实现信息处理方法的电子设备的方框图。FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure.

如图5所示,根据本公开实施例的电子设备500包括处理器501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。处理器501例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC))等等。处理器501还可以包括用于缓存用途的板载存储器。处理器501可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 5 , an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can be loaded into a random access memory (RAM) 503 according to a program stored in a read only memory (ROM) 502 or from a storage portion 508 program to perform various appropriate actions and processes. The processor 501 may include, for example, a general purpose microprocessor (eg, a CPU), an instruction set processor and/or a related chipset, and/or a special purpose microprocessor (eg, an application specific integrated circuit (ASIC)), and the like. The processor 501 may also include on-board memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present disclosure.

在RAM 503中,存储有电子设备500操作所需的各种程序和数据。处理器501、ROM502以及RAM 503通过总线504彼此相连。处理器501通过执行ROM 502和/或RAM 503中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 502和RAM 503以外的一个或多个存储器中。处理器501也可以通过执行存储在一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 503, various programs and data necessary for the operation of the electronic device 500 are stored. The processor 501 , the ROM 502 and the RAM 503 are connected to each other through a bus 504 . The processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 502 and/or the RAM 503 . Note that the program may also be stored in one or more memories other than the ROM 502 and the RAM 503 . The processor 501 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in one or more memories.

根据本公开的实施例,电子设备500还可以包括输入/输出(I/O)接口505,输入/输出(I/O)接口505也连接至总线504。电子设备500还可以包括连接至I/O接口505的以下部件中的一项或多项:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。According to an embodiment of the present disclosure, the electronic device 500 may further include an input/output (I/O) interface 505 which is also connected to the bus 504 . Electronic device 500 may also include one or more of the following components connected to I/O interface 505: input portion 506 including keyboard, mouse, etc.; including components such as cathode ray tube (CRT), liquid crystal display (LCD), etc., and An output section 507 of a speaker or the like; a storage section 508 including a hard disk or the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist alone without being assembled into the device/system. device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed, implement the method according to the embodiment of the present disclosure.

根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质,例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM502和/或RAM 503和/或ROM 502和RAM 503以外的一个或多个存储器。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as, but not limited to, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM) , erasable programmable read only memory (EPROM or flash memory), portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include one or more memories other than ROM 502 and/or RAM 503 and/or ROM 502 and RAM 503 described above.

本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。当计算机程序产品在计算机系统中运行时,该程序代码用于使计算机系统实现本公开实施例所提供的上述方法。Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flowchart. When the computer program product runs in the computer system, the program code is used to make the computer system implement the above-mentioned methods provided by the embodiments of the present disclosure.

在该计算机程序被处理器501执行时执行本公开实施例的装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。The above-described functions defined in the apparatus of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501 . According to embodiments of the present disclosure, the systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules.

在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分509被下载和安装,和/或从可拆卸介质511被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal over a network medium, and downloaded and installed through the communication section 509, and/or installed from a removable medium 511. The program code embodied by the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.

在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被处理器501执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 509 and/or installed from the removable medium 511 . When the computer program is executed by the processor 501, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the above-described systems, apparatuses, apparatuses, modules, units, etc. can be implemented by computer program modules.

根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages, and specifically, high-level procedures and/or object-oriented programming may be used. programming language, and/or assembly/machine language to implement these computational programs. Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合或/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。Those skilled in the art will appreciate that various combinations and/or combinations of features recited in various embodiments and/or claims of the present disclosure are possible, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments of the present disclosure and/or in the claims may be made without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of this disclosure.

以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。Embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only, and are not intended to limit the scope of the present disclosure. Although the various embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims (11)

1. An information processing method comprising:
responding to the change of the financial product information, receiving a financial product information change log pushed by a data source system, wherein the financial product change log comprises a financial product change record;
determining the type of the financial product change record by analyzing the financial product change log;
determining a target processing mode according to the type of the financial product change record;
processing the financial product change record according to the target processing mode to obtain financial product change information; and
and sending the financial product change information to a client.
2. The method of claim 1, wherein the determining a type of financial product change record by parsing the financial product change log comprises:
identifying a target field in a financial product change record by analyzing the financial product change log;
and determining the type of the financial product change record according to the target field of the financial product change record.
3. The method of claim 1, wherein said processing the financial product change record in the target processing manner to obtain financial product change information comprises:
under the condition that the type of the financial product change record is a modification record, inquiring an analyzed change record list in a cache server according to the identification information of the financial product;
and when the financial product change record does not exist in the analyzed change record list, analyzing the financial product change record to obtain the financial product change information.
4. The method of claim 1, wherein said processing the financial product change record in the target processing manner to obtain financial product change information comprises:
under the condition that the type of the financial product change record is an insertion record, determining first change identification information according to the type of the financial product change record;
and analyzing the financial product change record to obtain the financial product change information, wherein the financial product change information comprises the first change identification information.
5. The method of claim 1, wherein said processing the financial product change record in the target processing manner to obtain financial product change information comprises:
determining second change identification information according to the type of the financial product change record under the condition that the type of the financial product change record is a deletion record;
and analyzing the financial product change record to obtain the financial product change information, wherein the financial product change information comprises the second change identification information.
6. The method of claim 1, further comprising:
sending heartbeat detection data to the client according to a preset frequency;
receiving heartbeat detection feedback information sent by the client, and recording feedback time information, wherein the feedback time information represents the time information of the received heartbeat detection feedback information.
7. The method of claim 6, further comprising:
inquiring the feedback time information in a preset time period to obtain inquiry result information;
and closing the session for responding to the service request initiated by the client under the condition that the query result information meets the preset condition.
8. An information processing apparatus comprising:
the first receiving module is used for responding to the change of the financial product information and receiving a financial product information change log pushed by the data source system, wherein the financial product change log comprises a financial product change record;
the first determining module is used for determining the type of the financial product change record by analyzing the financial product change log;
the second determining module is used for determining a target processing mode according to the type of the financial product change record;
the processing module is used for processing the financial product change record according to the target processing mode to obtain financial product change information; and
and the first sending module is used for sending the financial product change information to the client.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 7.
CN202210506258.3A 2022-05-10 2022-05-10 Information processing method, information processing device, electronic equipment and storage medium Pending CN114896260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210506258.3A CN114896260A (en) 2022-05-10 2022-05-10 Information processing method, information processing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210506258.3A CN114896260A (en) 2022-05-10 2022-05-10 Information processing method, information processing device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114896260A true CN114896260A (en) 2022-08-12

Family

ID=82722589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210506258.3A Pending CN114896260A (en) 2022-05-10 2022-05-10 Information processing method, information processing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114896260A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934737A (en) * 2022-12-08 2023-04-07 北京京东乾石科技有限公司 Data processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588380A (en) * 2008-05-23 2009-11-25 三竹资讯股份有限公司 Information transmission and operation method for wireless communication device
CN103491102A (en) * 2013-09-30 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method, system and device for monitoring stability of internet audio and video
CN111444200A (en) * 2020-02-27 2020-07-24 中国平安人寿保险股份有限公司 Data updating method and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588380A (en) * 2008-05-23 2009-11-25 三竹资讯股份有限公司 Information transmission and operation method for wireless communication device
CN103491102A (en) * 2013-09-30 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method, system and device for monitoring stability of internet audio and video
CN111444200A (en) * 2020-02-27 2020-07-24 中国平安人寿保险股份有限公司 Data updating method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934737A (en) * 2022-12-08 2023-04-07 北京京东乾石科技有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113704222B (en) A method and device for processing a service request
CN111881329A (en) An account balance management method and system
WO2020088050A1 (en) Information generation method and device
WO2022257604A1 (en) Method and apparatus for determining user tag
CN114372800A (en) Transaction processing methods, apparatus, equipment, media and products
CN114297278A (en) Batch data fast writing method, system and device
CN116743874A (en) Task processing methods, devices, equipment and media
CN115801764A (en) File transmission method, device, equipment and storage medium
CN113378346A (en) Method and device for model simulation
CN114896260A (en) Information processing method, information processing device, electronic equipment and storage medium
CN111240948A (en) Experience data processing method and device, computer equipment and storage medium
CN114780361A (en) Log generation method, device, computer system and readable storage medium
CN113763083B (en) Information processing method and device
CN114443663A (en) Data table processing method, device, equipment and medium
CN116561013B (en) Test methods, devices, electronic equipment and media based on the target service framework
CN111325621A (en) Protocol processing method, device, computer system and medium
WO2020147510A1 (en) An information pushing method and device
CN116662430A (en) Data query method, device, equipment, medium and product applied to multi-system interaction
CN113590425B (en) Data processing method, apparatus, device, medium, and program product
CN114443620A (en) Business data processing method, device, electronic device and storage medium
CN113821519B (en) Data processing method and domain drive design architecture
CN115086212A (en) Web page testing method and device
CN114547090A (en) Data query method and device, electronic equipment and storage medium
CN114443666A (en) Data processing method, device, electronic equipment and medium
CN114418702A (en) Method and device for confirming order state to be paid based on time window

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