CN113687878B - Information interaction method, device, equipment and storage medium - Google Patents

Information interaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN113687878B
CN113687878B CN202110968503.8A CN202110968503A CN113687878B CN 113687878 B CN113687878 B CN 113687878B CN 202110968503 A CN202110968503 A CN 202110968503A CN 113687878 B CN113687878 B CN 113687878B
Authority
CN
China
Prior art keywords
information interaction
request
attribute
sub
threshold
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
CN202110968503.8A
Other languages
Chinese (zh)
Other versions
CN113687878A (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.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology 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 Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202110968503.8A priority Critical patent/CN113687878B/en
Publication of CN113687878A publication Critical patent/CN113687878A/en
Application granted granted Critical
Publication of CN113687878B publication Critical patent/CN113687878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses an information interaction method, an information interaction device, information interaction equipment and a storage medium, wherein the method comprises the following steps: receiving an information interaction request, and acquiring attribute values of split attribute parameters associated with the information interaction request; determining a target configuration threshold associated with the information interaction request; and splitting and executing the information interaction request based on the target configuration threshold and the attribute value to obtain an execution result of the information interaction request. According to the method provided by the embodiment of the invention, the information interaction request is split and executed based on the target configuration threshold value configured in the configuration center in advance, so that the technical problems of poor suitability and low execution efficiency caused by repeated calling of the interface by manually splitting the information interaction request are avoided, the efficiency of information interaction when the data volume is large is improved, and the suitability and the universality of the information interaction method are improved.

Description

Information interaction method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an information interaction method, an information interaction device, information interaction equipment and a storage medium.
Background
In the process of interaction between services, massive data interaction (commonly called large message) often occurs, and in order to avoid risks such as overtime of execution of interface business logic and the like caused by overlarge data volume requested by a control calling party at one time, an interface provider needs to limit the threshold value of interface parameters. The limiting modes in the prior art are as follows: and the calling party manually splits the request data according to the threshold value of the provided interface, circularly calls the service interface, and maintains corresponding codes in the code blocks of each calling interface.
In the process of implementing the present invention, the inventor finds that at least the following technical problems exist in the prior art: when the data volume of information interaction is large, the maintenance cost of the code is high, the suitability and the universality are poor, and the information interaction efficiency is low.
Disclosure of Invention
The embodiment of the invention provides an information interaction method, an information interaction device, information interaction equipment and a storage medium, so that the efficiency of information interaction when the data volume is large is improved, and the suitability and the universality of the information interaction method are improved.
In a first aspect, an embodiment of the present invention provides an information interaction method, including:
receiving an information interaction request, and acquiring attribute values of split attribute parameters associated with the information interaction request;
determining a target configuration threshold associated with the information interaction request;
and splitting and executing the information interaction request based on the target configuration threshold value and the attribute value to obtain an execution result of the information interaction request.
In a second aspect, an embodiment of the present invention further provides an information interaction device, including:
the attribute value acquisition module is used for receiving the information interaction request and acquiring the attribute value of the split attribute parameter associated with the information interaction request;
the configuration threshold acquisition module is used for determining a target configuration threshold associated with the information interaction request;
and the interaction request execution module is used for splitting and executing the information interaction request based on the target configuration threshold value and the attribute value to obtain an execution result of the information interaction request.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
one or more processors;
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the information interaction method as provided by any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements an information interaction method as provided by any of the embodiments of the present invention.
According to the information interaction method provided by the embodiment of the invention, the attribute value of the split attribute parameter associated with the information interaction request is obtained by receiving the information interaction request; determining a target configuration threshold associated with the information interaction request; and splitting and executing the information interaction request based on the target configuration threshold value and the attribute value to obtain an execution result of the information interaction request. The information interaction request is split and executed based on the target configuration threshold value configured in the configuration center in advance, so that the technical problems of poor suitability and low execution efficiency caused by repeated interface calling of the manual split information interaction request are avoided, the efficiency of information interaction when the data volume is large is improved, and the suitability and the universality of the information interaction method are improved.
Drawings
Fig. 1 is a flow chart of an information interaction method according to an embodiment of the invention;
fig. 2 is a flow chart of an information interaction method according to a second embodiment of the present invention;
fig. 3 is a flow chart of an information interaction method according to a third embodiment of the present invention;
fig. 4 is a flow chart of an information interaction method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an information interaction device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of an information interaction method according to an embodiment of the present invention. The embodiment can be suitable for the situation of information interaction, such as information interaction between servers or data interaction between databases, especially for the situation of information interaction when the data volume is large. The method may be performed by an information-interactive system, which may be implemented in software and/or hardware, e.g., which may be configured in a computer device. As shown in fig. 1, the method includes:
s110, receiving an information interaction request, and acquiring attribute values of split attribute parameters associated with the information interaction request.
The information interaction method provided by the embodiment can be suitable for information interaction among different main bodies, such as information interaction among servers, information interaction among databases, information interaction among the servers and the databases, and the like. Correspondingly, the information interaction request can be an information interaction request sent between the servers, an information interaction request sent between the databases, or an information interaction request between the servers and the databases. For example, when the client triggers the item detail acquiring request, the client server sends the item detail acquiring request to the background server, and at this time, the client server sends the item detail acquiring request to the background server as an information interaction request. In another embodiment, when the user triggers a data storage request, the data storage request is sent to the database, and the data storage request at this time can be used as an information interaction request. Similarly, when the user triggers the data acquisition request, the server sends the data acquisition request to the database, and the tested data acquisition request can also be used as an information interaction request. It should be noted that, the information interaction method provided in this embodiment is not limited to the information interaction scenario of the above example, and the above example is only used for exemplary description of the scenario of the information interaction request.
In this embodiment, splitting attribute parameters to be split are preconfigured, and after an information interaction request is received, attribute values of the splitting attribute parameters in the information interaction request are obtained based on the preconfigured splitting attribute parameters, so that request splitting is performed based on the attribute values.
It can be understood that the split attribute parameters and the threshold configuration parameters provided in this embodiment may be implemented in different manners, for example, may be implemented in a manner of static tools, notes, etc. Correspondingly, the implementation modes are different, and the mode for acquiring the attribute values of the split attribute parameters is also different. Taking static tool class implementation as an example, the attribute values of the split attribute parameters can be obtained through operations such as reflection calling and the like. Taking the annotation mode as an example, the attribute value of the splitting attribute parameter can be obtained by directly intercepting the information interaction request containing the annotation through the interceptor.
S120, determining a target configuration threshold associated with the information interaction request.
In the present embodiment, the threshold configuration parameter and the split attribute parameter are preconfigured. Taking information interaction among servers as an example, the threshold configuration parameter can be an interface threshold of a server interface, and taking information interaction of a database as an example, the threshold configuration parameter can be a data threshold of batch operation of the database. By configuring the threshold configuration parameters in the configuration center in advance, the development of manual code input threshold parameters can be avoided, and the configuration of the threshold parameters is more dynamic and flexible.
Optionally, the splitting attribute parameter and the threshold configuration parameter are set in an associated mode, after the information interaction request is received, the splitting attribute parameter associated with the information interaction request is analyzed, and the pre-configured threshold configuration parameter corresponding to the splitting attribute parameter is obtained to serve as a target configuration threshold.
Based on the above scheme, the information interaction method provided in this embodiment further includes:
and responding to the detected threshold configuration request, acquiring the threshold configuration parameters and the splitting attribute parameters of the threshold configuration request, and storing the threshold configuration parameters and the splitting attribute parameters in an associated mode.
Optionally, the configuration center may perform setting of the splitting attribute parameter and the threshold configuration parameter in advance, after setting is completed, the threshold configuration request is triggered, and after detecting the threshold configuration request triggered by the user, the information interaction device stores the threshold configuration parameter and the splitting attribute parameter carried in the threshold configuration request in an associated manner.
S130, splitting and executing the information interaction request based on the target configuration threshold and the attribute value to obtain an execution result of the information interaction request.
After the target configuration threshold and the attribute value of the split attribute parameter are obtained, the attribute value can be split directly based on the target configuration threshold, so that the split of the information interaction request is realized, the split information interaction request is executed, and the execution result of the information interaction request is obtained.
It will be appreciated that the type of execution result of the information interaction request is determined by the type of information interaction request. For example, when the information interaction request is an information acquisition request, the execution result of the information interaction request may be failure or success of information acquisition, and when the information acquisition is successful, the execution result of the information interaction request further includes target information to be acquired. When the information interaction request is an information writing request, the execution result of the information interaction request may be information writing failure or information writing success.
In one embodiment of the present invention, splitting the information interaction request based on the target configuration threshold and the attribute value to obtain an execution result of the information interaction request includes:
splitting the attribute value into a plurality of information interaction sub-requests based on a target configuration threshold;
executing the information interaction sub-requests, and determining the execution result of the information interaction request based on the sub-request execution result of the information interaction sub-requests.
Optionally, splitting the attribute value into a plurality of information interaction sub-requests based on the target configuration threshold, executing the split information interaction sub-requests in batches to obtain sub-request execution results of the information interaction sub-requests, and obtaining request results of the information interaction requests based on the sub-request execution results. It can be understood that when any information interaction sub-request fails to execute, the interactive execution operation of other information interaction sub-requests can be terminated, and the execution result of the information interaction request is determined to be the execution failure. And when all the information interaction sub-requests are successfully executed, combining sub-request execution results of all the information interaction sub-requests to obtain an execution result of the information interaction request.
In addition, in the execution process of the information interaction sub-request, the execution process and the execution result are recorded in a log, so that the analysis of the subsequent execution process is facilitated.
On the basis of the scheme, executing a plurality of information interaction sub-requests, determining the execution result of the information interaction request based on the sub-request execution result of the information interaction sub-requests, and comprising:
executing each information interaction sub-request, and acquiring a sub-request execution result corresponding to each information interaction sub-request;
and determining a target assembly strategy based on the result type of the sub-request execution result, and assembling the sub-request execution result according to the target assembly to obtain the execution result of the information interaction request.
It will be appreciated that the assembly strategies for different outcome types are different. Taking the information interaction request as a data acquisition request as an example, when the acquired data types are different, the corresponding assembly strategies are different. Illustratively, an assembly policy with a data type of Boolean type (boost type) is different from an assembly policy with a data type of list type (list type). Based on this, a corresponding assembly policy may be set in advance according to the characteristics of each result type. After the sub-request execution results of the information interaction sub-requests are obtained, determining the result types of the sub-request execution results, searching an assembly strategy corresponding to the result types from the pre-configured assembly strategy to serve as a target assembly strategy, and then assembling each sub-request execution result based on the target assembly strategy to obtain the execution results of the information interaction requests.
Optionally, executing each information interaction sub-request includes: each information interaction sub-request is performed in batches using a first streaming technique. Specifically, all sub-requests split by the splitter can be executed by using the stream technology as the first stream technology, and declarative statements are directly executed by using the JDK function programming technology support. The flow technology is different from the common circulation, so that the program operation code can be simplified, and the pressure of program operation can be reduced.
According to the embodiment of the invention, the interface definition module responds to the detected interface definition instruction to obtain the interface definition parameter corresponding to the interface definition instruction; the interface agent module generates an agent realization class according to the interface definition parameters; the data definition module generates simulation test data according to the agent implementation class; the data storage module stores the simulation test data, after the simulation test data is well defined through a back-end developer interface, the test interface is issued by the direct platform, the system automatically generates the test data, the front end directly utilizes the existing interface to carry out one-pass hand development, the back-end interface change is reflected to the front end in real time, and the generation efficiency of the test data is improved.
Example two
Fig. 2 is a flow chart of an information interaction method according to a second embodiment of the present invention. Based on the embodiment, the embodiment further optimizes the attribute value of the split attribute parameter associated with the acquired information interaction request. In this embodiment, explanations of the same or corresponding terms as those of the above embodiments are not repeated here. As shown in fig. 2, the method includes:
s210, receiving an information interaction request, analyzing the information interaction request, and determining a target parameter source and a target attribute name associated with the information interaction request.
In this embodiment, the setting of the threshold configuration information is implemented by means of encapsulating the static tool class, which can be used for service interaction scenarios. Specifically, static tool class can be derived, only the attribute name, threshold value and parameter source needing to be split are needed to be transmitted, namely, data slicing according to the transmitted attribute is realized, service interfaces are called in batches with high performance, each service interface is dynamically adapted, any code is not required to be newly added and maintained, code lines repeatedly and manually split and called are greatly reduced, and readability, usability and maintainability are improved.
Optionally, when implementing in a manner of packaging the static tool class, the caller initiates the information interaction request through the call service interface, and after receiving the information interaction request, the receiver analyzes the information interaction request to obtain information such as a parameter source, an attribute to be split, a threshold value, a call statement and the like in the information interaction request, and takes the parameter source in the information interaction request as a target parameter source and takes the attribute name to be split as a target attribute name.
S220, generating byte codes of the target parameter source by adopting a second streaming technology, and obtaining an attribute value corresponding to the target parameter source according to reflection of the target attribute name based on the byte codes.
After the target parameter source and the target attribute name are determined, the reflector is used for reflecting the object attribute of the target parameter source, and an attribute value corresponding to the target parameter source is obtained. Specifically, a reflectAsm byte stream technology can be used as a second stream technology to generate the byte code of the target parameter source, the attribute value in the target parameter source is reflected according to the target attribute name, the performance of the application byte stream is basically equivalent to that of the get () method to directly obtain the value, frequent requests of the same target parameter source are avoided, and the information interaction efficiency is improved.
S230, determining a target configuration threshold associated with the information interaction request.
S240, splitting and executing the information interaction request based on the target configuration threshold and the attribute value to obtain an execution result of the information interaction request.
Based on the embodiment, the embodiment of the invention embodies the attribute values of the split attribute parameters associated with the acquired information interaction request as follows: analyzing the information interaction request, and determining a target parameter source and a target attribute name associated with the information interaction request; and generating byte codes of the target parameter sources by adopting a second streaming technology, and obtaining attribute values corresponding to the target parameter sources according to reflection of the target attribute names based on the byte codes. The byte codes of the target parameter sources are generated based on the second streaming technology, so that the generation efficiency of the byte codes is improved, and the acquisition efficiency of the attribute values corresponding to the target parameter sources is further improved.
Example III
Fig. 3 is a flow chart of an information interaction method according to a third embodiment of the present invention. Based on the embodiment, the embodiment further optimizes the attribute value of the split attribute parameter associated with the acquired information interaction request. In this embodiment, explanations of the same or corresponding terms as those of the above embodiments are not repeated here. As shown in fig. 3, the method includes:
s310, receiving an information interaction request, and taking the parameter value of the split attribute parameter associated with the information interaction request as the attribute value of the split attribute parameter when the slice annotation exists in the information interaction request.
In this embodiment, the setting of the threshold configuration information is achieved by means of user-defined annotation, and the method can be used for database interaction scenes. Specifically, the custom annotation can be marked on the execution method, and the database can be operated in batches by splitting the data according to the threshold value only by inputting the threshold value of the operation data, so that the pressure of the database is reduced, and the development cost is reduced.
When the method is implemented in a custom annotation mode, the information interaction request containing the slice annotation (namely the custom annotation) can be directly intercepted by the interceptor, the method and the parameter value of the information interaction request are obtained during interception, and the obtained parameter value is used as the attribute value of the splitting attribute parameter.
S320, determining a target configuration threshold associated with the information interaction request.
S330, splitting and executing the information interaction request based on the target configuration threshold and the attribute value to obtain an execution result of the information interaction request.
Based on the embodiment, the embodiment of the invention embodies the attribute values of the split attribute parameters associated with the acquired information interaction request as follows: when the slice annotation exists in the information interaction request, the parameter value of the splitting attribute parameter associated with the information interaction request is used as the attribute value of the splitting attribute parameter. The attribute values are obtained through direct interception, so that the obtaining mode of the attribute values is simplified, and the obtaining efficiency of the attribute values is improved.
Example IV
The present embodiment provides a preferred embodiment based on the above-described scheme. According to the embodiment of the invention, based on the attribute in the identification parameter context, the request data is dynamically split according to the threshold value, the high-adaptation high-expansion slicing tool is derived and is extremely simple to use for any business scene, and the operation database can derive the slicing annotation mark again according to the slicing tool on the execution method.
By taking service interaction as an example, static tool class can be directly derived, attribute names, threshold values and parameter sources needing to be split are transmitted, namely, data slicing according to the transmitted attributes is realized, service interfaces are called in batches with high performance, each service interface is dynamically adapted, any code is not required to be newly added and maintained, code lines repeatedly and manually split and called are greatly reduced, and readability, usability and maintainability are improved.
Taking database interaction as an example, the user-defined annotation can be marked on the database execution method directly, the threshold value of the operation data is input, the database can be operated in batches by splitting the data according to the threshold value, the pressure of the database is reduced, and the development cost is reduced.
Fig. 4 is a flow chart of an information interaction method according to a fourth embodiment of the present invention. The flow of information interaction in the package tool class scenario and in the custom annotation scenario is illustrated in FIG. 4. Taking a packaging tool class scene as an example, configuring a threshold value in a configuration center in advance, receiving input information such as a parameter source, an attribute to be split, a threshold value, a call statement and the like when the service interface is detected to be called, executing reflection of the attribute of the parameter source object through a reflector based on the parameter source object (namely a target parameter source) and the attribute to be sliced (namely a split attribute parameter) to obtain an attribute value, splitting the attribute value based on the threshold value in advance to obtain a plurality of sub-requests, and executing the plurality of sub-requests in batches by adopting a streaming technology to obtain an execution result. Taking the custom annotation as an example, a threshold value is configured in a configuration center in advance, when an information interaction request is received, the information interaction request containing the custom annotation can be directly intercepted through an interceptor, an intercepted method and a parameter value are obtained, the parameter value is taken as an attribute value, the attribute value is split based on the pre-configured threshold value, a plurality of sub-requests are obtained, and the sub-requests are executed in batches by adopting a streaming technology, so that an execution result is obtained. As can be seen from FIG. 4, the split sub-requests are handled differently in different scenarios, but the operations for executing sub-requests in batches are consistent. Specifically, the sub-request execution can be output in batches by using a streaming technology, and when the sub-request execution is abnormal, other sub-request interaction is stopped and recorded, and after the sub-request execution is successful, the sub-request execution results of all the sub-requests are assembled into the execution results of the information interaction request. In addition, the calling mode of the sub-request can be set in the mode of expanding the capability burial point during execution, such as synchronous calling or asynchronous calling of the sub-request can be set.
The information interaction method provided in fig. 4 is implemented by an information interaction system, and the main components of the information interaction system may include: configuration centers, interceptors, reflector/bytecode resolvers, splitters, slice executors, result collectors, pipeline record/anomaly listeners, extended capability packages, etc., the auxiliary components are: asm byte stream, cache, stream, log unification receiver, etc. Wherein:
configuration center: the method is mainly used for configuring interface threshold values needing slice interaction, data threshold values of database batch operation and the like, manual code input threshold value parameters are not required to be developed in the configuration process, and the method is more dynamic and flexible.
Interceptor: the method and the parameter values can be acquired at the position of the method to be intercepted, and in fig. 4, for example, a database operation scene is taken as an example, and then the database execution method is intercepted.
Reflector/bytecode parser + cache: and generating byte codes of the parameter sources by using a reflectAsm byte stream technology, reflecting attribute values in the parameter sources according to specific incoming attribute names, and directly acquiring values by using a byte stream performance basically equivalent to that of a get () method, thereby avoiding frequent requests of the same parameter sources and improving the cache management access performance.
The splitter comprises: and dynamically splitting the reflected attribute values into a plurality of sub-requests according to the threshold values, and recording the split requests, parameters, sentences, threshold values and other information to a log receiver.
Slice executor+stream: all sub-requests split by the splitter are executed by using the stream technology, and declarative sentences are directly executed by using JDK functional programming technology support.
An exception handler: all sub-requests are terminated when any sub-request fails to execute, and recorded into the log receiver at the same time.
Result collector: and receiving execution results of all sub-requests, matching different assembly strategies according to different result types, and summarizing the results together through strategy modes, wherein different assembly modes exist for example, a bootan and a list. Expansion capability package: the slicing scheme supports expansion, uses the spi technology (serial peripheral interface) to support, makes buried points at the executor, and develops the self-defined expansion logic through the service scene, such as: whether multiple sub-requests are called synchronously or asynchronously, etc.
Taking a warehousing system as an example, when basic data service is required to be called to inquire basic information of a large number of articles, the slicing tool provided by the embodiment can be adopted to call and acquire SKU article information in batches in consideration of interaction performance and interface stability, meanwhile, annotation slices can be adopted to execute database inquiry, and link database pressure reduces risks.
The method provided by the embodiment of the invention realizes the split execution of the request in the modes of tools, notes and the like, reduces the risk caused by the mass data interaction among the service system modules, improves the interface performance and stability, reduces the manpower cost, the time cost and the later maintenance cost of research and development, can adapt to various service scene interfaces and can dynamically configure the threshold value, improves the method execution performance by adopting various streaming technologies and caching technologies, and improves the readability of the program by adopting the unified processing of a dynamic slicing idea scheme.
Example five
Fig. 5 is a schematic structural diagram of an information interaction device according to a fifth embodiment of the present invention. The information interaction means may be implemented in software and/or hardware, e.g. the information interaction means may be deployed in a computer device. As shown in fig. 5, the apparatus includes an attribute value acquisition module 510, a configuration threshold acquisition module 520, and an interactive request execution module 530, wherein:
the attribute value obtaining module 510 is configured to receive an information interaction request, and obtain an attribute value of a split attribute parameter associated with the information interaction request;
a configuration threshold obtaining module 520, configured to determine a target configuration threshold associated with the information interaction request;
the interactive request execution module 530 is configured to split and execute the information interactive request based on the target configuration threshold and the attribute value, so as to obtain an execution result of the information interactive request.
According to the embodiment of the invention, the attribute value acquisition module receives the information interaction request and acquires the attribute value of the split attribute parameter associated with the information interaction request; the configuration threshold acquisition module determines a target configuration threshold associated with the information interaction request; and the interactive request execution module performs split execution on the information interactive request based on the target configuration threshold and the attribute value to obtain an execution result of the information interactive request. The information interaction request is split and executed based on the target configuration threshold value configured in the configuration center in advance, so that the technical problems of poor suitability and low execution efficiency caused by repeated interface calling of the manual split information interaction request are avoided, the efficiency of information interaction when the data volume is large is improved, and the suitability and the universality of the information interaction method are improved.
Optionally, based on the above scheme, the interactive request execution module 530 is specifically configured to:
splitting the attribute value into a plurality of information interaction sub-requests based on a target configuration threshold;
executing the information interaction sub-requests, and determining the execution result of the information interaction request based on the sub-request execution result of the information interaction sub-requests.
Optionally, based on the above scheme, the interactive request execution module 530 is specifically configured to:
executing each information interaction sub-request, and acquiring a sub-request execution result corresponding to each information interaction sub-request;
and determining a target assembly strategy based on the result type of the sub-request execution result, and assembling the sub-request execution result according to the target assembly to obtain the execution result of the information interaction request.
Optionally, based on the above scheme, the interactive request execution module 530 is specifically configured to:
each information interaction sub-request is performed in batches using a first streaming technique.
Optionally, based on the above scheme, the attribute value obtaining module 510 is specifically configured to:
analyzing the information interaction request, and determining a target parameter source and a target attribute name associated with the information interaction request;
and generating byte codes of the target parameter sources by adopting a second streaming technology, and obtaining attribute values corresponding to the target parameter sources according to reflection of the target attribute names based on the byte codes.
Optionally, based on the above scheme, the attribute value obtaining module 510 is specifically configured to:
when the slice annotation exists in the information interaction request, the parameter value of the splitting attribute parameter associated with the information interaction request is used as the attribute value of the splitting attribute parameter.
Optionally, on the basis of the above scheme, the apparatus further includes a threshold configuration module, configured to:
and responding to the detected threshold configuration request, acquiring the threshold configuration parameters and the splitting attribute parameters of the threshold configuration request, and storing the threshold configuration parameters and the splitting attribute parameters in an associated mode.
The information interaction device provided by the embodiment of the invention can execute the information interaction method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary computer device 612 suitable for use in implementing embodiments of the invention. The computer device 612 depicted in fig. 6 is merely an example, and should not be taken as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 6, computer device 612 is in the form of a general purpose computing device. Components of computer device 612 may include, but are not limited to: one or more processors 616, a system memory 628, and a bus 618 that connects the various system components, including the system memory 628 and the processor 616.
Bus 618 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor 616, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 612 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 628 may include computer-system-readable media in the form of volatile memory, such as Random Access Memory (RAM) 630 and/or cache memory 632. The computer device 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 618 through one or more data medium interfaces. Memory 628 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 640 having a set (at least one) of program modules 642 may be stored in, for example, the memory 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
The computer device 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing device, display 624, etc.), one or more devices that enable a user to interact with the computer device 612, and/or any device (e.g., network card, modem, etc.) that enables the computer device 612 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 622. Moreover, the computer device 612 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 620. As shown, the network adapter 620 communicates with other modules of the computer device 612 over the bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 612, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
Processor 616 executes various functional applications and data processing by running programs stored in system memory 628, such as implementing the information interaction method provided by embodiments of the present invention, the method comprising:
receiving an information interaction request, and acquiring attribute values of split attribute parameters associated with the information interaction request;
determining a target configuration threshold associated with the information interaction request;
and splitting and executing the information interaction request based on the target configuration threshold value and the attribute value to obtain an execution result of the information interaction request.
Of course, it will be appreciated by those skilled in the art that the processor may also implement the technical solution of the information interaction method provided in any embodiment of the present invention.
Example seven
The seventh embodiment of the present invention also provides a computer readable storage medium having a computer program stored thereon, the program when executed by a processor implementing the information interaction method provided by the embodiment of the present invention, the method comprising:
receiving an information interaction request, and acquiring attribute values of split attribute parameters associated with the information interaction request;
determining a target configuration threshold associated with the information interaction request;
and splitting and executing the information interaction request based on the target configuration threshold value and the attribute value to obtain an execution result of the information interaction request.
Of course, the computer readable storage medium provided by the embodiments of the present invention, on which the computer program stored, is not limited to the above method operations, but may also perform the related operations of the information interaction method provided by any of the embodiments of the present invention.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. An information interaction method, comprising:
receiving an information interaction request, and acquiring attribute values of split attribute parameters associated with the information interaction request;
acquiring a pre-configured threshold configuration parameter corresponding to the splitting attribute parameter as a target configuration threshold associated with the information interaction request;
splitting and executing the information interaction request based on the target configuration threshold and the attribute value to obtain an execution result of the information interaction request, wherein the threshold configuration parameter is an interface threshold of a server interface and/or a data threshold of database batch operation;
the splitting execution is performed on the information interaction request based on the target configuration threshold and the attribute value to obtain an execution result of the information interaction request, including:
splitting the attribute value into a plurality of information interaction sub-requests based on the target configuration threshold;
executing the information interaction sub-requests, and determining an execution result of the information interaction request based on a sub-request execution result of the information interaction sub-request;
executing each information interaction sub-request to obtain a sub-request execution result corresponding to each information interaction sub-request;
and determining a target assembly strategy based on the result type of the sub-request execution result, and assembling the sub-request execution result according to the target assembly to obtain the execution result of the information interaction request.
2. The method of claim 1, wherein said executing each of said information interaction sub-requests comprises:
each of the information interaction sub-requests is performed in batches using a first streaming technique.
3. The method according to claim 1, wherein the obtaining the attribute value of the split attribute parameter associated with the information interaction request includes:
analyzing the information interaction request, and determining a target parameter source and a target attribute name associated with the information interaction request;
and generating byte codes of the target parameter source by adopting a second streaming technology, and reflecting according to the target attribute name based on the byte codes to obtain an attribute value corresponding to the target parameter source.
4. The method according to claim 1, wherein the obtaining the attribute value of the split attribute parameter associated with the information interaction request includes:
and when the slice annotation exists in the information interaction request, taking the parameter value of the split attribute parameter associated with the information interaction request as the attribute value of the split attribute parameter.
5. The method as recited in claim 1, further comprising:
and responding to the detected threshold configuration request, acquiring a threshold configuration parameter and a split attribute parameter of the threshold configuration request, and storing the threshold configuration parameter and the split attribute parameter in an associated mode.
6. An information interaction device, comprising:
the attribute value acquisition module is used for receiving an information interaction request and acquiring an attribute value of a split attribute parameter associated with the information interaction request;
the configuration threshold value acquisition module is used for acquiring a pre-configured threshold value configuration parameter corresponding to the splitting attribute parameter as a target configuration threshold value associated with the information interaction request, wherein the threshold value configuration parameter is an interface threshold value of a server interface and/or a data threshold value of database batch operation;
the interactive request execution module is used for carrying out split execution on the information interactive request based on the target configuration threshold value and the attribute value to obtain an execution result of the information interactive request;
the interactive request execution module is specifically configured to:
splitting the attribute value into a plurality of information interaction sub-requests based on the target configuration threshold;
executing each information interaction sub-request to obtain a sub-request execution result corresponding to each information interaction sub-request;
and determining a target assembly strategy based on the result type of the sub-request execution result, and assembling the sub-request execution result according to the target assembly to obtain the execution result of the information interaction request.
7. A computer device, the device comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by one or more processors, causes the one or more processors to implement the information interaction method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the information interaction method according to any of claims 1-5.
CN202110968503.8A 2021-08-23 2021-08-23 Information interaction method, device, equipment and storage medium Active CN113687878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110968503.8A CN113687878B (en) 2021-08-23 2021-08-23 Information interaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110968503.8A CN113687878B (en) 2021-08-23 2021-08-23 Information interaction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113687878A CN113687878A (en) 2021-11-23
CN113687878B true CN113687878B (en) 2023-12-01

Family

ID=78581467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110968503.8A Active CN113687878B (en) 2021-08-23 2021-08-23 Information interaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113687878B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897866A (en) * 2015-12-15 2017-06-27 深圳市银信网银科技有限公司 A kind of processing method of data interaction, server and device
CN108667930A (en) * 2018-05-09 2018-10-16 聚龙股份有限公司 A kind of configuration of dynamic data source and automation switching method
CN110198349A (en) * 2019-05-27 2019-09-03 腾讯科技(深圳)有限公司 Document transmission method and device, storage medium and electronic device
CN112822646A (en) * 2021-04-19 2021-05-18 中兴通讯股份有限公司 Message processing method and device, electronic equipment and computer readable storage medium
CN113067866A (en) * 2021-03-18 2021-07-02 中国工商银行股份有限公司 Batch file transmission method and device between heterogeneous systems
CN113254974A (en) * 2021-06-11 2021-08-13 山东广鹏信息科技有限公司 Information security encryption method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8689354B2 (en) * 2009-09-29 2014-04-01 Cleversafe, Inc. Method and apparatus for accessing secure data in a dispersed storage system
US11481558B2 (en) * 2018-09-12 2022-10-25 Samsung Electroncis Co., Ltd. System and method for a scene builder

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897866A (en) * 2015-12-15 2017-06-27 深圳市银信网银科技有限公司 A kind of processing method of data interaction, server and device
CN108667930A (en) * 2018-05-09 2018-10-16 聚龙股份有限公司 A kind of configuration of dynamic data source and automation switching method
CN110198349A (en) * 2019-05-27 2019-09-03 腾讯科技(深圳)有限公司 Document transmission method and device, storage medium and electronic device
CN113067866A (en) * 2021-03-18 2021-07-02 中国工商银行股份有限公司 Batch file transmission method and device between heterogeneous systems
CN112822646A (en) * 2021-04-19 2021-05-18 中兴通讯股份有限公司 Message processing method and device, electronic equipment and computer readable storage medium
CN113254974A (en) * 2021-06-11 2021-08-13 山东广鹏信息科技有限公司 Information security encryption method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Efficient execution of data warehouse query using look ahead matching algorithm;Kale Sarika Prakash等;2016 International Conference on Automatic Control and Dynamic Optimization Techniques (ICACDOT);全文 *
基于旁路通道的片上网络差别型服务实现方法;全励;程爱莲;潘;丁勇;严晓浪;;浙江大学学报(工学版)(第06期);全文 *
大数据文件存储策略探索;屈美娟;付良廷;;科技创新与应用(第12期);全文 *

