CN111726304A - Information processing method, information processing apparatus, computer system, and medium - Google Patents

Information processing method, information processing apparatus, computer system, and medium Download PDF

Info

Publication number
CN111726304A
CN111726304A CN202010570484.9A CN202010570484A CN111726304A CN 111726304 A CN111726304 A CN 111726304A CN 202010570484 A CN202010570484 A CN 202010570484A CN 111726304 A CN111726304 A CN 111726304A
Authority
CN
China
Prior art keywords
set information
request
blockchain
node set
information
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
CN202010570484.9A
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 CN202010570484.9A priority Critical patent/CN111726304A/en
Publication of CN111726304A publication Critical patent/CN111726304A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2475Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides an information processing method applied to a block chain client. The method comprises the following steps: pre-storing block chain configuration information of a block chain network to which a specified service application belongs; receiving an operation request from a specified service application, the operation request including dynamic parameters; and generating a request combination based on the dynamic parameters and the block chain configuration information, wherein the request combination comprises the specified node set information. When monitoring that the designated node set represented by the designated node set information is in an overload state, submitting the request combination to a message queue; and when the designated node set is monitored to be converted from an overload state to a normal state, acquiring the request combination from the message queue and sending the request combination to the designated node set for processing. The present disclosure also provides an information processing apparatus, a computer system, and a medium.

Description

