CN114942765A - Request processing method, device, equipment and storage medium - Google Patents

Request processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114942765A
CN114942765A CN202210457872.5A CN202210457872A CN114942765A CN 114942765 A CN114942765 A CN 114942765A CN 202210457872 A CN202210457872 A CN 202210457872A CN 114942765 A CN114942765 A CN 114942765A
Authority
CN
China
Prior art keywords
spi
target
function point
participant
function
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
CN202210457872.5A
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210457872.5A priority Critical patent/CN114942765A/en
Publication of CN114942765A publication Critical patent/CN114942765A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/445Exploiting fine grain parallelism, i.e. parallelism at instruction level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a request processing method, a request processing device, request processing equipment and a storage medium. The method comprises the following steps: responding to the calling of the target SPI, and determining a target function point arrangement mode based on which the target SPI needs to be executed according to the corresponding relation between different participants and the function point arrangement mode of the target SPI, wherein the target SPI is called according to a calling request initiated by the participants; and executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the calling request. According to the method and the device, a plurality of participants can share the function points in the same component in different function point arrangement modes, the condition that the same function points are contained in different components can be reduced, the bloated existence of codes can be reduced, and the resource saving is facilitated.

Description

Request processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a request processing method, apparatus, device, and storage medium.
Background
The middle platform system is a system formed by a series of execution standards, operation mechanisms, configuration management and execution systems and operation service teams, and provides the capability of quick and low-cost innovation of each participant. After the middle platform system is generated, the research and development system is changed from ' centralized development and development efficiency improvement ' into ' distributed development, the global throughput is guaranteed, the research and development efficiency of the participants is improved, and the innovation efficiency of the participants is greatly improved.
Generally, a standard Service Provider Interface (SPI) technical architecture is adopted in a middle station system, the granularity of SPI opening from the technical framework perspective is a Service level, technically belongs to the granularity of a component level, but the SPI opening is opened to a participant to be customized, so that the problem of code bloat exists.
Disclosure of Invention
The embodiment of the application provides a request processing method, a request processing device, equipment and a storage medium, and aims to solve the problem that codes are bloated because SPI granularity is opened for customization of participants in the prior art.
In a first aspect, an embodiment of the present application provides a request processing method, including:
responding to the calling of a target SPI, and determining a target function point arrangement mode on which the target SPI needs to be executed according to the corresponding relation between different participants and the function point arrangement mode of the target SPI, wherein the target SPI is called according to a calling request initiated by the participants;
and executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the calling request.
In a second aspect, an embodiment of the present application provides a request processing method, including:
acquiring SPI registration information, wherein the SPI registration information is used for registering a function point in an SPI realized by a computing device;
acquiring configuration operation aiming at the SPI according to the SPI registration information, wherein the configuration operation is used for configuring a function point arrangement mode corresponding to a participant;
and generating a corresponding relation between the participant and the function point arranging mode of the SPI according to the configuration operation.
In a third aspect, an embodiment of the present application provides a request processing apparatus, including:
the determining module is used for responding to the calling of the target SPI, and determining a target function point arranging mode based on which the target SPI needs to be executed according to the corresponding relation between different participants and the function point arranging mode of the target SPI, wherein the target SPI is called according to a calling request initiated by the participants and aiming at the target service;
and the execution module is used for executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the calling request.
In a fourth aspect, an embodiment of the present application provides a request processing apparatus, including:
the first acquisition module is used for acquiring the reported SPI registration information, and the SPI registration information is used for registering a function point in an SPI realized by the computing equipment;
a second obtaining module, configured to obtain, according to the SPI registration information, a configuration operation for the SPI, where the configuration operation is used to configure a function point arrangement mode corresponding to a participant;
and the generating module is used for generating the corresponding relation between the participant and the function point arranging mode of the SPI according to the configuration operation.
In a fifth aspect, an embodiment of the present application provides a computing device, including: a memory, a processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method of any of the first aspects.
In a sixth aspect, an embodiment of the present application provides a computer device, including: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method of any of the second aspects.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the method according to any one of the first aspect is implemented.
In an eighth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the method according to any one of the second aspects is implemented.
Embodiments of the present application further provide a computer program, which, when executed by a computer, is configured to implement the method according to any one of the first aspect.
Embodiments of the present application also provide a computer program, which is used to implement the method according to any one of the second aspect when the computer program is executed by a computer.
In the embodiment of the application, the development platform supports arrangement of function points with finer granularity in the participant self-defined SPI on the basis of the SPI, and the computing device where the SPI implementation code is located can execute corresponding function points in the SPI implementation code according to the participant self-defined function point arrangement mode to obtain an execution result corresponding to a call request initiated by the participant, so that customization for the participant is achieved by opening the granularity of the function points, a plurality of participants can share the function points in the same component in different function point arrangement modes, and the situation that the same function points are contained in different components can be reduced, so that the bloated existence of the codes can be reduced, and resource saving is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a request processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a request processing method according to another embodiment of the present application;
FIG. 4 is a block diagram of a request processing method according to an embodiment of the present application;
FIG. 5 is a block diagram of a request processing method according to another embodiment of the present application;
FIG. 6 is a block diagram of a request processing method according to yet another embodiment of the present application;
fig. 7 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a computing device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a request processing apparatus according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two, but does not exclude the presence of at least one.
It should be understood that the term "and/or" as used herein is merely a relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in the embodiments of the methods described below is merely an example, and is not strictly limited.
Fig. 1 is a schematic view of an application scenario in an embodiment of the present application, and as shown in fig. 1, the application scenario may include: the development platform 12 adopts a standard SPI technical system architecture, customized development capability can be provided for different participants, and developers of the participants 11 can perform development work based on the development platform 12.
The participant 11 may initiate a call request for a certain SPI that is developed based on the customization of the development platform 12, and the development platform 12 may call the SPI locally or remotely, so that the computing device where the implementation code of the SPI is located executes the implementation code of the SPI, and obtains an execution result corresponding to the call request. Specifically, when the computing device where the implementation code of the SPI is located is the computing device where the development platform 12 is located, the development platform 12 may locally invoke the SPI. When the computing device where the implementation code of the SPI is located is not the computing device where the development platform 12 is located, the development platform 12 may remotely call the SPI.
The development platform 12 may be any type of platform capable of providing customized development capability for the participants, and for example, the development platform 12 may include a middle platform, which is an integrated middle platform for improving development efficiency, and this middle platform may be referred to as a middle platform system. An enterprise may have multiple teams that handle different areas of development work, respectively, and different teams may be understood as different parties, which may include, for example: tianmao supermarket, international direct camp, koala direct camp, etc.
In the embodiment of the present application, a single SPI implementation code may be understood as a component, and the component may refer to a combinational logic processing module having a specific practical meaning. A single SPI may include multiple function points (also referred to as capability points) in its code, which refers to a common, fine-grained logic processing module below a particular component. For example, the code implementing the bin edit processing logic may be considered a component in which four types of processing logic may be implemented, and the component may be considered to include four functional points of addition, deletion, modification, and lookup.
In general, the development platform 12 is open to customization for participants at the granularity of SPI, and different participants may customize different SPIs, for example, one participant may customize one SPI for providing filtering service for the participant, and another participant may customize another SPI for providing filtering service for the participant, and since both SPIs provide filtering service, some functional points may be the same, but since the two SPIs correspond to different components, the same functional points are included in different components, and thus there is a technical problem that codes are bulky.
In order to solve the technical problem that the SPI granularity is opened for customization of the participants and the codes are bloated in the prior art, in the embodiment of the application, a development platform supports arrangement of function points with finer granularity in a self-defined SPI of the participants on the basis of the SPI, and a computing device where the SPI implementation codes are located can execute corresponding function points in the SPI implementation codes according to the self-defined function point arrangement mode of the participants to obtain an execution result corresponding to a call request initiated by the participants.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 2 is a schematic flowchart of a request processing method provided in an embodiment of the present application, where an execution subject of the embodiment may be a computing device where an implementation code of an SPI is located, as shown in fig. 2, the method of the embodiment may include:
step 21, responding to the calling of the target SPI, and determining a target function point arrangement mode based on which the target SPI needs to be executed according to the corresponding relation between different participants and the function point arrangement mode of the target SPI, wherein the target SPI is called according to a calling request initiated by the participants;
and step 22, executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the calling request.
In this embodiment of the present application, the target SPI refers to an SPI that needs to be called according to a call request initiated by a participant. The participant may be any one of the plurality of participants 11 in fig. 1.
In one embodiment, the target SPI may be implemented by the participant 11 in fig. 1, that is, the computing device on which the implementation code of the target SPI is located may be the computing device of the participant 11, and the computing device of the participant 11 may run the implementation code of the target SPI. In this case, the method provided by the present embodiment may be applied to a participant who implements the target SPI. It should be noted that the participant who implements the target SPI and the participant who initiates the invocation request may be the same participant or different participants.
In another embodiment, the target SPI may be implemented by the development platform 12 in fig. 1, that is, the computing device where the implementation code of the target SPI is located may be the computing device of the development platform 12, and the computing device of the development platform 12 may run the implementation code of the target SPI, in which case, the method provided in this embodiment may be applied to the development platform 12.
In the case that the target SPI is implemented by the development platform, the function point in the implementation code of the target SPI may be written by a developer of the development platform, or may be obtained by converting the function point implemented by the participant into a platform general capability. In order to quickly convert a function point realized by a participant into a middle stage, the function point can be converted by using a boxing principle, the boxing principle can be intuitively understood that the function point realized by the participant is placed in a box and moved to a platform, the context of the function point (namely the input and the output of a code) can be technically unified, namely, an object defined for the function point in a platform code needs to be completely consistent with an object defined for the function point in an application for defining the function point, so that the function point in a participant self-defined SPI can be ensured to be communicated with the function point of the platform, and if the realization logic of a certain function point is consistent in a plurality of participants, the function point can be quickly moved to the platform to be used as a universal function point.
The development platform can obtain the call request initiated by the participant, determine the target SPI responding to the call request, and call the target SPI according to the call request. For example, a target service for which the invocation request is directed may be determined, and a target SPI for responding to the invocation request may be determined according to correspondence between different participants and the SPIs for the target service. It should be noted that, regarding a specific manner of determining a target SPI for responding to a call request, the embodiments of the present application are not limited.
Wherein, in the case that the target SPI is implemented by the development platform, invoking the target SPI according to the invocation request may specifically include: calling a target SPI from local according to the calling request; in the case that the target SPI is implemented by the participant, invoking the target SPI according to the invocation request may specifically include: and remotely calling the target SPI according to the calling request. For example, in a case that the target SPI is implemented by the participant, the target SPI may have a corresponding tag (tag), and the tag of the target SPI may be allocated by the service registry for the target SPI and may be used by the service registry to determine the computing device that implements the target SPI, in this case, when the target SPI is implemented by the participant, the development platform may call implementation code of the target SPI that is implemented by the computing device of the participant in a manner of addressing the service registry according to the tag of the target SPI. It should be noted that, for specific ways of invoking the SPI locally and invoking the SPI remotely, reference may be made to specific descriptions in the related art, and details are not described herein again.
In this embodiment of the present application, the implementation code of the target SPI may include a plurality of function points, the target SPI may have at least one function point arrangement mode, each function point arrangement mode may correspond to one or more participants, and each function point arrangement mode of the target SPI relates to at least part of the function points in the target SPI.
For example, the computing device may locally cache the correspondence between the different participants and the function point arrangement manner of the target SPI. For example, the function point arrangement manner corresponding to the participant in the correspondence between different participants and the function point arrangement manner of the target SPI may be determined as the function point arrangement manner (i.e., the target function point arrangement manner) on which the target SPI needs to be executed. The arrangement mode of the target function point corresponding to the participant may be obtained by opening the function point in the target SPI to the participant for customization.
Optionally, the corresponding relationship between the function point arrangement modes of different participants and the target SPI may be generated by the SPI registration management platform. In this case, the method provided in this embodiment may further include: and receiving the corresponding relation between different participants configured by the SPI registration management platform and the arrangement mode of the functional points of the target SPI. For a specific implementation of generating the participant and function point arrangement mode for different SPIs, reference may be made to the following related description.
The target function point arrangement mode corresponding to the participant may be used to describe which function points in the implementation code of the target SPI need to be executed and in which order the function points need to be executed in response to the call to the target SPI initiated by the participant according to the call request. Therefore, the determined target function point arrangement mode can be used for representing the execution sequence among the plurality of function points of the target SPI required to be executed. In an embodiment, the target function point arrangement manner may include identifiers of a plurality of function points sequentially arranged in the target SPI from front to back in the execution order, and the identifier of the function point may be a name of the function point.
In this embodiment of the application, after determining a target function point arrangement mode on which the target SPI needs to be executed, the corresponding function point in the implementation code of the target SPI may be executed according to the target function point arrangement mode, and an execution result corresponding to the call request is obtained. In an embodiment, when the target function point arrangement manner includes the identifiers of the plurality of function points sequentially arranged from front to back according to the execution sequence, each function point in the target SPI implementation code may be sequentially executed according to the arrangement sequence of the identifiers of the plurality of function points, so as to obtain the execution result corresponding to the call request.
Under the condition that the target SPI is realized by the development platform, the development platform can return an execution result as a return result of the calling request; in the case where the SPI is implemented by the participant, the participant may return the execution result to the development platform as a return result of the invocation target SPI, and may return the return result as a return result of the invocation request by the development platform.
In the request processing method provided by this embodiment, the target function point arrangement mode on which the target SPI needs to be executed is determined according to the correspondence between different participants and the function point arrangement modes of the target SPI in response to the call of the target SPI, and the corresponding function points in the implementation code of the target SPI are executed according to the target function point arrangement mode to obtain the execution result corresponding to the call request.
Fig. 3 is a schematic flowchart of a request processing method according to another embodiment of the present application, where the method provided in this embodiment may be applied to an SPI registration management platform, and the SPI registration management platform may be deployed on a computer device, as shown in fig. 3, the method in this embodiment may include:
step 31, acquiring SPI registration information, wherein the SPI registration information is used for registering a function point in an SPI realized by the computing equipment;
step 32, obtaining configuration operation aiming at the SPI according to the SPI registration information, wherein the configuration operation is used for configuring a function point arrangement mode corresponding to a participant;
and step 33, generating a corresponding relation between the participant and the function point arranging mode of the SPI according to the configuration operation.
In the embodiment of the application, the obtaining of the SPI registration information may include receiving the SPI registration information reported by the computing device, so that the reporting of the function points in the SPI can be automatically performed, and compared with a manual method, the labor cost can be reduced. For example, the computing device may include a computing device of a development platform and/or a computing device of a participant.
In one embodiment, a development kit provided by the development platform may support automatic reporting of SPI registration information. For example, a development kit running on the computing device may automatically scan the SPI implemented on the computing device according to the code label to obtain an identifier of a function point in the SPI implementation, and for the computing device of the participating party, the SPI registration information may be reported to the SPI registration management platform through the service registration center, and the service registration center may assign a label to the SPI implemented on the computing device of the participating party. In order to enable the development platform to call the implementation code of the target SPI, which is implemented by the computing device of the participant, in a manner of addressing the service registration center according to the tag of the target SPI, the tag of the SPI and the identifier of the function point of the SPI may be included in the SPI registration information and reported to the SPI registration management center.
In this embodiment of the application, after obtaining the SPI registration information, a configuration operation for the SPI may be obtained according to the SPI registration information, and the configuration operation may be used to configure a function point arrangement mode corresponding to the participant. The function point arrangement mode may include identifiers of a plurality of function points sequentially arranged in the SPI from front to back according to the execution sequence.
For example, in response to an input operation of a participant, identifiers of all function points of a certain SPI may be displayed in the configuration interface, and a configuration operation for the SPI may be acquired through the configuration interface, so that the participant customizes a corresponding function point arrangement manner. Of course, in other embodiments, the configuration operation for the SPI may also be obtained in other manners, which is not limited in this application. Optionally, in a case that the same service may correspond to multiple SPIs, the configuration operation may also be used to configure SPIs corresponding to the participants.
In this embodiment of the present application, after the configuration operation is obtained, a corresponding relationship between the participating party and the function point arrangement manner of the SPI may be generated according to the configuration operation. The generating of the corresponding relationship between the participant and the function point arrangement mode of the SPI may include establishing the corresponding relationship between the participant and the function point arrangement mode of the SPI, or updating the corresponding relationship between the participant and the function point arrangement mode of the SPI.
After generating the corresponding relationship between the participant and the function point arrangement mode of a certain SPI, if the computing device implementing the SPI and the device executing the method of this embodiment are different devices, the generated corresponding relationship between the participant and the function point arrangement mode of the SPI may also be sent to the computing device implementing the SPI. Based on this, the method provided in the embodiment of the present application may further include: and sending the corresponding relation between the participant and the function point arranging mode of the SPI to the computing equipment.
According to the method provided by the embodiment, through obtaining the SPI registration information which is used for registering the function points in the SPI realized by the computing equipment, the configuration operation aiming at the SPI is obtained according to the SPI registration information, the configuration operation is used for configuring the function point arrangement mode corresponding to the participant, and the corresponding relation between the participant and the function point arrangement mode is generated according to the configuration operation, so that the participant can be customized by the function point granularity, the participant can customize the function point arrangement mode of the SPI according to needs, a plurality of participants can share the function points in the same component in different function point arrangement modes, the condition that the same function points are contained in different components can be reduced, the existing bloated code can be reduced, and the resource saving is facilitated.
Taking a development platform as an example, in an embodiment, an implementation block diagram of the request processing method provided by the embodiment of the present application may be as shown in fig. 4. In fig. 4, the plan base platform is included in the middle station, the external host is not included in the middle station, the external host can be understood as a computing device outside the middle station, the plan base platform can define the name of the SPI, and the plan base platform and the external host can implement the SPI defined by the plan base platform, that is, implement the specific processing logic of the SPI defined by the plan base platform. The SPI implemented by the external host is the "customized SPI implementation code" in fig. 4.
In fig. 4, a reporting arrow from "implementation code of customized SPI" to "implementation service address of customized SPI" may indicate that an external host registers a service with a service registry, so that the service registry may allocate a tag (i.e., tag) to the customized SPI.
Hook functions (namely first hook functions) in a development kit in an external host can automatically scan and report SPI registration information through a service registration center, and SPI registration report information can comprise SPI labels and SPI function point identifications. As shown in fig. 4, the first hook function may address a registration information reporting service address in the service registry, and actively report the SPI registration information to the SPI registration & management in a remote call manner, and the SPI registration & management may be understood as the aforementioned SPI registration management platform.
The SPI registration and management may obtain SPI registration information reported by the external host, may obtain configuration operations according to the SPI registration information, may generate a correspondence relationship between the SPI realized by the participant and the external host and a correspondence relationship between function point arrangement modes of the SPI realized by the participant and the external host according to the configuration operations, and may also send a configuration message for configuring the correspondence relationship between the SPI realized by the participant and the external host to the plan base platform. A hooking function (which may be denoted as a second hooking function) in the development kit of the planning base platform may filter the configuration message, and the planning base platform may update the configuration of the local cache according to the configuration message. In addition, the SPI registration & management may also send a configuration message for configuring a correspondence relationship between the participant and the SPI function point arrangement mode implemented by the external host to the external host, the first hook function of the external host may filter the configuration message, and the external host may update the configuration of the local cache according to the configuration message, which is not shown in fig. 4.
As shown in fig. 4, in a warehousing decision application scenario, when a participant (denoted as participant x) initiates a call request for a certain service, the call request may first reach a warehousing decision entry of a plan base platform, and a platform general filtering node may perform filtering according to a configuration of a local cache, specifically, according to a correspondence between the participant for the service and an SPI of the local cache, when an SPI corresponding to the participant x is implemented by the plan base platform, the call request may be filtered, and the call may be performed in a local call manner. When the SPI corresponding to party x is not implemented by the plan base platform, the invocation request may be intercepted by the customized SPI routing hook.
The customized SPI routing hook can address the customized SPI in the service registration center to realize the service address according to the generated mapping relation between the label of the SPI and the service address, and call the realization code of the customized SPI in the external host machine in a remote calling mode. The first hook function in the external host machine can control and execute the corresponding function point in the implementation code of the customized SPI according to the function point arrangement mode corresponding to the participant x to obtain an execution result corresponding to the calling request, the execution result can return to the given customized SPI routing hook through the customized SPI implementation service address of the service registration center, and the customized SPI routing hook can return the execution result as the return result of the calling request.
It should be noted that the implementation block diagram shown in fig. 4 is only an example.
Taking a warehousing decision scenario as an example, from the viewpoint of flow division, as shown in fig. 5, the method can be divided into three stages, namely, function point management, open participant configuration, and warehousing decision execution.
In the functional point management stage, the development platform can register the SPI (which can be uniformly recorded as a universal verification component) for verification, which is locally implemented by the development platform, to the SPI registration management platform, and the computing device of the participant can register the SPI (which can be uniformly recorded as a participant customized verification component) for verification, which is implemented by the computing device of the participant, to the SPI registration management platform. The universal checking component can comprise a plurality of function points such as forbidden regulation bin information acquisition, filtering line through forbidden regulation bin, order bin acquisition, filtering line through order bin, record logic filtering and the like; the participant customized check component may include, for example, a plurality of function points such as international direct blacklist filtering, koala docket consistency checking, and international platform source bin accessible filtering.
In the open participant configuration stage, the function points included in the verification component can be customized based on the general verification component and the participants, and the function point arrangement mode corresponding to the participants is configured, for example, a plurality of function points including item warehousing relation acquisition and item filing information acquisition in the general extraction component can be configured, a plurality of function points including filing condition filtering and store ordering relation filtering in the general filtering component can be configured, and a plurality of function points including international direct black list filtering in the participant customized filtering component can be configured.
In the warehousing decision stage, the arrangement mode of the function points corresponding to the participants can be determined according to the configuration, and the corresponding function points in the components are executed according to the determined arrangement mode of the function points.
Taking a warehousing decision scenario as an example, from the perspective of implementing layering, as shown in fig. 6, the warehousing decision scenario can be divided into three layers, namely a base layer, a control layer and a base layer.
The base layer can comprise a function point automatic registration component, a function point configuration & arrangement component, a function point routing component and a white box component, wherein the function point automatic registration component is used for automatically registering function points in SPI realized by the computing node, the SPI configuration & function point arrangement component is used for updating SPI corresponding to a participant and a function point arrangement mode corresponding to the participant which are cached locally by the computing node, the function point routing component is used for executing corresponding function points in SPI realization codes according to the function point arrangement mode by the computing node, and the white box component is used for recording a decision result of which function point arrangement mode is adopted by the computing node, so that tracking is facilitated.
The control layer may include an SPI configuration component and a function point management component, where the SPI configuration component may be configured to obtain configuration operations and generate a correspondence between a participant and an SPI according to the configuration operations, and the function point management component may be configured to obtain configuration operations and generate a correspondence between the participant and a function point arrangement manner according to the configuration operations.
The implementation layer may include an international camping filtering scheme, a user-to-manufacturer (i.e., C2M) filtering scheme, and a karaoke camping filtering scheme, and one filtering scheme may be implemented as one component, and the function point in each component may be customized by a corresponding participant, for example, the international camping filtering scheme may include a plurality of function points such as tuning-forbidden bin information acquisition, tuning-forbidden bin filtering line, ordering bin acquisition, ordering bin filtering line, and industry list filtering, and the C2M filtering scheme and the karaoke camping filtering scheme may include a plurality of function points such as tuning-forbidden bin information acquisition, tuning-forbidden bin filtering line, ordering bin acquisition, ordering bin filtering line, and docket logic filtering.
Fig. 7 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present application; referring to fig. 7, the present embodiment provides an apparatus, which may perform the method provided in the embodiment shown in fig. 2, and specifically, the apparatus may include:
a determining module 71, configured to determine, in response to a call to a target SPI, a target function point arrangement manner on which the target SPI needs to be executed according to a correspondence between different participants and the function point arrangement manner of the target SPI, where the target SPI is called according to a call request initiated by a participant for a target service;
and the execution module 72 is configured to execute the corresponding function point in the implementation code of the target SPI according to the target function point arrangement manner, so as to obtain an execution result corresponding to the call request.
In one embodiment, the target function point arrangement mode includes identifiers of a plurality of function points sequentially arranged in the target SPI from front to back according to an execution sequence; the execution module 72 is specifically configured to sequentially execute each function point of the multiple function points in the implementation code of the target SPI according to the arrangement order of the identifiers of the multiple function points, so as to obtain an execution result corresponding to the call request.
In one embodiment, the target SPI is implemented by a participant to which the method is applied.
In one embodiment, the target SPI is implemented by a development platform to which the method is applied.
In an embodiment, the apparatus provided in this embodiment may further include: and the calling module is used for acquiring the calling request initiated by the participant, determining the target SPI responding to the calling request and calling the target SPI from local according to the calling request.
In an embodiment, the target function point arrangement manner corresponding to the participant is obtained by opening the function point in the target SPI to the participant for customization.
In an embodiment, the apparatus provided in this embodiment may further include: and the receiving module is used for receiving the corresponding relation configured by the SPI registration management platform.
The apparatus shown in fig. 7 can perform the method of the embodiment shown in fig. 2, and reference may be made to the related description of the embodiment shown in fig. 2 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 2, and are not described herein again.
In one possible implementation, the architecture of the apparatus shown in FIG. 7 may be implemented as a computing device. As shown in fig. 8, the computing device may include: a processor 81 and a memory 82. Wherein the memory 82 is used for storing programs that support the computing device to execute the method provided in the embodiment shown in fig. 2 described above, and the processor 81 is configured for executing the programs stored in the memory 82.
The program comprises one or more computer instructions which, when executed by the processor 81, are capable of performing the steps of:
responding to the calling of a target SPI, and determining a target function point arrangement mode based on which the target SPI needs to be executed according to the corresponding relation between different participants and the function point arrangement mode of the target SPI, wherein the target SPI is called according to a calling request initiated by the participants;
and executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the calling request.
Optionally, the processor 81 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 2.
The computing device may also include a communication interface 83 for the computing device to communicate with other devices or a communication network.
Fig. 9 is a schematic structural diagram of a request processing apparatus according to another embodiment of the present application; referring to fig. 9, the present embodiment provides an apparatus, which may perform the method provided in the embodiment shown in fig. 3, and specifically, the apparatus may include:
a first obtaining module 91, configured to obtain reported SPI registration information, where the SPI registration information is used to register a function point in an SPI implemented by a computing device;
a second obtaining module 92, configured to obtain, according to the SPI registration information, a configuration operation for the SPI, where the configuration operation is used to configure a function point arrangement mode corresponding to a participant;
a generating module 93, configured to generate, according to the configuration operation, a corresponding relationship between the participant and the function point arrangement manner of the SPI.
In an embodiment, the function point arrangement mode includes identifiers of a plurality of function points sequentially arranged in the SPI from front to back according to an execution sequence.
In an embodiment, the apparatus provided in this embodiment further includes a sending module, configured to send a corresponding relationship between the participant and the function point arrangement manner of the SPI to the computing device.
The apparatus shown in fig. 9 can perform the method of the embodiment shown in fig. 3, and reference may be made to the related description of the embodiment shown in fig. 3 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 3, and are not described herein again.
In one possible implementation, the structure of the apparatus shown in FIG. 9 may be implemented as a computer device. As shown in fig. 10, the computer apparatus may include: a processor 101 and a memory 102. Wherein the memory 102 is used for storing a program for supporting a computer device to execute the method provided in the embodiment shown in fig. 3, and the processor 101 is configured for executing the program stored in the memory 102.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 101, are capable of performing the steps of:
acquiring SPI registration information, wherein the SPI registration information is used for registering a function point in an SPI realized by a computing device;
acquiring configuration operation aiming at the SPI according to the SPI registration information, wherein the configuration operation is used for configuring a function point arrangement mode corresponding to a participant;
and generating a corresponding relation between the participant and the function point arranging mode of the SPI according to the configuration operation.
Optionally, the processor 101 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 3.
The structure of the computer device may further include a communication interface 103, which is used for the computer device to communicate with other devices or a communication network.
In addition, the embodiment of the present application also provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed, the method according to the embodiment shown in fig. 2 is implemented.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the method according to the embodiment shown in fig. 3 is implemented.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement such a technique without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described technical solutions and/or portions thereof that contribute to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein (including but not limited to disk storage, CD-ROM, optical storage, etc.).
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, linked lists, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (15)

1. A method for processing a request, comprising:
responding to the calling of a target SPI, and determining a target function point arrangement mode based on which the target SPI needs to be executed according to the corresponding relation between different participants and the function point arrangement mode of the target SPI, wherein the target SPI is called according to a calling request initiated by the participants;
and executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the calling request.
2. The method according to claim 1, wherein the target function point arrangement manner includes identifiers of a plurality of function points sequentially arranged in the target SPI from front to back in an execution order;
executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the call request, wherein the execution result comprises the following steps: and sequentially executing each functional point in the multiple functional points in the implementation code of the target SPI according to the arrangement sequence of the identifications of the multiple functional points to obtain an execution result corresponding to the call request.
3. A method according to claim 1 or 2, wherein the target SPI is implemented by a participant to whom the method is applied.
4. The method of claim 1 or 2, wherein the target SPI is implemented by a development platform to which the method is applied.
5. The method according to claim 3, wherein before determining, in response to the call to the target SPI, a target function point orchestration manner on which the target SPI needs to be based according to correspondence between different participants and the function point orchestration manner of the target SPI, further comprising:
acquiring the call request initiated by the participant;
determining the target SPI responding to the calling request;
and calling the target SPI from local according to the calling request.
6. The method according to claim 1, wherein the arrangement manner of the target function points corresponding to the participant is obtained by opening the function points in the target SPI to the participant for customization.
7. The method of claim 1, further comprising: and receiving the corresponding relation configured by the SPI registration management platform.
8. A method for processing a request, comprising:
acquiring SPI registration information, wherein the SPI registration information is used for registering a function point in an SPI realized by a computing device;
acquiring configuration operation aiming at the SPI according to the SPI registration information, wherein the configuration operation is used for configuring a function point arrangement mode corresponding to a participant;
and generating a corresponding relation between the participant and the function point arranging mode of the SPI according to the configuration operation.
9. The method according to claim 8, wherein the function point arrangement manner includes identifiers of a plurality of function points arranged in the SPI sequentially from front to back in an execution order.
10. The method of claim 8, further comprising: and sending the corresponding relation between the participant and the function point arranging mode of the SPI to the computing equipment.
11. A request processing apparatus, comprising:
the determining module is used for responding to the calling of the target SPI, and determining a target function point arranging mode based on which the target SPI needs to be executed according to the corresponding relation between different participants and the function point arranging mode of the target SPI, wherein the target SPI is called according to a calling request initiated by the participants and aiming at the target service;
and the execution module is used for executing the corresponding function point in the implementation code of the target SPI according to the arrangement mode of the target function point to obtain an execution result corresponding to the calling request.
12. A request processing apparatus, comprising:
the first acquisition module is used for acquiring the reported SPI registration information, and the SPI registration information is used for registering a function point in an SPI realized by the computing equipment;
a second obtaining module, configured to obtain, according to the SPI registration information, a configuration operation for the SPI, where the configuration operation is used to configure a function point arrangement mode corresponding to a participant;
and the generating module is used for generating the corresponding relation between the participant and the function point arranging mode of the SPI according to the configuration operation.
13. A computing device, comprising: a memory, a processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method of any of claims 1 to 7.
14. A computer device, comprising: a memory, a processor; wherein the memory is to store one or more computer instructions that when executed by the processor implement the method of any one of claims 8 to 10.
15. A computer-readable storage medium, having stored thereon a computer program which, when executed, implements the method of any one of claims 1 to 10.
CN202210457872.5A 2022-04-27 2022-04-27 Request processing method, device, equipment and storage medium Pending CN114942765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210457872.5A CN114942765A (en) 2022-04-27 2022-04-27 Request processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210457872.5A CN114942765A (en) 2022-04-27 2022-04-27 Request processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114942765A true CN114942765A (en) 2022-08-26

Family

ID=82907135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210457872.5A Pending CN114942765A (en) 2022-04-27 2022-04-27 Request processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114942765A (en)

Similar Documents

Publication Publication Date Title
EP3353672B1 (en) Method and apparatus for transferring data between databases
CN113296927A (en) Construction method of service grid instance, service grid system and multi-cluster system
CN100483352C (en) IDE calling device and calling method therefor
CN107015853B (en) Method and device for realizing multi-stage task
CN113037831B (en) Service gateway message processing method and device
CN108322325B (en) Virtual machine management method and device
CN108984268A (en) The method and apparatus of Container Management in Docker system
US7895332B2 (en) Identity migration system apparatus and method
CN113448837B (en) Development and test environment deployment method, system, electronic equipment and medium
CN107294750B (en) Cloud cluster energy self-identification distributed configuration management method and device
CN113535691B (en) User service registration method and device
CN110944018A (en) Rpc communication method, device and medium based on annotation and dynamic proxy
CN115098112B (en) Method, equipment and medium for deploying financial cloud application resources
CN102208081A (en) Method for making business process management (BPM) application to be suitable for being used by multi-tenancy (MT) usages and apparatus thereof
CN112882792A (en) Information loading method, computer device and storage medium
CN114020444B (en) Calling system and method for resource service application in enterprise digital middle station
CN113542435B (en) User service using method and device
CN109144512A (en) A kind of method and system generating API
Mohamed et al. SaaS dynamic evolution based on model-driven software product lines
CN114942765A (en) Request processing method, device, equipment and storage medium
CN113535690A (en) Block chain service network establishing method and device
CN108920277B (en) Service execution system, method and device and service isolation system
CN112506943A (en) Heterogeneous data service providing method, device, equipment and medium
CN112130900A (en) User information management method, system, equipment and medium for BMC
JP2007242051A (en) Device for mounting/executing business logic program

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