Also Published As

Publication number Publication date
CN113687878A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US10353723B2 (en) PL/SQL language parsing at a virtual machine
US9870303B2 (en) Monitoring and correlating a binary process in a distributed business transaction
CN111061489B (en) Multi-platform compiling detection method, device, equipment and medium
CN112346794A (en) Interface calling method, device, equipment and medium
CN109218393B (en) Push implementation method, device, equipment and computer storage medium
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN113296981A (en) Data processing method and device, electronic equipment and storage medium
CN113384896A (en) Unity-based resource packaging method, device, equipment and medium
CN111966653A (en) Data processing method, device, server and storage medium for micro-service call link
CN113687878B (en) Information interaction method, device, equipment and storage medium
CN112445860B (en) Method and device for processing distributed transaction
CN112069158A (en) Data restoration method, device, equipment and storage medium
CN110825802A (en) Multi-type database data backup method, device, equipment and storage medium
CN110620819A (en) Block chain interaction method and device, computer equipment and readable storage medium
CN112748930B (en) Compilation detection method, device, equipment and storage medium
CN112866979B (en) User information association method, device, equipment and medium based on 5G service interface
CN114090514A (en) Log retrieval method and device for distributed system
CN115328891A (en) Data migration method and device, storage medium and electronic equipment
CN114116509A (en) Program analysis method, program analysis device, electronic device, and storage medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
CN114510398A (en) Anomaly monitoring method, apparatus, device, system and medium
CN114219643A (en) Transaction calling method, device, equipment and storage medium
CN109756393B (en) Information processing method, system, medium, and computing 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
GR01 Patent grant
GR01 Patent grant