CN113313600B - Message processing method, device and system, storage medium and electronic device - Google Patents

Message processing method, device and system, storage medium and electronic device Download PDF

Info

Publication number
CN113313600B
CN113313600B CN202010121791.9A CN202010121791A CN113313600B CN 113313600 B CN113313600 B CN 113313600B CN 202010121791 A CN202010121791 A CN 202010121791A CN 113313600 B CN113313600 B CN 113313600B
Authority
CN
China
Prior art keywords
platform
target
message
service message
account
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.)
Active
Application number
CN202010121791.9A
Other languages
Chinese (zh)
Other versions
CN113313600A (en
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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202010121791.9A priority Critical patent/CN113313600B/en
Publication of CN113313600A publication Critical patent/CN113313600A/en
Application granted granted Critical
Publication of CN113313600B publication Critical patent/CN113313600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/06Asset management; Financial planning or analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a message processing method, a message processing device, a message processing system, a storage medium and an electronic device. Wherein the method comprises the following steps: receiving a target service message in a first platform, wherein the first platform is used for providing a management function of a target product for a second platform, and the second platform is a trading platform of the target product; storing the target service message to a target message queue, wherein the target message queue is used for storing service messages which belong to the same type as the target service message; the target service message in the target message queue is processed by the target service instance that matches the target message queue. The application solves the technical problem of message loss in the related technology.

Description

Message processing method, device and system, storage medium and electronic device
Technical Field
The present application relates to the field of finance, and in particular, to a method, an apparatus and a system for processing a message, a storage medium, and an electronic apparatus.
Background
With the improvement of the living standard of people, the available funds in the hands are more and more, and more economic benefits can be obtained through the investment of some financial and financial products. The financial products (FINANCIAL PRODUCTS) refer to various carriers of the funds-transfer process, including currency, gold, foreign exchange, securities, etc. That is, these financial products are the buying and selling objects of the financial market, and the suppliers and the consumers form the price of the financial products, such as the interest rate or the yield rate, through the market competition principle, and finally complete the transaction, thereby achieving the purpose of financing. Such as stocks, futures, options, policies, etc., are financial assets (FINANCIAL ASSETS), also known as financial instruments (FINANCIAL INSTRUMENTS), also known as securities (Securities).
With the deep advancement of the construction of the multi-level capital market system in China, the securities industry has become a popular industry, and a large number of sales channels are accessed and a large number of investors are introduced, so that the possibility of losing messages of the manager or the investors can exist in the current real-time message processing mechanism during the management process of the manager or the use process of the investors.
Similarly, in the fields of games, social contact, and the like, each game platform or social contact platform needs to establish a transaction system of products such as game props and social props, and similar problems exist in the process of using the system by users.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a message processing method, a device and a system, a storage medium and an electronic device, which are used for at least solving the technical problem of message loss in the related technology.
According to an aspect of an embodiment of the present application, there is provided a method for processing a message, including: receiving a target service message in a first platform, wherein the first platform is used for providing a management function of a target product for a second platform, and the second platform is a trading platform of the target product; storing the target service message to a target message queue, wherein the target message queue is used for storing service messages which belong to the same type as the target service message; the target service message in the target message queue is processed by the target service instance that matches the target message queue.
According to another aspect of the embodiment of the present application, there is also provided a message processing apparatus, including: the receiving unit is used for receiving the target service message in a first platform, wherein the first platform is used for providing a management function of a target product for a second platform, and the second platform is a replacement platform of the target product; a storage unit, configured to store a target service message to a target message queue, where the target message queue is configured to store a service message that belongs to the same type as the target service message; a processing unit for processing the target service message in the target message queue by the target service instance matched with the target message queue.
According to another aspect of the embodiment of the present application, there is also provided a message processing system, including: the system comprises a first platform, a second platform and a target message queue, wherein the first platform is used for storing received target service messages to the target message queue and processing the target service messages in the target message queue through target service instances matched with the target message queue, the first platform is used for providing a management function of target products for the second platform, the second platform is a replacement platform of the target products, and the target message queue is used for storing service messages which belong to the same type as the target service messages; and the second platform is used for sending the target business message to the first platform.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above-described method when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the method described above by the computer program.
For the messages sent by the manager of the first platform or the investor producer in the related technology, a real-time processing mode is adopted, once the processing party is down or fails to process, the stored messages or messages failing to process are lost, the processing party can continue to process new messages or next messages failing to process which are received subsequently, and the possibility of losing the messages (such as storage loss, sudden crash and the like) exists when a large number of messages are received. In the embodiment of the application, for different types of messages, the corresponding message queues are used for storing floods, and the service instance can read and process the messages from the message queues according to own processing conditions, so that the technical problem of message loss in the related technology can be solved, and the technical effect of avoiding message loss is further achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of a message processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative message processing method according to an embodiment of the application;
FIG. 3 is a schematic diagram of an alternative message processing system according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an alternative message processing apparatus according to an embodiment of the application;
And
Fig. 5 is a block diagram of a structure of a terminal according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The financial products in the current market are complex in category and huge in quantity, and are not difficult for professional investors to select investment targets, and if each platform online APP establishes own system, the operation is complex and the cost is high.
Similarly, in the fields of games, social contact and the like, products are complicated in types and large in quantity, and for users, especially new users, it is difficult to find products such as game props and social props required by the users when the users start to use the products, and if each game or online APP of the social contact platform establishes own system, the operation is complex and the cost is high.
In order to overcome the problem, according to an aspect of the embodiments of the present application, there is provided a method embodiment of a message processing method based on an intelligent investment advisor system, where the method can be applied to the fields of finance, games, social interaction, etc., and the system formed by the method is equivalent to a financial service system, for example. The system analyzes the process of matching customer needs to financial assets by means of artificial intelligence. According to the characteristics of personal investors such as risk preference, financial condition, financial goal and the like, an intelligent algorithm and a portfolio theory model (generally, the portfolio theory proposed by Markov) are applied to provide intelligent investment management service for users, continuously track market dynamics and adjust asset allocation schemes. Compared with the traditional investment consultant service, the core characteristics of the financial service also embody standardization of service flow and discipline of investment decision by means of an objective investment combination model. The main advantages are that: intelligent, passive and low management cost. Similarly, when the method is applied to the fields of games and social contact, the method can recommend proper virtual products for the users according to the current game stage, game scene, social contact scene and the like of the users so as to meet the game or social contact requirements.
Alternatively, in this embodiment, the method embodiment of the message processing method based on the intelligent investment advisor system described above may be applied to the hardware environment as shown in fig. 1. The environment (i.e., the first platform) mainly includes: the product service subsystem is used for receiving the management instruction of the manager on the second platform through the first interface and managing the target product according to the instruction of the management instruction. And the exchange service subsystem (also called as a transaction service subsystem) is provided with a second interface and is used for receiving a exchange request sent by an investor on the second platform through the second interface and exchanging a target product by using the virtual resource according to the indication of the exchange request.
The service subsystem manages the target product according to the instruction of the management instruction, and can be used for carrying out product configuration of financial products, carrying out customer analysis on customers, carrying out recommendation of the financial products and the like. The exchange service subsystem uses the virtual resource to exchange for the target product (or financial product) as indicated by the exchange request (or referred to as transaction request), where the transaction includes: purchase, add, store, sell, remove, etc.
The instructions, messages and the like sent by the manager or the investor can be processed in an asynchronous mode, the manager or the investor sends the target service message to the first platform through the second platform, the first platform stores the received target service message to a target message queue, the messages are cached through the queue, and the target service message in the target message queue is processed through the target service instance matched with the target message queue.
The message processing method according to the embodiment of the present application may be performed by the first platform, and fig. 2 is a flowchart of an alternative message processing method according to the embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S101, receiving a target service message in a first platform, wherein the first platform is used for providing a management function of a target product for a second platform, and the second platform is a replacement platform of the target product. The second platform can exist in the situations of APP client, HTTP webpage client, public numbers of instant messaging applications and the like, and the first platform provides services for the second platform in the form of services.
Step S102, storing the target service message to a target message queue, wherein the target message queue is used for storing the service message which belongs to the same type as the target service message.
Step S103, the target service message in the target message queue is processed by the target service instance matched with the target message queue.
The products can be different according to different application fields, such as financial products (the exchange platform is equivalent to a sales platform at the moment) such as stocks, funds, bonds and the like in the financial field, game products such as game roles, game props and the like in the game field, and social products such as social props and the like in the social field; the virtual resources are also different according to the application fields, such as currency in the financial field, gold coins, points and the like in the game field, virtual currency in the social field and the like; related tasks may be performed in accordance with a user-selected portfolio scheme, i.e., tasks that trade virtual resources for products, such as purchasing financial products using currency, social props using virtual currency, etc. For the sake of description unification, the following unification is described by taking application to the financial field as an example, and similar to the application of the solution of the present application in other fields, the description is omitted.
For the messages sent by the manager of the first platform or the investor producer in the related technology, a real-time processing mode is adopted, once the processing party is down or fails to process, the stored messages or messages failing to process are lost, the processing party can continue to process new messages or next messages failing to process which are received subsequently, and the possibility of losing the messages (such as storage loss, sudden crash and the like) exists when a large number of messages are received. Through the steps of the application, for different types of messages, the corresponding message queues are used for storing floods, and the service instance can read and process the messages from the message queues according to own processing conditions, so that the technical problem of message loss in the related technology can be solved, and the technical effect of avoiding message loss is further achieved. The technical scheme of the application is further described in detail below in conjunction with the steps shown in fig. 2.
In the technical scheme provided in step S101, the target service message is received in a first platform, where the first platform is used to provide a management function of a financial product (i.e., a target product) for a second platform, and the second platform is a sales platform (i.e., a replacement platform) of the financial product.
In the above embodiment, receiving the target service message in the first platform includes at least one of:
The first business information sent by the first account is received through a first interface of the first platform, the first interface is an interface which is provided by the first platform to the second platform and used for interacting with the first account, the first account is an account for purchasing financial products in the second platform, the first business information is used for requesting to execute tasks associated with the financial products, the target business information comprises the first business information, and for the second platform, the financial products of the second platform can be sold, and financial products of other third platforms (such as proxy foundation systems) can also be sold. When receiving the first service message sent by the first account through the first interface of the first platform, for example, receiving the first service message for representing purchasing the financial product through the first interface of the first platform, or receiving the first service message for representing querying the financial product through the first interface of the first platform, namely, purchasing, selling, querying and the like of the financial product;
Receiving a second service message sent by a second account through a second interface of the first platform, wherein the second interface is an interface provided by the first platform to the second platform and used for interacting with the second account, the second account is an account for managing financial products in the second platform, the second service message is used for requesting to execute tasks for managing the financial products, such as adding or reducing combinations of the financial products, adding or reducing the financial products, and the like, and the target service message comprises the second service message;
And receiving a third service message, wherein the third service message is used for requesting to execute an offline task of a financial product, such as calculating the accumulated sales volume, the profit situation and the like of a certain financial product, and the target service message comprises the third service message.
Optionally, receiving the target service message in the first platform may further include: after sending a purchase request (i.e. a swap request) to the third platform, receiving a fourth service message returned by the third platform, wherein the purchase request is used for purchasing a financial product from the third platform for the first account number in the second platform, the fourth service message is used for indicating that a purchase result (i.e. a swap result) of purchasing the financial product from the third platform is obtained, and the target service message comprises the fourth service message.
Optionally, after receiving the first service message sent by the first account through the first interface of the first platform, the method further includes authenticating as follows:
And 1, decrypting the data packet carrying the first service message by using a platform public key of a second platform, wherein the platform public key of the second platform is a key pair matched with a platform private key of the second platform, and one of the platform public key of the second platform and the platform private key of the second platform is used for decrypting the information encrypted by the other.
And 2, because the platform private key is the platform private key and is not disclosed externally, under the condition that the data packet carrying the first service message is successfully decrypted, the data source platform is legal, and the first service message carried in the data packet is acquired.
And step 3, searching an account public key and a signature scheme of the first account according to the first account obtained from the first field of the first service message.
And 4, decrypting the data of the second field in the first service message by using an account public key of the second account, determining signature information corresponding to the decrypted second field by using a signature scheme, wherein the account public key of the second account is a secret key pair matched with an account private key of the second account, one of the account public key of the second account and the account private key of the second account is used for decrypting the information encrypted by the other, the signature scheme can be a signature algorithm, and the corresponding signature information can be obtained after a section of information (such as the second field) is processed by using the signature algorithm.
And step 5, determining that the authentication passes under the condition that the signature information determined by using the signature scheme is consistent with the signature information carried by the first field, and further executing step 102.
In the technical solution provided in step S102, the target service message is stored in a target message queue, where the target message queue is used to store service messages that belong to the same type as the target service message.
In the above embodiment, a corresponding message queue may be created for each type of task (such as purchasing financial accounting, querying financial accounting, offline computing, etc.), and when the target service message is stored in the target message queue, the task type to which the task indicated by the target service message belongs may be searched first; and storing the target business message into a target message queue matched with the task type in a plurality of message queues, wherein the task type matched with any two message queues in the plurality of message queues is different.
In the technical solution provided in step S103, the target service message in the target message queue is processed by the target service instance matched with the target message queue.
In the above embodiment, processing the target service message in the target message queue by the target service instance matching the target message queue includes: and processing the target service message through a target service instance matched with the task type in a plurality of instances, wherein the plurality of instances comprise instances with different task types corresponding to the processed service message.
Optionally, the target service message is processed by a target service instance matching the task type from the plurality of instances: searching a candidate instance corresponding to the task type of the target business message, selecting a target instance which is idle from the candidate instances, and selecting an instance which has the minimum number of processed messages or can complete the task fastest from the candidate instances if the idle instance does not exist as the target instance.
For example, the method includes processing multiple instances a of task type a, processing multiple instances B of task type B, processing multiple instances C of task type C, if the task type of the task carried by the target service message is B, then the candidate instance is instance B, and then checking the state of each instance B, and further selecting the target instance in idle state.
Optionally, processing the target service message by a target service instance of the plurality of instances that matches the task type includes: after the target service message with the state to be processed is taken out from the target message queue, changing the state of the target service message into processing; executing the task indicated by the target service message; under the condition that the task indicated by the target service message is failed to be executed, changing the state of the target service message into a state to be processed; and changing the state of the target service message to processed when the task indicated by the target service message is successfully executed. For the service message to be processed, the repeated execution is performed until the repeated execution reaches a threshold value N (N is a positive integer greater than 5), and the repeated execution can be stopped for saving resources because the general fault or problem can be ended or recovered in a short time, and further can be completed by the repeated execution, and the repeated execution can be stopped for a part of the service message to be recovered in a longer time (equivalent to after the repeated execution for N times).
The financial products on the current market are complex in category and huge in quantity, and the challenge is how to realize stable and reliable information transmission in the transaction process, but in the embodiment of the application, the queue is adopted for buffering, so that compared with the situation that the information is lost due to excessive messages or faults, the processing efficiency can be improved by adopting multi-instance parallel processing, and the technical scheme of the application is described in detail below by taking fig. 3 as an example in combination with a specific implementation mode.
In the system, if synchronous communication is adopted, when the response processing speed of the system is slow and is not up to the system capacity requirement, short network faults and other anomalies occur, a small synchronous call which is normal in operation can cause the whole service system to fail. In the scheme, asynchronous communication is adopted, for example, after a customer browses a product, the customer can carry out service request through a peripheral interface, the system asynchronously receives the request of the customer through a message, and then the transaction and account interface of the off-site financial transaction system are synchronously regulated through a message mode to carry out processing.
In the scheme of the application, a user can browse by inquiring the product information provided by the background product service, wherein the configuration of the product is supported according to the strategy service; after browsing the products, the customer can make service request through the peripheral interface, the system receives the request of the customer asynchronously through the message, and then processes the transaction and account interface of the off-site financial transaction system through the message mode asynchronous call; when the day is finished, a transaction confirmation is received through an off-site financial transaction system, and the data is used for carrying out warehouse maintenance and transaction state updating; and report generation or deviation calculation and possible business monitoring are performed through offline tasks.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
According to another aspect of the embodiment of the present application, there is also provided a message processing apparatus for implementing the above-mentioned message processing method. Fig. 4 is a schematic diagram of an alternative message processing apparatus according to an embodiment of the present application, as shown in fig. 4, the apparatus may include:
A receiving unit 11, configured to receive a target service message in a first platform, where the first platform is configured to provide a management function of a target product for a second platform, and the second platform is a replacement platform of the target product;
a saving unit 12, configured to save the target service message to a target message queue, where the target message queue is configured to save service messages that belong to the same type as the target service message;
a processing unit 13 for processing the target service message in the target message queue by the target service instance matching the target message queue.
It should be noted that the receiving unit 11 in this embodiment may be used to perform step S101 in the embodiment of the present application, the storing unit 12 in this embodiment may be used to perform step S102 in the embodiment of the present application, and the processing unit 13 in this embodiment may be used to perform step S103 in the embodiment of the present application.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or hardware as a part of the apparatus in the hardware environment shown in fig. 1.
For the messages sent by the manager of the first platform or the investor producer in the related technology, a real-time processing mode is adopted, once the processing party is down or fails to process, the stored messages or messages failing to process are lost, the processing party can continue to process new messages or next messages failing to process which are received subsequently, and the possibility of losing the messages (such as storage loss, sudden crash and the like) exists when a large number of messages are received. According to the embodiment of the application, for different types of messages, the corresponding message queues are used for storing floods, and the service instance can read and process the messages from the message queues according to own processing conditions, so that the technical problem of message loss in the related technology can be solved, and the technical effect of avoiding message loss is further achieved.
Optionally, the receiving unit receives the target service message in the first platform includes at least one of:
receiving a first service message sent by a first account through a first interface of a first platform, wherein the first interface is an interface provided by the first platform to a second platform and used for interacting with the first account, the first account is an account for exchanging a target product in the second platform, the first service message is used for requesting to execute a task associated with the target product, and the target service message comprises the first service message;
receiving a second service message sent by a second account through a second interface of the first platform, wherein the second interface is an interface provided by the first platform to the second platform and used for interacting with the second account, the second account is an account for managing a target product in the second platform, the second service message is used for requesting to execute a task for managing the target product, and the target service message comprises the second service message;
and receiving a third service message, wherein the third service message is used for requesting to execute the offline task of the target product, and the target service message comprises the third service message.
Optionally, the receiving unit may be further configured to receive a fourth service message returned by the third platform after sending a exchange request to the third platform, where the exchange request is used to exchange the first account for the target product derived from the third platform at the second platform, the fourth service message is used to indicate that an exchange result for exchanging the target product derived from the third platform is obtained, and the target service message includes the fourth service message.
Optionally, when the receiving unit receives the first service message sent by the first account through the first interface of the first platform, the receiving unit may be further configured to receive, through the first interface of the first platform, the first service message for indicating to exchange for the target product; or receiving a first service message for representing a query target product through a first interface of the first platform.
Optionally, the storage unit may be further configured to search a task type to which the task indicated by the target service message belongs; storing the target business message into a target message queue matched with the task type in a plurality of message queues, wherein the task types matched with any two message queues in the plurality of message queues are different;
Optionally, the processing unit may be further configured to process the target service message by a target service instance that matches the task type in multiple instances, where the multiple instances include instances with different task types corresponding to the processed service message.
Optionally, the processing unit may be further configured to change the state of the target service message into processing after the target service message whose state is to be processed is fetched from the target message queue; executing the task indicated by the target service message; under the condition that the task indicated by the target service message is failed to be executed, changing the state of the target service message into a state to be processed; and changing the state of the target service message to processed when the task indicated by the target service message is successfully executed.
Optionally, the apparatus of the present application may further comprise: the authentication unit is used for carrying out authentication after receiving the first service message sent by the first account through the first interface of the first platform, and the authentication is carried out according to the following mode: decrypting the data packet carrying the first service message by using a platform public key of a second platform, wherein the platform public key of the second platform is a key pair matched with a platform private key of the second platform, and one of the platform public key of the second platform and the platform private key of the second platform is used for decrypting the information encrypted by the other one; under the condition that the data packet carrying the first service message is successfully decrypted, the first service message carried in the data packet is obtained; searching an account public key and a signature scheme of the first account according to the first account obtained from the first field of the first service message; decrypting data of a second field in the first service message by using an account public key of a second account, and determining signature information corresponding to the decrypted second field by using a signature scheme, wherein the account public key of the second account is a secret key pair matched with an account private key of the second account, one of the account public key of the second account and the account private key of the second account is used for decrypting information encrypted by the other, and authentication is determined to pass under the condition that the signature information determined by using the signature scheme is consistent with the signature information carried by the first field.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the present application, there is also provided a server or a terminal for implementing the above-mentioned message processing method.
Fig. 5 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 5, the terminal may include: one or more (only one is shown in fig. 5) processors 21, memory 22, and transmission means 23, as shown in fig. 5, the terminal may further comprise an input-output device 24.
The memory 22 may be used to store software programs and modules, such as program instructions/modules corresponding to the message processing method and apparatus in the embodiment of the present application, and the processor 21 executes the software programs and modules stored in the memory 22, thereby executing various functional applications and data processing, that is, implementing the message processing method described above. Memory 22 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 22 may further comprise memory remotely located with respect to the processor 21, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The above-mentioned transmission means 23 are used for receiving or transmitting data via a network, and can also be used for data transmission between the processor and the memory. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 23 comprises a network adapter (Network Interface Controller, NIC) which can be connected to other network devices via a network cable to a router for communication with the internet or a local area network. In one example, the transmission device 23 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Wherein in particular the memory 22 is used for storing application programs.
The processor 21 may call the application program stored in the memory 22 via the transmission means 23 to perform the following steps:
receiving a target service message in a first platform, wherein the first platform is used for providing a management function of a financial product for a second platform, and the second platform is a sales platform of the financial product;
storing the target service message to a target message queue, wherein the target message queue is used for storing service messages which belong to the same type as the target service message;
The target service message in the target message queue is processed by the target service instance that matches the target message queue.
The processor 21 is further configured to perform the steps of:
Decrypting the data packet carrying the first service message by using a platform public key of a second platform, wherein the platform public key of the second platform is a key pair matched with a platform private key of the second platform, and one of the platform public key of the second platform and the platform private key of the second platform is used for decrypting the information encrypted by the other one;
Under the condition that the data packet carrying the first service message is successfully decrypted, the first service message carried in the data packet is obtained;
searching an account public key and a signature scheme of the first account according to the first account obtained from the first field of the first service message;
Decrypting the data of the second field in the first service message by using the public account key of the second account, determining signature information corresponding to the decrypted second field by using a signature scheme, wherein the public account key of the second account is a secret key pair matched with the private account key of the second account, one of the public account key of the second account and the private account key of the second account is used for decrypting the information encrypted by the other,
And determining that the authentication passes under the condition that the signature information determined by using the signature scheme is consistent with the signature information carried by the first field.
For the messages sent by the manager of the first platform or the investor producer in the related technology, a real-time processing mode is adopted, once the processing party is down or fails to process, the stored messages or messages failing to process are lost, the processing party can continue to process new messages or next messages failing to process which are received subsequently, and the possibility of losing the messages (such as storage loss, sudden crash and the like) exists when a large number of messages are received. According to the embodiment of the application, for different types of messages, the corresponding message queues are used for storing floods, and the service instance can read and process the messages from the message queues according to own processing conditions, so that the technical problem of message loss in the related technology can be solved, and the technical effect of avoiding message loss is further achieved.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is only illustrative, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 5 is not limited to the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 5, or have a different configuration than shown in fig. 5.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The embodiment of the application also provides a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be used for executing the program code of the processing method of the message.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
receiving a target service message in a first platform, wherein the first platform is used for providing a management function of a financial product for a second platform, and the second platform is a sales platform of the financial product;
storing the target service message to a target message queue, wherein the target message queue is used for storing service messages which belong to the same type as the target service message;
The target service message in the target message queue is processed by the target service instance that matches the target message queue.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
Decrypting the data packet carrying the first service message by using a platform public key of a second platform, wherein the platform public key of the second platform is a key pair matched with a platform private key of the second platform, and one of the platform public key of the second platform and the platform private key of the second platform is used for decrypting the information encrypted by the other one;
Under the condition that the data packet carrying the first service message is successfully decrypted, the first service message carried in the data packet is obtained;
searching an account public key and a signature scheme of the first account according to the first account obtained from the first field of the first service message;
Decrypting the data of the second field in the first service message by using the public account key of the second account, determining signature information corresponding to the decrypted second field by using a signature scheme, wherein the public account key of the second account is a secret key pair matched with the private account key of the second account, one of the public account key of the second account and the private account key of the second account is used for decrypting the information encrypted by the other,
And determining that the authentication passes under the condition that the signature information determined by using the signature scheme is consistent with the signature information carried by the first field.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for processing a message, comprising:
receiving a target service message in a first platform, wherein the first platform is used for providing a management function of a target product for a second platform, and the second platform is a replacement platform of the target product;
Storing the target service message to a target message queue, wherein the target message queue is used for storing service messages which belong to the same type as the target service message;
processing the target service message in the target message queue by a target service instance matched with the target message queue;
The receiving, in the first platform, the target service message further includes: and after sending a exchange request to a third platform, receiving a fourth service message returned by the third platform, wherein the exchange request is used for exchanging a first account for a target product from the third platform in the second platform, the first account is an account for exchanging the target product in the second platform, the fourth service message is used for indicating that an exchange result for exchanging the target product from the third platform is obtained, and the target service message comprises the fourth service message.
2. The method of claim 1, wherein receiving the targeted traffic message in the first platform comprises at least one of:
Receiving a first service message sent by a first account through a first interface of the first platform, wherein the first interface is an interface provided by the first platform to the second platform and used for interacting with the first account, the first service message is used for requesting to execute a task associated with a target product, and the target service message comprises the first service message;
Receiving a second service message sent by a second account through a second interface of the first platform, wherein the second interface is an interface provided by the first platform to the second platform and used for interacting with the second account, the second account is an account for managing a target product in the second platform, the second service message is used for requesting to execute a task for managing the target product, and the target service message comprises the second service message;
and receiving a third service message, wherein the third service message is used for requesting to execute the offline task of the target product, and the target service message comprises the third service message.
3. The method of claim 2, wherein receiving, via the first interface of the first platform, the first service message sent by the first account number comprises:
Receiving, through a first interface of the first platform, the first service message indicating a swap for a target product; or alternatively
And receiving the first business message for representing the query target product through a first interface of the first platform.
4. The method according to any one of claims 1 to 2, wherein,
Storing the target business message to a target message queue includes: searching a task type to which the task indicated by the target service message belongs; storing the target business message to the target message queue matched with the task type in a plurality of message queues, wherein the task types matched with any two message queues in the plurality of message queues are different;
processing the target service message in the target message queue by a target service instance that matches the target message queue includes: and processing the target service message through the target service instance matched with the task type in a plurality of instances, wherein the plurality of instances comprise instances with different task types corresponding to the processed service message.
5. The method of claim 4, wherein processing the target service message through the target service instance of a plurality of instances that matches the task type comprises:
after the target service message with the state to be processed is taken out from the target message queue, changing the state of the target service message into processing;
Executing the task indicated by the target service message;
Under the condition that the task indicated by the target service message is failed to be executed, changing the state of the target service message into a state to be processed;
and under the condition that the task indicated by the target service message is successfully executed, changing the state of the target service message into processed state.
6. The method of claim 2, wherein after receiving the first service message sent by the first account through the first interface of the first platform, the method further comprises authenticating as follows:
Decrypting the data packet carrying the first service message by using a platform public key of the second platform, wherein the platform public key of the second platform is a key pair matched with a platform private key of the second platform, and one of the platform public key of the second platform and the platform private key of the second platform is used for decrypting information encrypted by the other one;
Under the condition that the data packet carrying the first service message is successfully decrypted, the first service message carried in the data packet is obtained;
Searching an account public key and a signature scheme of the first account according to the first account obtained from the first field of the first service message;
Decrypting data of a second field in the first service message by using an account public key of the second account, and determining signature information corresponding to the decrypted second field by using the signature scheme, wherein the account public key of the second account is a key pair used in cooperation with an account private key of the second account, and one of the account public key of the second account and the account private key of the second account is used for decrypting information encrypted by the other one;
And determining that the authentication passes under the condition that the signature information determined by using the signature scheme is consistent with the signature information carried by the first field.
7. A message processing apparatus, comprising:
The system comprises a receiving unit, a first platform and a second platform, wherein the receiving unit is used for receiving a target service message in the first platform, the first platform is used for providing a management function of a target product for the second platform, and the second platform is a trading platform of the target product;
a storage unit, configured to store the target service message to a target message queue, where the target message queue is configured to store service messages that belong to the same type as the target service message;
a processing unit, configured to process the target service message in the target message queue through a target service instance that matches the target message queue;
The receiving unit is further configured to: and after sending a exchange request to a third platform, receiving a fourth service message returned by the third platform, wherein the exchange request is used for exchanging a first account for a target product from the third platform in the second platform, the first account is an account for exchanging the target product in the second platform, the fourth service message is used for indicating that an exchange result for exchanging the target product from the third platform is obtained, and the target service message comprises the fourth service message.
8. A message processing system, comprising:
The system comprises a first platform, a second platform and a target message queue, wherein the first platform is used for storing received target service messages to the target message queue and processing the target service messages in the target message queue through target service instances matched with the target message queue, the first platform is used for providing a management function of target products for the second platform, the second platform is a replacement platform of the target products, and the target message queue is used for storing service messages which belong to the same type as the target service messages; the first platform receiving the target service message further includes: after sending a exchange request to a third platform, receiving a fourth service message returned by the third platform, wherein the exchange request is used for exchanging a first account for a target product from the third platform in the second platform, the first account is an account for exchanging the target product in the second platform, the fourth service message is used for indicating that an exchange result for exchanging the target product from the third platform is obtained, and the target service message comprises the fourth service message;
the second platform is configured to send the target service message to the first platform.
9. A storage medium comprising a stored program, wherein the program when run performs the method of any one of the preceding claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor performs the method according to any of the preceding claims 1 to 6 by means of the computer program.
CN202010121791.9A 2020-02-26 2020-02-26 Message processing method, device and system, storage medium and electronic device Active CN113313600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010121791.9A CN113313600B (en) 2020-02-26 2020-02-26 Message processing method, device and system, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010121791.9A CN113313600B (en) 2020-02-26 2020-02-26 Message processing method, device and system, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113313600A CN113313600A (en) 2021-08-27
CN113313600B true CN113313600B (en) 2024-05-17

Family

ID=77369975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010121791.9A Active CN113313600B (en) 2020-02-26 2020-02-26 Message processing method, device and system, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113313600B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116126563A (en) * 2023-02-20 2023-05-16 北京神州云合数据科技发展有限公司 Message processing method, device, equipment and medium based on event bus

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015102122A1 (en) * 2013-12-30 2015-07-09 주식회사 신한은행 Method for providing global financial services by using communication application and bank server therefor
CN105868973A (en) * 2016-04-15 2016-08-17 腾讯科技(深圳)有限公司 Event resource handling method and event resource handling device
CN106330846A (en) * 2015-07-03 2017-01-11 阿里巴巴集团控股有限公司 Cross-platform object recommendation method and device
CN106453136A (en) * 2016-09-05 2017-02-22 深圳前海微众银行股份有限公司 Method and device for establishing message queue
CN106991611A (en) * 2017-03-27 2017-07-28 北京贝塔智投科技有限公司 A kind of intelligence financing investment consultant's robot system and its method of work
CN107437224A (en) * 2017-06-26 2017-12-05 上海快免网络科技有限公司 A kind of method of commerce and system based on finance product income
CN107450971A (en) * 2017-06-29 2017-12-08 北京五八信息技术有限公司 Task processing method and device
US9882855B1 (en) * 2015-05-29 2018-01-30 Amazon Technologies, Inc. Instance messaging service
CN107644281A (en) * 2016-07-21 2018-01-30 钱强 Management of personal money management system based on cloud platform
CN107766129A (en) * 2016-08-17 2018-03-06 北京金山云网络技术有限公司 A kind of task processing method, apparatus and system
CN108121608A (en) * 2016-11-29 2018-06-05 杭州华为数字技术有限公司 A kind of array dispatching method and node device
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform
CN108881190A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device
CN109472576A (en) * 2018-09-12 2019-03-15 湖南搜云网络科技股份有限公司 The processing method and processing device of digital asset, storage medium
CN109816360A (en) * 2018-12-15 2019-05-28 深圳壹账通智能科技有限公司 Financing avail data processing method, device, computer installation and storage medium
CN109840851A (en) * 2018-11-08 2019-06-04 深圳壹账通智能科技有限公司 A kind of integrated management approach, device and the equipment of data of managing money matters
CN110086768A (en) * 2014-12-31 2019-08-02 阿里巴巴集团控股有限公司 A kind of method for processing business and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110225093A1 (en) * 2010-03-11 2011-09-15 Cahn Robert S Depository-Based Security Trading System
CN102420819B (en) * 2011-11-28 2014-11-05 华为技术有限公司 User registering method, interaction method and associated device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015102122A1 (en) * 2013-12-30 2015-07-09 주식회사 신한은행 Method for providing global financial services by using communication application and bank server therefor
CN110086768A (en) * 2014-12-31 2019-08-02 阿里巴巴集团控股有限公司 A kind of method for processing business and device
US9882855B1 (en) * 2015-05-29 2018-01-30 Amazon Technologies, Inc. Instance messaging service
CN106330846A (en) * 2015-07-03 2017-01-11 阿里巴巴集团控股有限公司 Cross-platform object recommendation method and device
CN105868973A (en) * 2016-04-15 2016-08-17 腾讯科技(深圳)有限公司 Event resource handling method and event resource handling device
CN107644281A (en) * 2016-07-21 2018-01-30 钱强 Management of personal money management system based on cloud platform
CN107766129A (en) * 2016-08-17 2018-03-06 北京金山云网络技术有限公司 A kind of task processing method, apparatus and system
CN106453136A (en) * 2016-09-05 2017-02-22 深圳前海微众银行股份有限公司 Method and device for establishing message queue
CN108121608A (en) * 2016-11-29 2018-06-05 杭州华为数字技术有限公司 A kind of array dispatching method and node device
CN106991611A (en) * 2017-03-27 2017-07-28 北京贝塔智投科技有限公司 A kind of intelligence financing investment consultant's robot system and its method of work
CN107437224A (en) * 2017-06-26 2017-12-05 上海快免网络科技有限公司 A kind of method of commerce and system based on finance product income
CN107450971A (en) * 2017-06-29 2017-12-08 北京五八信息技术有限公司 Task processing method and device
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform
CN108881190A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device
CN109472576A (en) * 2018-09-12 2019-03-15 湖南搜云网络科技股份有限公司 The processing method and processing device of digital asset, storage medium
CN109840851A (en) * 2018-11-08 2019-06-04 深圳壹账通智能科技有限公司 A kind of integrated management approach, device and the equipment of data of managing money matters
CN109816360A (en) * 2018-12-15 2019-05-28 深圳壹账通智能科技有限公司 Financing avail data processing method, device, computer installation and storage medium

Also Published As

Publication number Publication date
CN113313600A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
US11030692B2 (en) System and method for a semi-lit market
Fisch et al. Socially optimal mining pools
US11126659B2 (en) System and method for providing a graph protocol for forming a decentralized and distributed graph database
US11900271B2 (en) Self learning data loading optimization for a rule engine
US20190147430A1 (en) Customizing payment sessions with machine learning models
US20190392441A1 (en) Customizing authorization request schedules with machine learning models
CN110009365B (en) User group detection method, device and equipment for abnormally transferring electronic assets
WO2015042012A1 (en) Techniques for facilitating electronic trading
CN104866484A (en) Data processing method and device
US20210287295A1 (en) Method and apparatus for recommending financial product, electronic device, and computer storage medium
CN112215663A (en) User point currency method, equipment and medium
CN111507839A (en) Data processing method and device based on block chain, storage medium and equipment
US20140279353A1 (en) C2EX Compute Commodities Exchange
CA3143827A1 (en) Fund data processing method, apparatus, computer device and storage medium
CN113313600B (en) Message processing method, device and system, storage medium and electronic device
KR20220065260A (en) A method for providing database services of ownership item assets using non-fungible tokens based on block chain networks, an apparatus and a system using it
CN109756556B (en) One-stop cloud service ecosystem
KR102123908B1 (en) A Method and System For Determing Transaction Time
KR20200101541A (en) A System And Method For Point Of Sales Transaction Based On Blockchain
KR102374522B1 (en) Exchange operation method and system for supporting transaction risk management
CN109857492A (en) Loan transaction processing method, device, computer equipment and readable storage medium storing program for executing
US20130191265A1 (en) Cloud-based system for performing online trading
CN110852731B (en) Method and related device for trading funds
KR20220065255A (en) A method for providing exchange services of ownership item assets using non-fungible tokens based on block chain networks, an apparatus and a system using it
CN113313603B (en) Service processing method, device and system, storage medium and electronic device

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
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant