Data processing method and apparatus in service-oriented architecture system, and the service-oriented architecture system
AssigneeAlibaba Group Holding Limited
InventorXikui Zhang
Life of this patent
Estimating the term…
Abstract
Data processing method and apparatus in a Service-Oriented architecture (SOA) system are disclosed. The method replaces a target parameter having a larger data length included in an original HTTP request with an intermediate parameter having a smaller data length. A data length of a HTTP request that is converted from an original HTTP request is reduced as compared to a data length of the original HTTP request, thus reducing an amount of data that is transmitted, i.e., sent or received, by a target component, which accordingly reduces an amount of data transmitted in the SOA system and decreases a network overhead of the SOA system.
Claims20
A method implemented by one or more computing devices, the method comprising:
- obtaining an original Hypertext Transfer Protocol (HTTP) request that is to be sent by a target component, the original HTTP request including M target parameters, and M being an integer greater than or equal to one;
- assigning intermediate parameters for N target parameters in response to a data length of the original HTTP request being greater than or equal to a preset data threshold, wherein a data length of the N target parameters is greater than a data length of the intermediate parameters corresponding thereto, and N is an integer greater than or equal to one and less than or equal to M;
- performing a parameter replacement processing for the N target parameters using the intermediate parameters corresponding to the N target parameters to obtain a converted HTTP request from the original HTTP request.
One or more computer-readable media storing executable instructions that, when executed by one or more processors, cause the one or more processors to perform acts comprising:
- obtaining a first Hypertext Transfer Protocol (HTTP) request that is to be processed by a target component, the first HTTP request including a plurality of processing parameters;
- identifying one or more intermediate parameters from the plurality of processing parameters, a number of the one or more intermediate parameters being less than or equal to a number of the plurality of processing parameters;
- obtaining respective one or more target parameters corresponding to each intermediate parameter of the one or more intermediate parameters, a data length of each intermediate parameter being less than a total data length of the respective one or more target parameters;
- and
- performing a parameter replacement processing on the one or more intermediate parameters using the respective one or more target parameters corresponding to each intermediate parameter to obtain a second HTTP request for the target component to perform a service processing on the second HTTP request.
An apparatus comprising:
- one or more processors;
- memory;
- an acquisition unit stored in the memory and executable by the one or more processors to obtain a first Hypertext Transfer Protocol (HTTP) request that is to be sent by a target component, the first HTTP request including one or more target parameters;
- an assignment unit stored in the memory and executable by the one or more processors to assign one or more intermediate parameters for at least one target parameter of the one or more target parameters in response to a data length of the first HTTP request being greater than or equal to a preset data threshold, wherein a data length of the at least one target parameter is greater than a data length of the one or more intermediate parameters, and a number of the one or more intermediate parameters is less than or equal to a number of the one or more target parameters;
- and
- a replacement unit stored in the memory and executable by the one or more processors to perform a parameter replacement processing on the at least one target parameter using the one or more intermediate parameters corresponding to the at least one target parameter to obtain a second HTTP request.
Dependencies are inferred from the claim text.