Information processing method, information processing apparatus, computer system, and medium
Technical Field
The present disclosure relates to the field of computer technologies, and more particularly, to an information processing method, an information processing apparatus, a computer system, and a medium.
Background
In the prior art, a network based on a blockchain can maintain and manage various service data, service logics and the like in a predetermined service scene, so that a service application can realize various service functions based on the blockchain network. In this scenario, interaction between any service application and the blockchain network typically requires the assistance of a blockchain client.
One approach is to implement a flow control policy on the service application side. However, the above-described interaction process between the service application and the blockchain network relies on active control of the service application. In many scenarios, it is not necessary to obtain results immediately for uplink operation of data, and asynchronous calls are used to improve the throughput of service applications. In the process, regardless of whether the blockchain client adopts clustered deployment or not, the final request pressure falls on the blockchain client, and even if the service application uses technical means such as load balancing and the like to control the blockchain client, whether the blockchain client which is currently requested can continuously receive and process new requests or not cannot be ensured, so that uncontrollable conditions such as downtime and the like of the blockchain client due to overload of the requests can be caused, and when the request data is not persistent, the request is lost, and further data uplink operation failure is caused.
Disclosure of Invention
One aspect of the present disclosure provides an information processing method applied to a blockchain client. The method comprises the following steps: pre-storing block chain configuration information of a block chain network to which a specified service application belongs; receiving an operation request from a specified service application, the operation request including dynamic parameters; and generating a request combination based on the dynamic parameters and the block chain configuration information, wherein the request combination comprises the specified node set information. When monitoring that the designated node set represented by the designated node set information is in an overload state, submitting the request combination to a message queue; and when the designated node set is monitored to be converted from an overload state to a normal state, acquiring the request combination from the message queue and sending the request combination to the designated node set for processing.
Optionally, the pre-storing the configuration information of the blockchain network to which the specified service application belongs includes: when the blockchain client is started for the first time, a configuration request message is sent to a specified service application. Then, the full blockchain configuration information from the specified service application is received and stored. The full blockchain configuration information includes at least one of: the method comprises the following steps of block chain link point set information, block chain packing node set information, block chain channel set information, block chain intelligent contract set information and block chain authentication authorized user set information.
Optionally, the pre-storing the block chain configuration information of the block chain network to which the specified service application belongs further includes: receiving incremental blockchain configuration information from the specified service application whenever blockchain configuration information of the blockchain network is updated. Then, based on the incremental blockchain configuration information, the full-amount blockchain configuration information is updated.
Optionally, the operation request is an uplink request, and the dynamic parameter is a first dynamic parameter for the uplink request. The generating the request combination based on the dynamic parameter and the block chain configuration information includes: based on a first dynamic parameter, selecting first appointed available node set information from the block chain node set information, selecting first appointed packing node set information from the block chain packing node set information, selecting first appointed channel set information from the block chain channel set information, selecting first appointed intelligent contract set information from the block chain intelligent contract set information, and selecting first appointed user set information from the block chain authentication authorized user set information. Then, the first designated available node set information, the first designated packing node set information, the first designated channel set information, the first designated intelligent contract set information and the first designated user set information constitute a first request combination for uplink requests.
Optionally, the operation request includes an on-chain query request, and the dynamic parameter is a second dynamic parameter for the on-chain query request. The generating the request combination based on the dynamic parameter and the block chain configuration information includes: based on a second dynamic parameter, selecting second specified available node set information from the blockchain node set information, selecting second specified channel set information from the blockchain channel set information, selecting second specified intelligent contract set information from the blockchain intelligent contract set information, and selecting second specified user set information from the blockchain authentication authorized user set information. Then, a second request combination for the on-chain inquiry request is formed by the second specified available node set information, the second specified channel set information, the second specified intelligent contract set information and the second specified user set information.
Optionally, the operation request includes a channel query request, and the dynamic parameter is a third dynamic parameter for the channel query request. The generating the request combination based on the dynamic parameter and the block chain configuration information includes: and based on a third dynamic parameter, selecting third appointed available node set information from the blockchain node set information, selecting third appointed channel set information from the blockchain channel set information, and selecting third appointed user set information from the blockchain authentication authorized user set information. Then, a third request combination for the channel query request is formed by the third designated available node set information, the third designated channel set information, and the third designated user set information.
Optionally, the information about the set of designated nodes includes: specifying available node set information and/or specifying packed node set information. The designated node set characterized by the designated node set information is in an overload state and comprises at least one of the following items: appointing the appointed blockchain node set represented by the available node set information to be in an overload state; and the specified packing node set represented by the specified packing node set information is in an overload state.
Another aspect of the present disclosure provides an information processing apparatus applied to a blockchain client. The device includes: the device comprises a pre-storage module, a request receiving module, a request assembling module and a processing module. The pre-storing module is used for pre-storing block chain configuration information of a block chain network to which the specified service application belongs; the request receiving module is used for receiving an operation request from a specified service application, wherein the operation request comprises dynamic parameters; and the request assembling module is used for generating a request combination based on the dynamic parameters and the block chain configuration information, wherein the request combination comprises the specified node set information. The processing module is used for submitting the request combination to a message queue when monitoring that the designated node set represented by the designated node set information is in an overload state; and when the appointed node set is monitored to be changed from an overload state to a normal state, the request combination is obtained from the message queue and is sent to the appointed node set for processing.
Another aspect of the present disclosure provides a computer system comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the computer program for performing the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to the information processing method disclosed by the embodiment of the disclosure, the load balance and the related flow control strategies of the service application to the block chain client are cancelled, and all the load balance and the related flow control strategies are handed over to the block chain client for processing. Blockchain configuration information specifying service applications is pre-stored at the blockchain client side. Therefore, when receiving the operation request from the specified service application, the corresponding request combination can be assembled and generated only by receiving the dynamic parameters with small data size, the block chain configuration information does not need to be assembled and sent by the specified service application, and the flexibility of the request between the service application and the block chain client is realized. In addition, according to the information processing method of the embodiment of the disclosure, after the request combination is assembled and generated by the block chain client, if it is monitored that the overload problem exists in the designated node in the block chain network designated by the request combination, the request combination can be submitted to the message queue, so that the request combination in the message queue can be adaptively processed according to the load condition of the designated node. And then realize the flow control to the node in the block chain network under the condition of guaranteeing that the request combination will not be lost.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically shows an exemplary system architecture of an application information processing method and an information processing apparatus according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure;
fig. 3 schematically shows an example schematic diagram of pre-stored blockchain configuration information according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates an example schematic diagram of a request combination according to an embodiment of the disclosure;
fig. 5 schematically shows an example schematic diagram of an information processing method according to another embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of a computer system suitable for an information processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify 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 same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Embodiments of the present disclosure provide an information processing method and an information processing apparatus, which may be applied to a blockchain client, and may implement processing of an operation request of a blockchain network for a specific service application through the following operations of the blockchain client. The information processing method may include a pre-storing process, a request receiving process, a request assembling process, and a processing process. In the pre-storing process, the block chain client pre-stores block chain configuration information of a block chain network to which the specified service application belongs. In the request receiving process, the blockchain client receives an operation request from a specified service application, wherein the operation request comprises dynamic parameters. And then, carrying out a request assembly process, and generating a request combination by the block chain client based on the dynamic parameters and the block chain configuration information, wherein the request combination comprises the specified node set information. In the processing process, when monitoring that the designated node set represented by the designated node set information is in an overload state, submitting the request combination to a message queue; and when the designated node set is monitored to be converted from the overload state to the normal state, acquiring a request combination from the message queue and sending the request combination to the designated node set for processing.
Fig. 1 schematically shows an exemplary system architecture 100 to which the information processing method and the information processing apparatus can be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 may include at least one Blockchain Network (Blockchain Network)110, at least one Blockchain client 120, and at least one service application 130. The block chain network 110 may include nodes 111-116, where the nodes 111-116 collectively maintain a block chain 117.
The block chain technology is a technology for signing transaction information and encrypting and transmitting the transaction information by adopting an asymmetric key, and the scheme is to verify the transaction, assemble blocks and form a block chain structure. The purpose of using block chain technology is to achieve a consensus mechanism, to prevent chain forking, and to achieve distributed network storage by using point-to-point data transmission means. The biggest features of blockchain technology come from its distributed, decentralized, encrypted data storage technology, and reliable underlying mechanisms that do not require third party trust authorities. The block chain network 110 and an excitation mechanism attached to the network form a decentralized self-organizing ecology, nodes in the network follow a uniform rule, data cannot be tampered, data is maintained in multiple nodes, a simple and clear consensus mechanism is achieved, and a trust system formed on the basis does not need to depend on a certain node or a third party and is trust for system rules.
The nodes 111-116 may be various computing nodes with the same or different computing capabilities, such as personal computers, web servers, database servers, and the like, without limitation. Any two of the nodes 111-116 can communicate with each other point-to-point.
Block chain 117 is a distributed database of blocks (blocks) linked in chronological order by hash pointers. Blocks of the block chain are added according to the time sequence, when a preset condition is met, each node in the block chain network allows a current node to create the block and add the block into the block chain, and the added block is used as the current latest block on the block chain. At a particular time, the current latest block obtained from the block chain by the node maintaining the same block chain is the same. It can be understood that the blockchain is a string of data blocks generated by using a cryptographic method to associate, each data block contains information of one network transaction, and is used for verifying the validity (anti-counterfeiting) of the information and generating the next block, and the blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like.
It should be understood that the size and type of blockchain network, the number of nodes, the length of blockchain, the number of blocks, etc. in fig. 1 are merely illustrative. According to actual needs, there may be any size and type of blockchain network, any number of nodes, any length of blockchain, any number of blocks, etc., and this is not a limitation here.
With continued reference to fig. 1, according to an embodiment of the present disclosure, the blockchain network 110 may maintain and manage various service data, service functions, service logics, and the like in a predetermined service scenario, and the at least one service application 130 may implement various service functions based on the blockchain network 110. In this scenario, interaction between any service application 130 and a node in blockchain network 110 needs to be by means of blockchain client 120. Blockchain clients 120 are typically custom developed in a manner that provides a Software Development Kit (SDK), or custom developed using various protocols exposed to the outside of the node (e.g., HTTP/HTTPs protocols, GRPC/GRPCs protocols, etc.). Therefore, when the service application 130 needs to access a node on the blockchain network 110, it needs to call the blockchain client 120 to access the blockchain node based on configuration information such as an Application Programming Interface (API), a required channel, a contract, and the like.
In order to avoid uncontrollable situations such as downtime and the like caused by overload of requests, a flow control strategy is executed on a service application side in a processing mode. The flow control comprises a plurality of strategies or combinations of load balancing, access flow limiting, request forwarding, fusing degradation and the like. For example, load balancing builds on existing network architectures, which provides an inexpensive, efficient, transparent way to extend the bandwidth of network devices and servers, increase throughput, enhance network data processing capabilities, and increase network flexibility and availability. Access throttling, forwarding, fusing, etc. are flow control policies for the service interface.
However, the above-described interaction process between the service application and the blockchain network relies on active control of the service application. For example, when a blockchain client accesses a blockchain node, a significant portion of the requests have a long waiting period during which the node processes data to complete uplink operations and returns the results to the blockchain client, which then returns the data to non-client services.
In many scenarios, it is not necessary to obtain results immediately for uplink operation of data, and asynchronous calls are used to improve the throughput of service applications. In the process, regardless of whether the blockchain client adopts clustered deployment or not, the final request pressure falls on the blockchain client, and even if the service application uses technical means such as load balancing and the like to control the blockchain client, whether the blockchain client which is currently requested can continuously receive and process new requests or not cannot be ensured, so that uncontrollable conditions such as downtime and the like of the blockchain client due to overload of the requests can be caused, and when the request data is not persistent, the request is lost, and further data uplink operation failure is caused.
In order to at least partially solve the problem that the blockchain client cannot automatically process the node request traffic in the above process, according to an embodiment of the present disclosure, an information processing method is provided, which may be applied to any blockchain client 120 shown in fig. 1, so as to improve the stability of the request and further improve the execution efficiency. The following description is made by way of example with reference to the accompanying drawings. It should be noted that the sequence numbers of the respective operations in the following methods are merely used as representations of the operations for description, and should not be construed as representing the execution order of the respective operations. The method need not be performed in the exact order shown, unless explicitly stated.
Fig. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure, which may be applied to a blockchain client.
As shown in fig. 2, the information processing method may include operations S210 to S250.
In operation S210, blockchain configuration information specifying a blockchain network to which the service application belongs is pre-stored.
Illustratively, different service applications may be attributed to different blockchain networks, based on which different business logic may be implemented. The privacy of different service data can be ensured, and the data safety is ensured.
In operation S220, an operation request from a specified service application is received, the operation request including dynamic parameters.
The dynamic parameters are necessary parameters for executing the dynamic change of the operation request, and the data size is small.
In operation S230, a request combination is generated based on the dynamic parameter and the above block chain configuration information.
The request combination comprises appointed node set information, and the appointed node set information is used for representing the nodes of the appointed service application in the block chain network appointed in the current operation request.
In operation S240, when it is monitored that the designated node set characterized by the designated node set information is in an overload state, the request combination is submitted to a message queue.
For example, when there are a plurality of types of designated node sets, monitoring that a designated node set characterized by the designated node set information is in an overload state may refer to monitoring that at least one type of designated node set is in an overload state.
In operation S250, when it is monitored that the designated node set is changed from the overload state to the normal state, the request group is obtained from the message queue and sent to the designated node set for processing.
Illustratively, an overload problem occurs when the data volume load of a given node that needs to perform data processing is found to exceed the maximum load volume. At this time, in order to avoid uncontrollable problems such as downtime of the designated node and avoid loss of the unprocessed request combination, the request combination to be processed may be placed in a message queue. The request combination in the message queue can be processed according to the self load condition of the corresponding designated node, so that the load of the designated node is not continuously increased, and the condition that the request combination is lost is avoided. If the specified node set is monitored to be in the overload state for more than a preset time, namely the specified node set is determined to be continuously overloaded, the blockchain client can start to perform current limiting so as to control the data volume of the operation request. For example, when a new operation request is received, a prompt message is returned to the service application indicating that the traffic has reached the upper limit.
As will be appreciated by those skilled in the art, in the prior art, the blockchain configuration information is loaded on the service application side. And when the service application needs to interact with the block chain network, the service application dynamically generates a request combination based on the block chain configuration information and then sends the request combination to the block chain client for processing. In contrast, according to the information processing method of the embodiment of the present disclosure, the load balancing and the related flow control policy of the service application to the blockchain client are cancelled and all the load balancing and the related flow control policy are handed over to the blockchain client for processing. Blockchain configuration information specifying service applications is pre-stored at the blockchain client side. Therefore, when receiving the operation request from the specified service application, the corresponding request combination can be assembled and generated only by receiving the dynamic parameters with small data size, the block chain configuration information does not need to be assembled and sent by the specified service application, and the flexibility of the request between the service application and the block chain client is realized. In addition, according to the information processing method of the embodiment of the disclosure, after the request combination is assembled and generated by the block chain client, if it is monitored that the overload problem exists in the designated node in the block chain network designated by the request combination, the request combination can be submitted to the message queue, so that the request combination in the message queue can be adaptively processed according to the self load condition of the designated node. And then realize the flow control to the node in the block chain network under the condition of guaranteeing that the request combination will not be lost.
Fig. 3 schematically shows an example schematic diagram of pre-stored block chain configuration information according to an embodiment of the present disclosure.
As shown in fig. 3, the process of pre-storing the block chain configuration information of the block chain network to which the specified service application belongs may include: when the blockchain client 310 first starts, the blockchain client 310 sends a configuration request message to the specified service application 320. Blockchain client 310 then receives and stores the full amount of blockchain configuration information 301 from the specified service application 320. For example, the blockchain client 310 receives and can process more blockchain configuration information, which mainly includes, but is not limited to, for example, blockchain link point set information, blockchain packing node set information, blockchain channel set information, blockchain intelligent contract set information, and blockchain authentication authorization (CA) user set information. The block chain link point set information is used for representing all available block chain node sets in the block chain network. The blockchain packing node set information is used for representing the set of all blockchain packing nodes in the blockchain network. The blockchain channel set information is used to characterize the set of each channel in the blockchain network. Blockchain intelligent contract set information is used to characterize a set of various intelligent contracts deployed in a blockchain network. Blockchain authenticated authorized user set information is used to characterize a set of users that have undergone a data certificate issuance process. The block chain node and the block chain packing node are nodes with different authorities in the block chain network, for example, the block chain node is used for receiving data, and the block chain packing node is used for packing blocks.
With continued reference to fig. 3, the process of pre-storing the blockchain configuration information of the blockchain network to which the specified service application belongs may further include: each time the blockchain configuration information of the blockchain network is updated, the blockchain client 310 receives incremental blockchain configuration information from the specified service application 320, where the incremental blockchain configuration information refers to a portion of the blockchain configuration information that is changed. Then, based on the incremental blockchain configuration information, the full-amount blockchain configuration information is updated.
The above block chain configuration information may be assembled by matching different parameters in different requests, and is described as an example with reference to fig. 4. Fig. 4 schematically illustrates an example schematic diagram of request combining according to an embodiment of the disclosure.
For example, the operation request is an uplink request, and the dynamic parameter is a first dynamic parameter for the uplink request. Based on the dynamic parameters and the blockchain configuration information, the generated first request combination 401 may be as shown in fig. 4, and represent that the first designated blockchain node, the first designated packing node, the first designated channel, the first designated intelligent contract, and the first designated CA user combination are used when initiating the data uplink request. The generating of the request combination based on the dynamic parameters and the blockchain configuration information may include: based on a first dynamic parameter, selecting first appointed available node set information from the block chain node set information, selecting first appointed packing node set information from the block chain packing node set information, selecting first appointed channel set information from the block chain channel set information, selecting first appointed intelligent contract set information from the block chain intelligent contract set information, and selecting first appointed user set information from the block chain authentication authorized user set information. Then, the first designated available node set information, the first designated packing node set information, the first designated channel set information, the first designated intelligent contract set information and the first designated user set information constitute a first request combination for uplink requests.
For another example, the operation request includes an on-chain query request, and the dynamic parameter is a second dynamic parameter for the on-chain query request. Based on the dynamic parameters and blockchain configuration information, a generated second request combination 402 may be characterized as shown in fig. 4 as a second specified blockchain node, a second specified channel, a second specified smart contract, and a second specified CA user combination to be used when initiating the on-chain query request. The generating the request combination based on the dynamic parameter and the block chain configuration information includes: based on a second dynamic parameter, selecting second specified available node set information from the blockchain node set information, selecting second specified channel set information from the blockchain channel set information, selecting second specified intelligent contract set information from the blockchain intelligent contract set information, and selecting second specified user set information from the blockchain authentication authorized user set information. Then, a second request combination for the on-chain inquiry request is formed by the second specified available node set information, the second specified channel set information, the second specified intelligent contract set information and the second specified user set information.
For another example, the operation request includes a channel query request, and the dynamic parameter is a third dynamic parameter for the channel query request. Based on the dynamic parameters and the blockchain configuration information, the generated third request combination 403 may be as shown in fig. 4, which indicates that a third designated blockchain node, a third designated channel, and a third designated CA user combination are to be used when initiating query channel information. The generating the request combination based on the dynamic parameter and the block chain configuration information includes: and based on a third dynamic parameter, selecting third appointed available node set information from the blockchain node set information, selecting third appointed channel set information from the blockchain channel set information, and selecting third appointed user set information from the blockchain authentication authorized user set information. Then, a third request combination for the channel query request is formed by the third designated available node set information, the third designated channel set information, and the third designated user set information.
In addition to the above, there are a plurality of request combinations covering the life cycle of the blockchain, such as creating a channel, joining a channel, installing a contract, instantiating a contract, upgrading a contract, discovering a node service, and creating a CA user. The process of assembling and generating the corresponding request combination is the same as the principle of the above example, and is not described herein again. In one embodiment of the present disclosure, the set required by the request combination may be generated in advance or dynamically generated by the service application, and in combination with the organizational object deploying the current blockchain node, the information of the set is clear even if dynamically generated.
In view of this, all possible combinations of requests are delivered to the blockchain client for assembly, rather than being handled by a non-client service, and the service application sends all known aggregation information to the blockchain client when starting up, and synchronously sends subsequent possible changes of the configuration aggregation information to the blockchain client, thereby ensuring that the blockchain client always retains the latest blockchain link point configuration information set. At this time, when the non-client service initiates any blockchain request, only the necessary parameters which are dynamically changed need to be provided, and the configuration information does not need to be assembled and sent, thereby realizing the flexibility of the request.
And when the blockchain client receives a request initiated by a non-client service, selecting an available node set and a packaging node set according to specific request content. The packing node provides a packing service node by using the node and the block link node. The two node sets are many-to-many and not necessarily equal in number. There may be situations where the node set is overloaded and the packing node set can continue to process traffic, or where the packing node set is overloaded and the node set can continue to process traffic. In this case, the requests of the two types of sets need to be subjected to flow control except load balancing according to different situations, so as to ensure that each request can be processed.
According to an embodiment of the present disclosure, the information on the set of designated nodes may include: specifying available node set information and/or specifying packed node set information. On the basis, the overload of the designated node set characterized by the designated node set information includes at least one of the following items: the designated block chain node set represented by the designated available node set information is overloaded; and overload occurs to the specified packing node set represented by the specified packing node set information.
It will be appreciated that to ensure that requests are processed, the combination of requests being flow controlled will be submitted to a message queue in the event of an overload condition in either of the above two categories, and that message queue services that may be used include, but are not limited to, for example, Kafka message queues, ActiveMQ, RibbitMQ, rocktmq, and the like, without limitation.
Fig. 5 schematically shows an example schematic diagram of an information processing method according to another embodiment of the present disclosure to illustrate an interaction process between the blockchain client 510 and the service application 520, and between the blockchain client 510 and the blockchain network. In this example, service application 520 is a non-client service 520. The blockchain network includes blockchain nodes 531 and blockchain packing nodes 532. A message middleware, i.e., a message queue 540, is also provided.
As shown in fig. 5, when the non-client service 520 is started, the basic information of the blockchain organization to which the current service belongs, i.e., the blockchain configuration information, is loaded from the relevant data provider such as a database or a local file. If the blockchain configuration information exists, the blockchain configuration information related to the current organization is loaded and sent to the blockchain client 510. At this time, if the blockchain client 510 is not started, the non-client service 520 sends the locally existing currently organization-related blockchain configuration information to the blockchain client 510 when receiving the request sent by the blockchain client 510 for the first time.
When the non-client service 520 monitors that the block chain configuration information related to the current organization is changed, the synchronization information is sent to the block chain client 510, and if the block chain client does not exist, the above loading of the block chain configuration information related to the current organization is repeated and the block chain configuration information is sent to the block chain client 510.
When non-client service 520 initiates a blockchain related operation request, the necessary dynamic parameter request is sent to blockchain client 510. The blockchain client 510 selects a designated available node set and a designated packed node set according to a request policy, and initiates a request for a node in a load balancing manner according to the current availability of the sets. And if any one of the appointed available node set and the appointed packing node set is overloaded, performing fusing processing on a newly received request, and forwarding the newly received request to a message queue service. If a persistent overload request is required, the blockchain client 510 is throttled to ensure stable operation of the blockchain client 510.
Based on the above embodiments, it can be understood that according to the embodiments of the present disclosure, the fault tolerance capability of the blockchain client can be improved, it is ensured that each request can be successfully consumed, and meanwhile, the high concurrency capability of the service is more accurately improved.
Fig. 6 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure, which may be applied to a blockchain client.
As shown in fig. 6, the information processing apparatus 600 may include: a pre-storing module 610, a request receiving module 620, a request assembling module 630 and a processing module 640.
The pre-storing module 610 is configured to pre-store the block chain configuration information of the block chain network to which the designated service application belongs.
The request receiving module 620 is configured to receive an operation request from a specific service application, where the operation request includes dynamic parameters.
The request assembling module 630 is configured to generate a request combination based on the dynamic parameter and the above block chain configuration information, where the request combination includes the specified node set information.
The processing module 640 is configured to, when it is monitored that the designated node set represented by the designated node set information is in an overload state, submit the request combination to a message queue; and when the designated node set is monitored to be converted from an overload state to a normal state, acquiring the request combination from the message queue and sending the request combination to the designated node set for processing.
It should be noted that the implementation, solved technical problems, implemented functions, and achieved technical effects of each module/unit/subunit and the like in the apparatus part embodiment are respectively the same as or similar to the implementation, solved technical problems, implemented functions, and achieved technical effects of each corresponding step in the method part embodiment, and are not described herein again.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the pre-storing module 610, the request receiving module 620, the request assembling module 630 and the processing module 640 may be combined into one module to be implemented, or any one of the modules may be split into a plurality of 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 the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the pre-storing module 610, the request receiving module 620, the request assembling module 630 and the processing module 640 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware and firmware, or any suitable combination of any of them. Alternatively, at least one of the pre-storing module 610, the request receiving module 620, the request assembling module 630 and the processing module 640 may be at least partially implemented as a computer program module, which, when executed, may perform a corresponding function.
FIG. 7 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 7 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 7, a computer system 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the system 700 are stored. The processor 701, the ROM702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM702 and RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the system 700 may also include an input/output (I/O) interface 705, the input/output (I/O) interface 705 also being connected to the bus 704. The system 700 may also include one or more of the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 911. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
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, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block 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 will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be understood by those skilled in the art that while the present disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. An information processing method applied to a block chain client, the method comprising:
pre-storing block chain configuration information of a block chain network to which a specified service application belongs;
receiving an operation request from the specified service application, the operation request including dynamic parameters;
generating a request combination based on the dynamic parameters and the block chain configuration information, wherein the request combination comprises specified node set information;
when monitoring that the designated node set represented by the designated node set information is in an overload state, submitting the request combination to a message queue; and
and when the designated node set is monitored to be converted from an overload state to a normal state, acquiring the request combination from the message queue and sending the request combination to the designated node set for processing.
2. The method of claim 1, wherein the pre-storing the blockchain configuration information specifying the blockchain network to which the service application belongs comprises:
when the blockchain client is started for the first time, sending a configuration request message to the specified service application; and
receiving and storing full-amount blockchain configuration information from the specified service application, wherein the full-amount blockchain configuration information comprises at least one of the following items: the method comprises the following steps of block chain link point set information, block chain packing node set information, block chain channel set information, block chain intelligent contract set information and block chain authentication authorized user set information.
3. The method of claim 2, wherein the pre-storing the blockchain configuration information specifying the blockchain network to which the service application belongs further comprises:
receiving incremental blockchain configuration information from the designated service application whenever blockchain configuration information of the blockchain network is updated; and
updating the full-size blockchain configuration information based on the incremental blockchain configuration information.
4. The method of claim 2 wherein the operation request is a uplink request and the dynamic parameter is a first dynamic parameter for the uplink request;
the generating a request combination based on the dynamic parameters and the blockchain configuration information comprises:
based on the first dynamic parameter, selecting first appointed available node set information from the block chain node set information, selecting first appointed packing node set information from the block chain packing node set information, selecting first appointed channel set information from the block chain channel set information, selecting first appointed intelligent contract set information from the block chain intelligent contract set information, and selecting first appointed user set information from the block chain authentication authorized user set information; and
and forming a first request combination aiming at the uplink request by the first specified available node set information, the first specified packing node set information, the first specified channel set information, the first specified intelligent contract set information and the first specified user set information.
5. The method of claim 2, wherein the operation request comprises an on-chain query request, the dynamic parameter being a second dynamic parameter for the on-chain query request;
the generating a request combination based on the dynamic parameters and the blockchain configuration information comprises:
selecting second specified available node set information from the blockchain node set information, selecting second specified channel set information from the blockchain channel set information, selecting second specified intelligent contract set information from the blockchain intelligent contract set information, and selecting second specified user set information from the blockchain authentication authorized user set information based on the second dynamic parameter; and
and forming a second request combination aiming at the query request on the chain by the second specified available node set information, the second specified channel set information, the second specified intelligent contract set information and the second specified user set information.
6. The method of claim 2, wherein the operation request comprises a channel query request, the dynamic parameter being a third dynamic parameter for the channel query request;
the generating a request combination based on the dynamic parameters and the blockchain configuration information comprises:
based on the third dynamic parameter, selecting third appointed available node set information from the blockchain node set information, selecting third appointed channel set information from the blockchain channel set information, and selecting third appointed user set information from the blockchain authentication authorized user set information; and
and forming a third request combination aiming at the channel query request by the third specified available node set information, the third specified channel set information and the third specified user set information.
7. The method of claim 1, wherein the designated node set information comprises: specifying available node set information and/or specifying packed node set information;
the designated node set characterized by the designated node set information is in an overload state and comprises at least one of the following items:
the designated blockchain node set represented by the designated available node set information is in an overload state; and
and the specified packing node set represented by the specified packing node set information is in an overload state.
8. An information processing apparatus applied to a blockchain client, the apparatus comprising:
the pre-storing module is used for pre-storing the block chain configuration information of the block chain network to which the specified service application belongs;
a request receiving module, configured to receive an operation request from the specified service application, where the operation request includes a dynamic parameter;
a request assembling module, configured to generate a request combination based on the dynamic parameter and the block chain configuration information, where the request combination includes specified node set information; and
the processing module is used for submitting the request combination to a message queue when monitoring that the designated node set represented by the designated node set information is in an overload state; and when the appointed node set is monitored to be changed from an overload state to a normal state, the request combination is obtained from the message queue and is sent to the appointed node set for processing.
9. A computer system, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor when executing the computer program for implementing the method according to any of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions for implementing the method of any one of claims 1-7 when executed.
CN202010570484.9A 2020-06-19 2020-06-19 Information processing method, information processing apparatus, computer system, and medium Pending CN111726304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010570484.9A CN111726304A (en) 2020-06-19 2020-06-19 Information processing method, information processing apparatus, computer system, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010570484.9A CN111726304A (en) 2020-06-19 2020-06-19 Information processing method, information processing apparatus, computer system, and medium

Publications (1)

Publication Number Publication Date
CN111726304A true CN111726304A (en) 2020-09-29

Family

ID=72569724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010570484.9A Pending CN111726304A (en) 2020-06-19 2020-06-19 Information processing method, information processing apparatus, computer system, and medium

Country Status (1)

Country Link
CN (1) CN111726304A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527837A (en) * 2020-12-09 2021-03-19 苏州市星际云通区块链科技有限公司 Block chain cross-chain data interaction and verification method, block chain system and storage medium
CN112565104A (en) * 2020-12-01 2021-03-26 腾讯科技(深圳)有限公司 Flow control method, device, medium and electronic equipment of block chain system
CN112733182A (en) * 2020-12-22 2021-04-30 航天信息股份有限公司 Method and system for accessing intranet private data by block chain node point
CN113807968A (en) * 2021-09-22 2021-12-17 网易(杭州)网络有限公司 Block chain user request processing method, device, request server and storage medium
WO2022077846A1 (en) * 2020-10-15 2022-04-21 杭州云链趣链数字科技有限公司 Blockchain-based operation and maintenance method and system, computer device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985757A (en) * 2017-11-27 2018-12-11 北京京东金融科技控股有限公司 Information processing method, apparatus and system, storage medium, electronic equipment
CN110519388A (en) * 2019-08-30 2019-11-29 北京东软望海科技有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of block chain request
CN111078745A (en) * 2019-12-20 2020-04-28 京东数字科技控股有限公司 Data uplink method and device based on block chain technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985757A (en) * 2017-11-27 2018-12-11 北京京东金融科技控股有限公司 Information processing method, apparatus and system, storage medium, electronic equipment
CN110519388A (en) * 2019-08-30 2019-11-29 北京东软望海科技有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of block chain request
CN111078745A (en) * 2019-12-20 2020-04-28 京东数字科技控股有限公司 Data uplink method and device based on block chain technology

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022077846A1 (en) * 2020-10-15 2022-04-21 杭州云链趣链数字科技有限公司 Blockchain-based operation and maintenance method and system, computer device and storage medium
CN112565104A (en) * 2020-12-01 2021-03-26 腾讯科技(深圳)有限公司 Flow control method, device, medium and electronic equipment of block chain system
CN112527837A (en) * 2020-12-09 2021-03-19 苏州市星际云通区块链科技有限公司 Block chain cross-chain data interaction and verification method, block chain system and storage medium
CN112733182A (en) * 2020-12-22 2021-04-30 航天信息股份有限公司 Method and system for accessing intranet private data by block chain node point
CN113807968A (en) * 2021-09-22 2021-12-17 网易(杭州)网络有限公司 Block chain user request processing method, device, request server and storage medium
CN113807968B (en) * 2021-09-22 2024-02-23 网易(杭州)网络有限公司 Block chain user request processing method and device, entrusting server and storage medium

Similar Documents

Publication Publication Date Title
CN111726304A (en) Information processing method, information processing apparatus, computer system, and medium
US20190354397A1 (en) Prioritization in a permissioned blockchain
US20220239496A1 (en) Blockchain consensus method, device and system
Abolfazli et al. MOMCC: market-oriented architecture for mobile cloud computing based on service oriented architecture
US11777865B2 (en) Discovery and adjustment of path maximum transmission unit
EP3382537B1 (en) Verifying that usage of virtual network function (vnf) by a plurality of compute nodes comply with allowed usage rights
CN110766408A (en) Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
US20150012914A1 (en) Distributed update service
US10768903B2 (en) Virtualization layer for mobile applications
US8739175B2 (en) System and method for rerouting a request between virtualization services
US11089007B2 (en) Role-based resource access control
US10171630B2 (en) Executing remote commands
JP2024505692A (en) Data processing methods, devices and computer equipment based on blockchain networks
CN114675962A (en) Attestation support for elastic cloud computing environments
CN113691511B (en) Service request processing method and device, equipment and medium thereof
CN107301053B (en) Picture configuration method and device and electronic terminal
CN112187570A (en) Risk detection method and device, electronic equipment and readable storage medium
US7373504B1 (en) Kernel-level cryptographic kernel interface
CN112953719A (en) Token authentication method and device
CN112804351B (en) Flow control method, device, node, medium and product of block chain system
CN115694914A (en) Password service deployment system and method for Internet of things
Wu et al. Microservices architectural based secure and failure aware task assignment schemes in fog‐cloud assisted Internet of things
US20230412570A1 (en) Configurable proxying application program interface façade service
US20130091195A1 (en) Orchestration of web notifications
CN111989705B (en) Priority in licensed blockchain

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200929

RJ01 Rejection of invention patent application after publication