WO2016127856A1 - Method and system for requesting data from middleware, and middleware client - Google Patents

Method and system for requesting data from middleware, and middleware client Download PDF

Info

Publication number
WO2016127856A1
WO2016127856A1 PCT/CN2016/073146 CN2016073146W WO2016127856A1 WO 2016127856 A1 WO2016127856 A1 WO 2016127856A1 CN 2016073146 W CN2016073146 W CN 2016073146W WO 2016127856 A1 WO2016127856 A1 WO 2016127856A1
Authority
WO
WIPO (PCT)
Prior art keywords
middleware
data
loaded
requested
webpage
Prior art date
Application number
PCT/CN2016/073146
Other languages
French (fr)
Chinese (zh)
Inventor
陆争辉
Original Assignee
阿里巴巴集团控股有限公司
陆争辉
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 阿里巴巴集团控股有限公司, 陆争辉 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016127856A1 publication Critical patent/WO2016127856A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to a method, a system, and a middleware client for requesting data from a middleware.
  • a batch interface is usually provided through the middleware, and the requesting party performs request combining through the batch interface.
  • the bulk interface can solve the problem of multiple calls, when the request merge is coupled with the requester's business code, the following problems are caused: (1) when a new call needs to be added, or an unused call is deleted. When the requester must change the code that requests the merge; (2) the caller needs to write the logic of the merge call in all places where there is a merge requirement; (3) in the hierarchical architecture, the call merge of different layers will also give The transfer of the call result is difficult.
  • the purpose of the present application is to solve at least one of the technical problems in the related art to some extent.
  • the first object of the present application is to propose a method of requesting data from a middleware.
  • the method completes the request merging through the self-learning of the middleware client, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the whole process of request merging, and simplifies the operation of the requesting party.
  • a second object of the present application is to propose a system for requesting data from a middleware.
  • a third object of the present application is to propose a middleware client.
  • the method for requesting data from a middleware includes: acquiring feature information related to a webpage to be loaded, and determining, according to the feature information, a to-be-request corresponding to the to-be-loaded webpage.
  • the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name; receiving a middleware data request, and determining a target middleware according to the middleware data request; according to the target middleware Determining, to the requested data name set, a to-be-requested data name that needs to be acquired from the target middleware; and obtaining a corresponding correspondence from the target middleware according to the to-be-requested data name acquired from the target middleware Middleware data collection and cache, wherein if a middleware data request sent to the target middleware is received again And extracting and feeding back corresponding middleware data from the cached middleware data set.
  • the middleware client After a webpage loading request, the middleware client records the resources requested by the plurality of middleware data requests, and when the next webpage loading request arrives, the middleware client
  • the terminal receives the middleware data request sent to the target middleware for the first time, according to the middleware data request of the resource recorded in the process of the last webpage loading request, the automatic merge is performed, that is, by providing a batch.
  • the interface requests the merged resource to the target middleware through the batch interface, and caches the request result in the middleware client. If the middleware client receives the request to the target middleware again during the loading request of the webpage.
  • the middleware data request When the middleware data request is received, the corresponding middleware data is extracted and fed back from the cached request result, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge. The process simplifies the operation of the requestor.
  • a system for requesting data from a middleware includes a user client, a web server, a middleware client, and at least one middleware, wherein the user client is used to
  • the web server sends a webpage loading request and receives webpage data fed back by the webpage server;
  • the webpage server is configured to construct a webpage to be loaded according to the webpage loading request, and send a middleware data request to the middleware client Obtaining the middleware data from the at least one middleware, and feeding back the obtained middleware data to the user client;
  • the middleware client is configured to acquire feature information related to the webpage to be loaded, and Determining, according to the feature information, a to-be-requested data name set corresponding to the to-be-loaded webpage, and determining a target middleware according to the middleware data request, and determining, according to the target middleware and the to-be-requested data name set, The name of the data to be requested obtained by the target middleware, and the The to
  • the middleware client After a webpage loading request, the middleware client records the resources requested by the plurality of middleware data requests, and when the next webpage loading request arrives, the middleware client
  • the terminal receives the middleware data request sent to the target middleware for the first time, according to the middleware data request of the resource recorded in the process of the last webpage loading request, the automatic merge is performed, that is, by providing a batch.
  • the interface requests the merged resource to the target middleware through the batch interface, and caches the request result in the middleware client. If the middleware client receives the request to the target middleware again during the loading request of the webpage.
  • the middleware data request When the middleware data request is received, the corresponding middleware data is extracted and fed back from the cached request result, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge. The process simplifies the operation of the requestor.
  • the middleware client of the third aspect of the present application includes: a data name to be requested a set determining module, configured to acquire feature information related to a webpage to be loaded, and determine a to-be-requested data name set corresponding to the to-be-loaded webpage according to the feature information, where the to-be-requested data name set includes at least one middle Corresponding data name to be requested; target middleware determining module, configured to receive a middleware data request, and determine a target middleware according to the middleware data request; a data name determining module to be requested, according to the target middleware And the to-be-requested data name set determines a to-be-requested data name that needs to be acquired from the target middleware; and a middleware data providing module, configured to obtain a to-be-requested data name from the target middleware according to the requirement Obtaining a corresponding middleware data set from the target middleware and caching, wherein if the middleware data request sent to the
  • the middleware client in the embodiment of the present application may record the resources requested by the plurality of middleware data requests after a webpage loading request, and receive the target middleware for the first time when the next webpage loading request arrives.
  • the middleware data request for the resource recorded in the process of the last webpage loading request is automatically merged, that is, by providing a batch interface and through the batch interface to the target middleware. Requesting the merged resource and caching the result of the request in the middleware client.
  • the slave cache extracts and feeds back the corresponding middleware data, which not only solves the problem caused by the request merge in the above related art, but also does not need to understand the entire request merge process, and simplifies the requester's operation.
  • FIG. 1 is a flow chart of a method of requesting data from a middleware in accordance with one embodiment of the present application
  • FIG. 2 is a diagram showing an example of a flow of operations when a first user accesses a page by a method of requesting data from a middleware according to an embodiment of the present application;
  • FIG. 3 is a diagram showing an example of a flow of operations when a second user accesses a page by a method of requesting data from a middleware according to an embodiment of the present application;
  • FIG. 4 is a schematic structural diagram of a system for requesting data from a middleware according to an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of a middleware client according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a middleware client according to another embodiment of the present application.
  • FIG. 1 is a flow chart of a method of requesting data from a middleware in accordance with one embodiment of the present application. As shown in FIG. 1, the method for requesting data from the middleware may include:
  • the feature information may be address information of a page to be loaded, member type information of a user requesting a page to be loaded, and a name of a page to be loaded (eg, a list page, a detail page) Etc., requesting client information of the page to be loaded (such as browser information, operating system information, etc.), requesting cookie information of the page to be loaded, or calling interface or parameter when the web server calls the middleware client.
  • the to-be-requested data name set corresponding to the to-be-loaded webpage may be generated by: recording the middleware data request sent to the at least one middleware when the to-be-loaded webpage is loaded for the first time And the feature information related to the webpage to be loaded; and generating the to-be-requested data name set according to the recorded middleware data request, and establishing an association relationship between the feature information and the to-be-requested data name set.
  • the webpage server may construct the webpage to be loaded according to the webpage loading request, and the middleware client may obtain the feature information related to the webpage to be loaded, such as the webpage to be loaded.
  • the address information such as a URL (Uniform Resource Locator)
  • the member type information of the user to which the user client belongs, and the like and then determining, according to the feature information, the to-be-requested data name set corresponding to the to-be-loaded webpage, It is understood that the to-be-requested data name set corresponding to the to-be-loaded webpage is generated during the first loading of the to-be-loaded webpage.
  • S102 Receive a middleware data request, and determine a target middleware according to the middleware data request.
  • the middleware client may receive the middleware data request sent by the webpage server, and find a corresponding data request corresponding to the middleware according to the middleware data request.
  • the middleware serves as the target middleware.
  • the middleware client may be based on the target middleware and the to-be-requested data name set. Determine the name of the data to be requested that needs to be obtained from the target middleware.
  • the method for requesting data from the middleware in the embodiment of the present application is to complete the request merging through the self-learning of the middleware client, and the basic idea of automatically requesting the merge is: after a webpage loading request, the middleware client will The resource requested by the plurality of middleware data requests is recorded, and when the next webpage loading request arrives, when the middleware client receives the middleware data request sent to the target middleware for the first time, presses the last webpage loading request.
  • the middleware data request for the resource recorded in the process is automatically merged, that is, by providing a batch interface, and requesting the merged resource to the target middleware through the batch interface, and simultaneously caching the request result in the middleware client.
  • the middleware client receives the middleware data request sent to the target middleware again during the loading process of the webpage, the corresponding middleware data is extracted and fed back from the cached request result. .
  • the method may further include: after the middleware data corresponding to all the data names to be requested in the to-be-requested data name set corresponding to the webpage to be loaded is fed back, the cache is cleared. .
  • the lifetime of the cache is one page load request, and the cached result is only visible to the current page load request. Therefore, after the webpage loading request ends, the cache is emptied, on the one hand, the server resources can be released, and on the other hand, the middleware data in the cache does not be disordered between different webpage loading requests.
  • the to-be-loaded page may need to invoke multiple middleware
  • the to-be-requested data name set may include a plurality of middleware corresponding to-be-requested data names. That is, the method for requesting data from the middleware in the embodiment of the present application is also applicable to requesting data from multiple middlewares.
  • the set of data names to be requested may include the plurality of The middleware corresponds to the name of the data to be requested.
  • the middleware client When the middleware client receives the middleware data request corresponding to the middleware, the processing of the foregoing steps S102-S104 is performed according to the middleware data request corresponding to the middleware, to obtain all the calls that need to be called in the to-be-loaded page. Middleware data corresponding to the middleware.
  • a middleware for rights management. All user permissions exist in this middleware.
  • how much content will be displayed on the user's web page is controlled by the permissions of the content area.
  • the permissions of the content area For example, taking a webpage with a URL of /admin/monitor.jsp as an example, suppose that there are four areas on the page of the webpage, and the permissions of each area are featureA, featureB, featureC, and featureD, then when the webpage is to be rendered, The permission middleware will need to be requested 4 times to complete the rendering of the 4 areas in the page.
  • boolean isAllowed service.isAllowed(personID,featureA)
  • This call will ask the remote permission middleware whether the current personID has the function of featureA. If there is this function, the content corresponding to featureA is displayed on the page.
  • the middleware client can acquire and record the feature information URL related to the webpage to be loaded from the webpage server, and the middleware client can receive the middleware sent to the middleware.
  • the middleware data request obtain corresponding middleware data from the target middleware and feed back to the web server, and the web server treats the webpage according to the middleware data.
  • the middleware client generates and records the to-be-requested data name set according to the received middleware data request, and establishes a correspondence relationship between the feature information URL and the to-be-requested data name set, and at the same time
  • the client requires the web server to pass the variable personID to the middleware client.
  • the correspondence between the feature information URL and the set of data names to be requested is as follows:
  • the middleware client may search for a corresponding data name set to be requested according to the URL sent by the web server.
  • the data name to be requested The collection is [featureA, featureB, featureC, featureD], and the data is warmed up according to the variable (personID) passed in by the web server.
  • the data warm-up will call the batch interface, request all the resources corresponding to the above-mentioned data name set to be requested from the middleware, and cache them.
  • the web server's call to the middleware will get the data from the cache.
  • the cache is cleared, wherein the cache life cycle is one user's webpage request, and the cached result is only visible to the current webpage request. .
  • the request merge is completed through the self-learning of the middleware client, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge.
  • the process simplifies the operation of the requestor.
  • the present application also proposes a system for requesting data from a middleware.
  • the system for requesting data from the middleware may include a user client 10, a web server 20, a middleware client 30, and at least one middleware 40.
  • the user client 10 can be used to send a webpage loading request to the webpage server 20 and receive webpage data fed back by the webpage server 20.
  • the web server 20 can be configured to construct a webpage to be loaded according to the webpage loading request, and send a middleware data request to the middleware client 30 to acquire the middleware data from the at least one middleware 40, and feed back the obtained middleware data to the user client.
  • the middleware client 30 may be configured to acquire feature information related to the webpage to be loaded, determine a to-be-requested data name set corresponding to the webpage to be loaded according to the feature information, and determine a target middleware according to the middleware data request, and according to the target middleware And the to-be-requested data name set determines the to-be-requested data name that needs to be acquired from the target middleware, and obtains the corresponding middleware data set from the target middleware according to the required data name acquired from the target middleware and caches, and caches again Upon receiving the middleware data request sent to the target middleware, the corresponding middleware data is extracted and fed back from the cached middleware data set, wherein the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name.
  • the middleware client 30 is further configured to record the middleware data request sent to the at least one middleware 40 and the feature information related to the webpage to be loaded when the webpage to be loaded is loaded for the first time. And generating a to-be-requested data name set according to the recorded middleware data request, and establishing an association relationship between the feature information and the to-be-requested data name set.
  • the feature information may be address information of the page to be loaded, member type information of the user requesting the page to be loaded, name of the page to be loaded (such as a list page, a detail page, etc.), and client information requesting the page to be loaded (if used) Browser information, operating system information, etc.), requesting cookie information of the page to be loaded or calling interface or parameter when the web server calls the middleware client.
  • the webpage server 20 can construct a webpage to be loaded according to the webpage loading request, and the middleware client 30 can acquire the feature information related to the webpage to be loaded, such as The address information (such as a URL) of the webpage to be loaded or the member type information of the user to which the user client 10 belongs, and the like, may determine the set of data names to be requested corresponding to the webpage to be loaded according to the feature information, and it may be understood that the foregoing The set of to-be-requested data names corresponding to the loaded webpage is generated during the first loading of the webpage to be loaded.
  • the address information such as a URL
  • the set of to-be-requested data names corresponding to the loaded webpage is generated during the first loading of the webpage to be loaded.
  • the web server 20 may send a middleware data request to the middleware client 30 to acquire middleware data from the at least one middleware 40, and the middleware client 30 may request the middleware data after receiving the middleware data request.
  • the set of the data and the to-be-requested data name can determine the name of the data to be requested that needs to be obtained from the target middleware, and obtain the corresponding middleware data set from the target middleware according to the data name to be requested acquired from the target middleware as needed. And buffering, and receiving the middleware data request sent to the target middleware again, extracting and feeding back the corresponding middleware data from the cached middleware data set.
  • the middleware client 30 may be further configured to: after the middleware data corresponding to all the data names to be requested in the to-be-requested data name set corresponding to the webpage to be loaded is fed back, Cache.
  • the lifetime of the cache is one page load request, and the cached result is only visible to the current page load request. Therefore, after the webpage loading request ends, the cache is emptied, on the one hand, the server resources can be released, and on the other hand, the middleware data in the cache does not be disordered between different webpage loading requests.
  • the to-be-loaded page may need to invoke multiple middleware
  • the to-be-requested data name set may include a plurality of middleware corresponding to-be-requested data names. That is, the system for requesting data from the middleware in the embodiment of the present application is also applicable to requesting data from a plurality of middlewares.
  • the set of data names to be requested may include the plurality of The middleware corresponds to the name of the data to be requested.
  • the middleware client When the middleware client receives the middleware data request corresponding to the middleware, the corresponding processing is performed according to the middleware data request corresponding to the middleware, so as to obtain all the middlewares that need to be called in the to-be-loaded page. Middleware data.
  • the middleware client After a webpage loading request, the middleware client records the resources requested by the plurality of middleware data requests, and when the next webpage loading request arrives, the middleware client
  • the terminal receives the middleware data request sent to the target middleware for the first time, according to the middleware data request of the resource recorded in the process of the last webpage loading request, the automatic merge is performed, that is, by providing a batch.
  • the interface requests the merged resource to the target middleware through the batch interface, and caches the request result in the middleware client. If the middleware client receives the request to the target middleware again during the loading request of the webpage.
  • the middleware data request When the middleware data request is received, the corresponding middleware data is extracted and fed back from the cached request result, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge. The process simplifies the operation of the requestor.
  • the present application also proposes a middleware client.
  • FIG. 5 is a schematic structural diagram of a middleware client according to an embodiment of the present application.
  • the middleware client may include a to-be-requested data name set determining module 31, a target middleware determining module 32, a to-be-requested data name determining module 33, and a middleware data providing module 34.
  • the to-be-requested data name set determining module 31 can be configured to acquire feature information related to the webpage to be loaded, And determining, according to the feature information, the to-be-requested data name set corresponding to the to-be-loaded webpage, where the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name.
  • the feature information may be address information of a page to be loaded, member type information of a user requesting a page to be loaded, a name of a page to be loaded (such as a list page, a detail page, etc.), and a request to be loaded.
  • the client information of the page (such as browser information, operating system information, etc.), the cookie information requesting the page to be loaded, or the calling interface or parameter when the web server calls the middleware client.
  • the to-be-requested data name set determining module 31 is further configured to record the middleware data request and the to-be-loaded webpage sent to the at least one middleware when the to-be-loaded webpage is loaded for the first time. Correlating feature information, and generating a to-be-requested data name set according to the recorded middleware data request, and establishing an association relationship between the feature information and the to-be-requested data name set.
  • the webpage server may construct the webpage to be loaded according to the webpage loading request, and the to-be-requested data name collection determining module 31 may acquire the feature information related to the webpage to be loaded, such as The address information of the to-be-loaded webpage or the member type information of the user to which the user client belongs, and the like, and then determining the to-be-requested data name set corresponding to the to-be-loaded webpage according to the feature information.
  • the set of pending data names is generated during the first loading of the web page to be loaded.
  • the target middleware determination module 32 can be configured to receive the middleware data request and determine the target middleware based on the middleware data request. More specifically, after the web server constructs the webpage to be loaded according to the webpage loading request sent by the user, the target middleware determining module 32 may receive the middleware data request sent by the webpage server, and find the data with the middleware according to the middleware data request. The corresponding middleware is requested as the target middleware.
  • the to-be-requested data name determining module 33 is operable to determine, according to the target middleware and the set of data names to be requested, the to-be-requested data name that needs to be acquired from the target middleware. It should be understood that, since the to-be-requested data name set includes the to-be-requested data name corresponding to the middleware, after receiving the middleware data request, the to-be-requested data name determining module 33 may be configured according to the target middleware and the to-be-requested data name set. Determine the name of the data to be requested that needs to be obtained from the target middleware.
  • the middleware data providing module 34 may be configured to acquire and cache a corresponding middleware data set from the target middleware according to the to-be-requested data name acquired from the target middleware, where the middleware data sent to the target middleware is received again.
  • the request extracts and feeds back the corresponding middleware data from the cached middleware data set.
  • the middleware client in the embodiment of the present application completes the request merging through self-learning, and the basic idea of automatically requesting merging is: after a webpage loading request, the middleware client will request multiple middleware data requests. The requested resource is recorded, and when the next time the webpage loading request arrives, when the middleware client receives the middleware data request sent to the target middleware for the first time, the multiple times recorded in the process of the last webpage loading request are recorded.
  • the middleware data request is automatically merged, that is, by providing a batch interface and requesting the merged resource to the target middleware through the batch interface, and simultaneously caching the request result in the middleware client, if the request is loaded in the webpage
  • the middleware client receives the middleware data request sent to the target middleware again, the corresponding middleware data is extracted and fed back from the cached request result.
  • the middleware client may further include a cache management module 35, where the cache management module 35 may be used to name the data to be requested corresponding to the webpage to be loaded. After the middleware data corresponding to all the data names to be requested in the collection are all fed back, the cache is cleared.
  • the lifetime of the cache is one page load request, and the cached result is only visible to the current page load request. Therefore, after the webpage loading request ends, the cache is emptied, on the one hand, the server resources can be released, and on the other hand, the middleware data in the cache does not be disordered between different webpage loading requests.
  • the to-be-requested data name set may include a plurality of middleware corresponding to-be-requested data names. That is, the middleware client of the embodiment of the present application is also applicable to requesting data from multiple middlewares.
  • the set of to-be-requested data names may include the plurality of middlewares. Corresponding data names to be requested.
  • the middleware client When the middleware client receives the middleware data request corresponding to the middleware, the corresponding processing is performed according to the middleware data request corresponding to the middleware, so as to obtain all the middlewares that need to be called in the to-be-loaded page. Middleware data.
  • the middleware client in the embodiment of the present application may record the resources requested by the plurality of middleware data requests after a webpage loading request, and receive the target middleware for the first time when the next webpage loading request arrives.
  • the middleware data request for the resource recorded in the process of the last webpage loading request is automatically merged, that is, by providing a batch interface and through the batch interface to the target middleware. Requesting the merged resource and caching the result of the request in the middleware client.
  • the slave cache extracts and feeds back the corresponding middleware data, which not only solves the problem caused by the request merge in the above related art, but also does not need to understand the entire request merge process, and simplifies the requester's operation.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or may be each Units exist physically separately, or two or more units can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method and system for requesting data from middleware, and a middleware client. The method comprises: acquiring feature information related to a webpage to be loaded, and determining a data name set to be requested corresponding to the webpage to be loaded according to the feature information, wherein the data name set to be requested comprises a data name to be requested corresponding to at least one piece of middleware (S101); receiving a middleware data request, and determining target middleware according to the middleware data request (S102); determining a data name which is to be requested and needs to be acquired from the target middleware, according to the target middleware and the data name set to be requested (S103); and acquiring a corresponding middleware data set from the target middleware according to the data name which is to be requested and needs to be acquired from the target middleware, and caching same, wherein if the middleware data request sent to the target middleware is received once again, corresponding middleware data are extracted from the cached middleware data set and are fed back (S104). The method solves the problem caused by request combination.

Description

从中间件请求数据的方法、***及中间件客户端Method, system and middleware client for requesting data from middleware 技术领域Technical field
本申请涉及互联网技术领域,尤其涉及一种从中间件请求数据的方法、***及中间件客户端。The present application relates to the field of Internet technologies, and in particular, to a method, a system, and a middleware client for requesting data from a middleware.
背景技术Background technique
随着互联网技术的快速发展,互联网网站已经逐渐形成规模化,当网站***的规模大到一定程度后,***就会趋于服务化,所以在大规模的网站***中,一个网页往往需要多次请求多个中间件才能完成渲染。With the rapid development of Internet technology, Internet websites have gradually become large-scale. When the scale of the website system is large enough, the system will tend to be serviced. Therefore, in a large-scale website system, a web page often needs to be multiple times. Request multiple middleware to complete the rendering.
相关技术中,当一个网页多次请求同一个中间件时,通常是通过中间件提供一个批量接口,请求方通过该批量接口进行请求合并。虽然批量接口能够解决多次调用的问题,但是,当将请求合并与请求方的业务代码耦合在一起时,会带来以下问题:(1)当需要增加一个新调用,或者删除一个不用的调用时,请求方必须改动请求合并的代码;(2)调用方需要在所有有合并需求的地方写上合并调用的逻辑;(3)在分层式的架构中,不同层的调用合并也会给调用结果的传递带来困难。In the related art, when a web page requests the same middleware multiple times, a batch interface is usually provided through the middleware, and the requesting party performs request combining through the batch interface. Although the bulk interface can solve the problem of multiple calls, when the request merge is coupled with the requester's business code, the following problems are caused: (1) when a new call needs to be added, or an unused call is deleted. When the requester must change the code that requests the merge; (2) the caller needs to write the logic of the merge call in all places where there is a merge requirement; (3) in the hierarchical architecture, the call merge of different layers will also give The transfer of the call result is difficult.
发明内容Summary of the invention
本申请的目的旨在至少在一定程度上解决相关技术中的技术问题之一。The purpose of the present application is to solve at least one of the technical problems in the related art to some extent.
为此,本申请的第一个目的在于提出一种从中间件请求数据的方法。该方法通过中间件客户端的自学习来完成请求合并,不但解决了上述相关技术中请求合并所带来的问题,同时请求方不需要了解整个请求合并的过程,简化了请求方的操作。To this end, the first object of the present application is to propose a method of requesting data from a middleware. The method completes the request merging through the self-learning of the middleware client, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the whole process of request merging, and simplifies the operation of the requesting party.
本申请的第二个目的在于提出一种从中间件请求数据的***。A second object of the present application is to propose a system for requesting data from a middleware.
本申请的第三个目的在于提出一种中间件客户端。A third object of the present application is to propose a middleware client.
为了达到上述目的,本申请第一方面实施例的从中间件请求数据的方法,包括:获取与待加载网页相关的特征信息,并根据所述特征信息确定所述待加载网页所对应的待请求数据名称集合,其中,所述待请求数据名称集合包括至少一个中间件对应的待请求数据名称;接收中间件数据请求,并根据所述中间件数据请求确定目标中间件;根据所述目标中间件和所述待请求数据名称集合确定需要从所述目标中间件所获取的待请求数据名称;以及根据所述需要从所述目标中间件所获取的待请求数据名称从所述目标中间件获取对应的中间件数据集合并缓存,其中,如果再次接收到向所述目标中间件发送的中间件数据请求 则从所述缓存的所述中间件数据集合中提取并反馈对应的中间件数据。In order to achieve the above object, the method for requesting data from a middleware according to the first aspect of the present application includes: acquiring feature information related to a webpage to be loaded, and determining, according to the feature information, a to-be-request corresponding to the to-be-loaded webpage. a data name set, wherein the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name; receiving a middleware data request, and determining a target middleware according to the middleware data request; according to the target middleware Determining, to the requested data name set, a to-be-requested data name that needs to be acquired from the target middleware; and obtaining a corresponding correspondence from the target middleware according to the to-be-requested data name acquired from the target middleware Middleware data collection and cache, wherein if a middleware data request sent to the target middleware is received again And extracting and feeding back corresponding middleware data from the cached middleware data set.
本申请实施例的从中间件请求数据的方法,在一次网页加载请求过后,中间件客户端将多个中间件数据请求所请求的资源记录下来,当下一次网页加载请求到来时,在中间件客户端第一次接收到向目标中间件发送的中间件数据请求时,按上一次网页加载请求的过程中记录下来的多次对资源的中间件数据请求,做自动的合并,即通过提供一个批量接口,并通过批量接口向目标中间件请求合并后的资源,同时将请求结果缓存在中间件客户端,如果在本次网页加载请求的过程中,中间件客户端再次接收到向目标中间件发送的中间件数据请求时,则从缓存的请求结果中提取并反馈对应的中间件数据即可,不但解决了上述相关技术中请求合并所带来的问题,同时请求方不需要了解整个请求合并的过程,简化了请求方的操作。In the method for requesting data from the middleware in the embodiment of the present application, after a webpage loading request, the middleware client records the resources requested by the plurality of middleware data requests, and when the next webpage loading request arrives, the middleware client When the terminal receives the middleware data request sent to the target middleware for the first time, according to the middleware data request of the resource recorded in the process of the last webpage loading request, the automatic merge is performed, that is, by providing a batch. The interface requests the merged resource to the target middleware through the batch interface, and caches the request result in the middleware client. If the middleware client receives the request to the target middleware again during the loading request of the webpage. When the middleware data request is received, the corresponding middleware data is extracted and fed back from the cached request result, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge. The process simplifies the operation of the requestor.
为了达到上述目的,本申请第二方面实施例的从中间件请求数据的***,包括用户客户端、网页服务器、中间件客户端和至少一个中间件,其中,所述用户客户端,用于向所述网页服务器发送网页加载请求并接收所述网页服务器反馈的网页数据;所述网页服务器,用于根据所述网页加载请求构建待加载网页,并向所述中间件客户端发送中间件数据请求以从所述至少一个中间件获取中间件数据,以及将获取的中间件数据反馈至所述用户客户端;所述中间件客户端,用于获取与所述待加载网页相关的特征信息,并根据所述特征信息确定所述待加载网页所对应的待请求数据名称集合,以及根据中间件数据请求确定目标中间件,并根据所述目标中间件和所述待请求数据名称集合确定需要从所述目标中间件所获取的待请求数据名称,以及根据所述需要从所述目标中间件所获取的待请求数据名称从所述目标中间件获取对应的中间件数据集合并缓存,并再次接收到向所述目标中间件发送的中间件数据请求时,从所述缓存的所述中间件数据集合中提取并反馈对应的中间件数据,其中,所述待请求数据名称集合包括至少一个中间件对应的待请求数据名称。In order to achieve the above object, a system for requesting data from a middleware according to a second aspect of the present application includes a user client, a web server, a middleware client, and at least one middleware, wherein the user client is used to The web server sends a webpage loading request and receives webpage data fed back by the webpage server; the webpage server is configured to construct a webpage to be loaded according to the webpage loading request, and send a middleware data request to the middleware client Obtaining the middleware data from the at least one middleware, and feeding back the obtained middleware data to the user client; the middleware client is configured to acquire feature information related to the webpage to be loaded, and Determining, according to the feature information, a to-be-requested data name set corresponding to the to-be-loaded webpage, and determining a target middleware according to the middleware data request, and determining, according to the target middleware and the to-be-requested data name set, The name of the data to be requested obtained by the target middleware, and the The to-be-requested data name obtained by the target middleware acquires the corresponding middleware data set from the target middleware and caches, and receives the middleware data request sent to the target middleware again, from the cached location The middleware data is extracted and fed back to the corresponding middleware data, wherein the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name.
本申请实施例的从中间件请求数据的***,在一次网页加载请求过后,中间件客户端将多个中间件数据请求所请求的资源记录下来,当下一次网页加载请求到来时,在中间件客户端第一次接收到向目标中间件发送的中间件数据请求时,按上一次网页加载请求的过程中记录下来的多次对资源的中间件数据请求,做自动的合并,即通过提供一个批量接口,并通过批量接口向目标中间件请求合并后的资源,同时将请求结果缓存在中间件客户端,如果在本次网页加载请求的过程中,中间件客户端再次接收到向目标中间件发送的中间件数据请求时,则从缓存的请求结果中提取并反馈对应的中间件数据即可,不但解决了上述相关技术中请求合并所带来的问题,同时请求方不需要了解整个请求合并的过程,简化了请求方的操作。In the system for requesting data from the middleware in the embodiment of the present application, after a webpage loading request, the middleware client records the resources requested by the plurality of middleware data requests, and when the next webpage loading request arrives, the middleware client When the terminal receives the middleware data request sent to the target middleware for the first time, according to the middleware data request of the resource recorded in the process of the last webpage loading request, the automatic merge is performed, that is, by providing a batch. The interface requests the merged resource to the target middleware through the batch interface, and caches the request result in the middleware client. If the middleware client receives the request to the target middleware again during the loading request of the webpage. When the middleware data request is received, the corresponding middleware data is extracted and fed back from the cached request result, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge. The process simplifies the operation of the requestor.
为了达到上述目的,本申请第三方面实施例的中间件客户端,包括:待请求数据名称 集合确定模块,用于获取与待加载网页相关的特征信息,并根据所述特征信息确定所述待加载网页所对应的待请求数据名称集合,其中,所述待请求数据名称集合包括至少一个中间件对应的待请求数据名称;目标中间件确定模块,用于接收中间件数据请求,并根据所述中间件数据请求确定目标中间件;待请求数据名称确定模块,用于根据所述目标中间件和所述待请求数据名称集合确定需要从所述目标中间件所获取的待请求数据名称;以及中间件数据提供模块,用于根据所述需要从所述目标中间件所获取的待请求数据名称从所述目标中间件获取对应的中间件数据集合并缓存,其中,如果再次接收到向所述目标中间件发送的中间件数据请求则从所述缓存的所述中间件数据集合中提取并反馈对应的中间件数据。In order to achieve the above objective, the middleware client of the third aspect of the present application includes: a data name to be requested a set determining module, configured to acquire feature information related to a webpage to be loaded, and determine a to-be-requested data name set corresponding to the to-be-loaded webpage according to the feature information, where the to-be-requested data name set includes at least one middle Corresponding data name to be requested; target middleware determining module, configured to receive a middleware data request, and determine a target middleware according to the middleware data request; a data name determining module to be requested, according to the target middleware And the to-be-requested data name set determines a to-be-requested data name that needs to be acquired from the target middleware; and a middleware data providing module, configured to obtain a to-be-requested data name from the target middleware according to the requirement Obtaining a corresponding middleware data set from the target middleware and caching, wherein if the middleware data request sent to the target middleware is received again, extracting and feeding back from the cached middleware data set Corresponding middleware data.
本申请实施例的中间件客户端,在一次网页加载请求过后,可将多个中间件数据请求所请求的资源记录下来,当下一次网页加载请求到来时,在第一次接收到向目标中间件发送的中间件数据请求时,按上一次网页加载请求的过程中记录下来的多次对资源的中间件数据请求,做自动的合并,即通过提供一个批量接口,并通过批量接口向目标中间件请求合并后的资源,同时将请求结果缓存在中间件客户端,如果在本次网页加载请求的过程中,中间件客户端再次接收到向目标中间件发送的中间件数据请求时,则从缓存的请求结果中提取并反馈对应的中间件数据即可,不但解决了上述相关技术中请求合并所带来的问题,同时请求方不需要了解整个请求合并的过程,简化了请求方的操作。The middleware client in the embodiment of the present application may record the resources requested by the plurality of middleware data requests after a webpage loading request, and receive the target middleware for the first time when the next webpage loading request arrives. When the middleware data request is sent, the middleware data request for the resource recorded in the process of the last webpage loading request is automatically merged, that is, by providing a batch interface and through the batch interface to the target middleware. Requesting the merged resource and caching the result of the request in the middleware client. If the middleware client receives the middleware data request sent to the target middleware again during the loading request of the webpage, the slave cache The requesting result extracts and feeds back the corresponding middleware data, which not only solves the problem caused by the request merge in the above related art, but also does not need to understand the entire request merge process, and simplifies the requester's operation.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。The aspects and advantages of the present invention will be set forth in part in the description which follows.
附图说明DRAWINGS
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图1是根据本申请一个实施例的从中间件请求数据的方法的流程图;1 is a flow chart of a method of requesting data from a middleware in accordance with one embodiment of the present application;
图2是根据本申请一个实施例的从中间件请求数据的方法在第一次用户访问页面时所操作流程的示例图;2 is a diagram showing an example of a flow of operations when a first user accesses a page by a method of requesting data from a middleware according to an embodiment of the present application;
图3是根据本申请一个实施例的从中间件请求数据的方法在第二次用户访问页面时所操作流程的示例图;3 is a diagram showing an example of a flow of operations when a second user accesses a page by a method of requesting data from a middleware according to an embodiment of the present application;
图4是根据本申请一个实施例的从中间件请求数据的***的结构示意图;4 is a schematic structural diagram of a system for requesting data from a middleware according to an embodiment of the present application;
图5是根据本申请一个实施例的中间件客户端的结构示意图;FIG. 5 is a schematic structural diagram of a middleware client according to an embodiment of the present application; FIG.
图6是根据本申请另一个实施例的中间件客户端的结构示意图。 FIG. 6 is a schematic structural diagram of a middleware client according to another embodiment of the present application.
具体实施方式detailed description
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are intended to be illustrative, and are not to be construed as limiting.
下面参考附图描述本申请实施例的从中间件请求数据的方法、***及中间件客户端。A method, system, and middleware client for requesting data from a middleware according to an embodiment of the present application are described below with reference to the accompanying drawings.
图1是根据本申请一个实施例的从中间件请求数据的方法的流程图。如图1所示,该从中间件请求数据的方法可以包括:1 is a flow chart of a method of requesting data from a middleware in accordance with one embodiment of the present application. As shown in FIG. 1, the method for requesting data from the middleware may include:
S101,获取与待加载网页相关的特征信息,并根据特征信息确定待加载网页所对应的待请求数据名称集合,其中,待请求数据名称集合包括至少一个中间件对应的待请求数据名称。S101. Acquire feature information related to the webpage to be loaded, and determine a to-be-requested data name set corresponding to the webpage to be loaded according to the feature information, where the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name.
此外,在本申请的实施例中,特征信息可为待加载页面的地址信息、请求待加载页面的用户的会员类型信息、待加载页面的名称(如list(目录)页面、detail(详情)页面等)、请求待加载页面的客户端信息(如所用浏览器信息、操作***信息等)、请求待加载页面的Cookie信息或者是网页服务器调用中间件客户端时的调用接口或参数等。In addition, in the embodiment of the present application, the feature information may be address information of a page to be loaded, member type information of a user requesting a page to be loaded, and a name of a page to be loaded (eg, a list page, a detail page) Etc., requesting client information of the page to be loaded (such as browser information, operating system information, etc.), requesting cookie information of the page to be loaded, or calling interface or parameter when the web server calls the middleware client.
另外,在本申请的实施例中,待加载网页所对应的待请求数据名称集合可通过以下步骤生成:当待加载网页被第一次加载时,记录向至少一个中间件发送的中间件数据请求及与待加载网页相关的特征信息;以及根据记录的中间件数据请求生成待请求数据名称集合,并建立特征信息与待请求数据名称集合之间的关联关系。In addition, in the embodiment of the present application, the to-be-requested data name set corresponding to the to-be-loaded webpage may be generated by: recording the middleware data request sent to the at least one middleware when the to-be-loaded webpage is loaded for the first time And the feature information related to the webpage to be loaded; and generating the to-be-requested data name set according to the recorded middleware data request, and establishing an association relationship between the feature information and the to-be-requested data name set.
具体地,当用户客户端向网页服务器发送网页加载请求时,网页服务器可根据网页加载请求构建待加载网页,中间件客户端可获取与该待加载网页相关的特征信息,如该待加载网页的地址信息(如URL(Uniform Resource Locator,统一资源定位符))或者上述用户客户端所属用户的会员类型信息等,之后可根据上述特征信息确定上述待加载网页所对应的待请求数据名称集合,可以理解,上述待加载网页所对应的待请求数据名称集合是在该待加载网页被第一次加载的过程中生成的。Specifically, when the user client sends a webpage loading request to the webpage server, the webpage server may construct the webpage to be loaded according to the webpage loading request, and the middleware client may obtain the feature information related to the webpage to be loaded, such as the webpage to be loaded. The address information (such as a URL (Uniform Resource Locator)) or the member type information of the user to which the user client belongs, and the like, and then determining, according to the feature information, the to-be-requested data name set corresponding to the to-be-loaded webpage, It is understood that the to-be-requested data name set corresponding to the to-be-loaded webpage is generated during the first loading of the to-be-loaded webpage.
S102,接收中间件数据请求,并根据中间件数据请求确定目标中间件。S102. Receive a middleware data request, and determine a target middleware according to the middleware data request.
具体地,在网页服务器根据用户发送的网页加载请求构建待加载网页之后,中间件客户端可接收网页服务器发送的中间件数据请求,并根据该中间件数据请求找到与该中间件数据请求对应的中间件作为目标中间件。Specifically, after the web server constructs the webpage to be loaded according to the webpage loading request sent by the user, the middleware client may receive the middleware data request sent by the webpage server, and find a corresponding data request corresponding to the middleware according to the middleware data request. The middleware serves as the target middleware.
S103,根据目标中间件和待请求数据名称集合确定需要从目标中间件所获取的待请求数据名称。S103. Determine, according to the target middleware and the to-be-requested data name set, the to-be-requested data name that needs to be acquired from the target middleware.
应当理解,由于上述待请求数据名称集合包括中间件对应的待请求数据名称,所以,中间件客户端在接收到中间件数据请求之后,根据目标中间件和待请求数据名称集合即可 确定需要从目标中间件中所要获取的待请求数据名称。It should be understood that, since the to-be-requested data name set includes the to-be-requested data name corresponding to the middleware, after receiving the middleware data request, the middleware client may be based on the target middleware and the to-be-requested data name set. Determine the name of the data to be requested that needs to be obtained from the target middleware.
S104,根据需要从目标中间件所获取的待请求数据名称从目标中间件获取对应的中间件数据集合并缓存,其中,如果再次接收到向目标中间件发送的中间件数据请求则从缓存的中间件数据集合中提取并反馈对应的中间件数据。S104. Acquire a corresponding middleware data set from the target middleware and cache according to the to-be-requested data name acquired from the target middleware, where the middleware data request sent to the target middleware is received again from the middle of the cache. The corresponding middleware data is extracted and fed back in the data set.
综上所述,本申请实施例的从中间件请求数据的方法是通过中间件客户端自学习来完成请求合并,自动请求合并的基本思路为:在一次网页加载请求过后,中间件客户端将多个中间件数据请求所请求的资源记录下来,当下一次网页加载请求到来时,在中间件客户端第一次接收到向目标中间件发送的中间件数据请求时,按上一次网页加载请求的过程中记录下来的多次对资源的中间件数据请求,做自动的合并,即通过提供一个批量接口,并通过批量接口向目标中间件请求合并后的资源,同时将请求结果缓存在中间件客户端中,如果在本次网页加载请求的过程中,中间件客户端再次接收到向目标中间件发送的中间件数据请求时,则从缓存的请求结果中提取并反馈对应的中间件数据即可。In summary, the method for requesting data from the middleware in the embodiment of the present application is to complete the request merging through the self-learning of the middleware client, and the basic idea of automatically requesting the merge is: after a webpage loading request, the middleware client will The resource requested by the plurality of middleware data requests is recorded, and when the next webpage loading request arrives, when the middleware client receives the middleware data request sent to the target middleware for the first time, presses the last webpage loading request. The middleware data request for the resource recorded in the process is automatically merged, that is, by providing a batch interface, and requesting the merged resource to the target middleware through the batch interface, and simultaneously caching the request result in the middleware client. In the end, if the middleware client receives the middleware data request sent to the target middleware again during the loading process of the webpage, the corresponding middleware data is extracted and fed back from the cached request result. .
进一步的,在本申请的一个实施例中,所述方法还可包括:在将待加载网页所对应的待请求数据名称集合中全部待请求数据名称对应的中间件数据均反馈完毕之后,清空缓存。可以理解,在本申请的实施例中,缓存的生命周期为一次网页加载请求,并且缓存的结果只对本次网页加载请求可见。由此,在本次网页加载请求结束后将缓存清空,一方面可以释放服务器资源,另一方面,不同网页加载请求之间不会造成缓存中中间件数据的紊乱。Further, in an embodiment of the present application, the method may further include: after the middleware data corresponding to all the data names to be requested in the to-be-requested data name set corresponding to the webpage to be loaded is fed back, the cache is cleared. . It can be understood that, in the embodiment of the present application, the lifetime of the cache is one page load request, and the cached result is only visible to the current page load request. Therefore, after the webpage loading request ends, the cache is emptied, on the one hand, the server resources can be released, and on the other hand, the middleware data in the cache does not be disordered between different webpage loading requests.
可选的,在本申请的一个实施例中,待加载页面可以需要调用多个中间件,待请求数据名称集合可包括多个中间件分别对应的待请求数据名称。也就是说,本申请实施例的从中间件请求数据的方法也适用于从多个中间件请求数据,当待加载页面需要调用多个中间件时,上述待请求数据名称集合则可包括该多个中间件分别对应的待请求数据名称。当中间件客户端接收到哪个中间件对应的中间件数据请求时,则根据该中间件对应的中间件数据请求进行上述步骤S102-S104的处理,以获取该待加载页面中所需要调用的所有中间件对应的中间件数据。Optionally, in an embodiment of the present application, the to-be-loaded page may need to invoke multiple middleware, and the to-be-requested data name set may include a plurality of middleware corresponding to-be-requested data names. That is, the method for requesting data from the middleware in the embodiment of the present application is also applicable to requesting data from multiple middlewares. When the to-be-loaded page needs to invoke multiple middlewares, the set of data names to be requested may include the plurality of The middleware corresponds to the name of the data to be requested. When the middleware client receives the middleware data request corresponding to the middleware, the processing of the foregoing steps S102-S104 is performed according to the middleware data request corresponding to the middleware, to obtain all the calls that need to be called in the to-be-loaded page. Middleware data corresponding to the middleware.
为了使得本领域的技术人员更加清楚地了解本申请,下面将以单个中间件为例对本申请作进一步描述。In order to make the present application more clear to those skilled in the art, the present application will be further described below by taking a single middleware as an example.
举例而言,假设现在有一个权限管理的中间件,所有用户的权限都存在于这个中间件中,当一个用户登录网站后,该用户的网页页面上将要展示多少内容由内容区域的权限所控制。例如,以URL地址为/admin/monitor.jsp的网页为例,假设该网页页面上有4个区域,每一个区域的权限分别为featureA,featureB,featureC,featureD,那么当要渲染这个网页时,将需要向权限中间件请求4次以完成页面中4个区域的渲染。其中,一次对权限中间件的调用示例为:boolean isAllowed=service.isAllowed(personID,featureA), 这个调用会向远程的权限中间件询问当前personID是否拥有featureA这个功能,如果有这个功能,就在页面上展示featureA对应的内容。For example, suppose there is now a middleware for rights management. All user permissions exist in this middleware. When a user logs in to the website, how much content will be displayed on the user's web page is controlled by the permissions of the content area. . For example, taking a webpage with a URL of /admin/monitor.jsp as an example, suppose that there are four areas on the page of the webpage, and the permissions of each area are featureA, featureB, featureC, and featureD, then when the webpage is to be rendered, The permission middleware will need to be requested 4 times to complete the rendering of the 4 areas in the page. Among them, an example of calling a permission middleware is: boolean isAllowed=service.isAllowed(personID,featureA), This call will ask the remote permission middleware whether the current personID has the function of featureA. If there is this function, the content corresponding to featureA is displayed on the page.
在上面的例子中,可假定一个网页上将要请求的权限是相同的,那么可以以待加载网页的URL为维度,来分类请求的资源。在第一次用户访问页面时,如图2所示,中间件客户端可从网页服务器获取并记录与待加载网页相关的特征信息URL,同时中间件客户端可接收向中间件发送的中间件数据请求(如boolean isAllowed=service.isAllowed(personID,featureA)),并根据该中间件数据请求从目标中间件获取对应的中间件数据并反馈至网页服务器,网页服务器根据这些中间件数据对待加载网页进行渲染并反馈给用户,其中,中间件客户端根据接收到的中间件数据请求生成待请求数据名称集合并记录下来,以及建立特征信息URL与待请求数据名称集合之间的对应关系,同时中间件客户端要求网页服务器将变量personID传入到中间件客户端中。在上面例子中,特征信息URL与待请求数据名称集合之间的对应关系,如下:In the above example, it can be assumed that the permissions to be requested on a web page are the same, then the requested resource can be classified by the URL of the web page to be loaded. When the first user accesses the page, as shown in FIG. 2, the middleware client can acquire and record the feature information URL related to the webpage to be loaded from the webpage server, and the middleware client can receive the middleware sent to the middleware. a data request (such as boolean isAllowed=service.isAllowed(personID, featureA)), and according to the middleware data request, obtain corresponding middleware data from the target middleware and feed back to the web server, and the web server treats the webpage according to the middleware data. Rendering and feeding back to the user, wherein the middleware client generates and records the to-be-requested data name set according to the received middleware data request, and establishes a correspondence relationship between the feature information URL and the to-be-requested data name set, and at the same time The client requires the web server to pass the variable personID to the middleware client. In the above example, the correspondence between the feature information URL and the set of data names to be requested is as follows:
URL:/admin/monitor.jsp-[featureA,featureB,featureC,featureD]URL: /admin/monitor.jsp-[featureA, featureB, featureC, featureD]
变量:personID。Variable: personID.
当第二次和以后所有的网页请求到来时,如图3所示,中间件客户端可根据网页服务器传入的URL来查找对应的待请求数据名称集合,在上面例子中,待请求数据名称集合为[featureA,featureB,featureC,featureD],同时再根据网页服务器传入的变量(personID)来做数据预热。数据预热将调用批量接口,向中间件请求上述待请求数据名称集合对应的所有资源,并缓存起来。接下去网页服务器对中间件的调用将会从缓存中获取数据。当完成业务(即缓存中待请求数据名称对应的中间件数据全部反馈给网页服务器)后,清空缓存,其中,缓存生命周期为一次用户的网页请求,并且缓存的结果只对本次网页请求可见。When the second and subsequent webpage requests arrive, as shown in FIG. 3, the middleware client may search for a corresponding data name set to be requested according to the URL sent by the web server. In the above example, the data name to be requested The collection is [featureA, featureB, featureC, featureD], and the data is warmed up according to the variable (personID) passed in by the web server. The data warm-up will call the batch interface, request all the resources corresponding to the above-mentioned data name set to be requested from the middleware, and cache them. Next, the web server's call to the middleware will get the data from the cache. After the completion of the service (that is, the middleware data corresponding to the data name to be requested in the cache is all fed back to the web server), the cache is cleared, wherein the cache life cycle is one user's webpage request, and the cached result is only visible to the current webpage request. .
应当理解,相关技术中,当一个网页多次请求同一个中间件时,通常是通过中间件提供一个批量接口,请求方通过该批量接口进行请求合并。虽然批量接口能够解决多次调用的问题,但是,当将请求合并与请求方的业务代码耦合在一起时,会带来以下问题:(1)当需要增加一个新调用,或者删除一个不用的调用时,请求方必须改动请求合并的代码;(2)调用方需要在所有有合并需求的地方写上合并调用的逻辑;(3)在分层式的架构中,不同层的调用合并也会给调用结果的传递带来困难。It should be understood that, in the related art, when a web page requests the same middleware multiple times, a batch interface is usually provided through the middleware, and the requesting party performs request combining through the batch interface. Although the bulk interface can solve the problem of multiple calls, when the request merge is coupled with the requester's business code, the following problems are caused: (1) when a new call needs to be added, or an unused call is deleted. When the requester must change the code that requests the merge; (2) the caller needs to write the logic of the merge call in all places where there is a merge requirement; (3) in the hierarchical architecture, the call merge of different layers will also give The transfer of the call result is difficult.
通过本申请实施例的从中间件请求数据的方法,通过中间件客户端的自学习来完成请求合并,不但解决了上述相关技术中请求合并所带来的问题,同时请求方不需要了解整个请求合并的过程,简化了请求方的操作。 Through the method for requesting data from the middleware in the embodiment of the present application, the request merge is completed through the self-learning of the middleware client, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge. The process simplifies the operation of the requestor.
为了实现上述实施例,本申请还提出了一种从中间件请求数据的***。In order to implement the above embodiments, the present application also proposes a system for requesting data from a middleware.
图4是根据本申请一个实施例的从中间件请求数据的***的结构示意图。如图4所示,该从中间件请求数据的***可以包括:用户客户端10、网页服务器20、中间件客户端30和至少一个中间件40。4 is a block diagram showing the structure of a system for requesting data from a middleware according to an embodiment of the present application. As shown in FIG. 4, the system for requesting data from the middleware may include a user client 10, a web server 20, a middleware client 30, and at least one middleware 40.
具体地,用户客户端10可用于向网页服务器20发送网页加载请求并接收网页服务器20反馈的网页数据。Specifically, the user client 10 can be used to send a webpage loading request to the webpage server 20 and receive webpage data fed back by the webpage server 20.
网页服务器20可用于根据网页加载请求构建待加载网页,并向中间件客户端30发送中间件数据请求以从至少一个中间件40获取中间件数据,以及将获取的中间件数据反馈至用户客户端10。The web server 20 can be configured to construct a webpage to be loaded according to the webpage loading request, and send a middleware data request to the middleware client 30 to acquire the middleware data from the at least one middleware 40, and feed back the obtained middleware data to the user client. 10.
中间件客户端30可用于获取与待加载网页相关的特征信息,并根据特征信息确定待加载网页所对应的待请求数据名称集合,以及根据中间件数据请求确定目标中间件,并根据目标中间件和待请求数据名称集合确定需要从目标中间件所获取的待请求数据名称,以及根据需要从目标中间件所获取的待请求数据名称从目标中间件获取对应的中间件数据集合并缓存,并再次接收到向目标中间件发送的中间件数据请求时,从缓存的中间件数据集合中提取并反馈对应的中间件数据,其中,待请求数据名称集合包括至少一个中间件对应的待请求数据名称。The middleware client 30 may be configured to acquire feature information related to the webpage to be loaded, determine a to-be-requested data name set corresponding to the webpage to be loaded according to the feature information, and determine a target middleware according to the middleware data request, and according to the target middleware And the to-be-requested data name set determines the to-be-requested data name that needs to be acquired from the target middleware, and obtains the corresponding middleware data set from the target middleware according to the required data name acquired from the target middleware and caches, and caches again Upon receiving the middleware data request sent to the target middleware, the corresponding middleware data is extracted and fed back from the cached middleware data set, wherein the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name.
其中,在本申请的实施例中,中间件客户端30还可用于在待加载网页被第一次加载时记录向至少一个中间件40发送的中间件数据请求及与待加载网页相关的特征信息,并根据记录的中间件数据请求生成待请求数据名称集合,并建立特征信息与待请求数据名称集合之间的关联关系。In the embodiment of the present application, the middleware client 30 is further configured to record the middleware data request sent to the at least one middleware 40 and the feature information related to the webpage to be loaded when the webpage to be loaded is loaded for the first time. And generating a to-be-requested data name set according to the recorded middleware data request, and establishing an association relationship between the feature information and the to-be-requested data name set.
此外,特征信息可为待加载页面的地址信息、请求待加载页面的用户的会员类型信息、待加载页面的名称(如list页面、detail页面等)、请求待加载页面的客户端信息(如所用浏览器信息、操作***信息等)、请求待加载页面的Cookie信息或者是网页服务器调用中间件客户端时的调用接口或参数等。In addition, the feature information may be address information of the page to be loaded, member type information of the user requesting the page to be loaded, name of the page to be loaded (such as a list page, a detail page, etc.), and client information requesting the page to be loaded (if used) Browser information, operating system information, etc.), requesting cookie information of the page to be loaded or calling interface or parameter when the web server calls the middleware client.
更具体地,当用户客户端10向网页服务器20发送网页加载请求时,网页服务器20可根据网页加载请求构建待加载网页,中间件客户端30可获取与该待加载网页相关的特征信息,如该待加载网页的地址信息(如URL)或者上述用户客户端10所属用户的会员类型信息等,之后可根据上述特征信息确定上述待加载网页所对应的待请求数据名称集合,可以理解,上述待加载网页所对应的待请求数据名称集合是在该待加载网页被第一次加载的过程中生成的。同时,网页服务器20可向中间件客户端30发送中间件数据请求以从至少一个中间件40获取中间件数据,中间件客户端30在接收到中间件数据请求之后,可根据该中间件数据请求找到与该中间件数据请求对应的中间件作为目标中间件,并可根据目标中 间件和待请求数据名称集合即可确定需要从目标中间件中所要获取的待请求数据名称,以及根据需要从目标中间件所获取的待请求数据名称从目标中间件获取对应的中间件数据集合并缓存,并再次接收到向目标中间件发送的中间件数据请求时,从缓存的中间件数据集合中提取并反馈对应的中间件数据。More specifically, when the user client 10 sends a webpage loading request to the webpage server 20, the webpage server 20 can construct a webpage to be loaded according to the webpage loading request, and the middleware client 30 can acquire the feature information related to the webpage to be loaded, such as The address information (such as a URL) of the webpage to be loaded or the member type information of the user to which the user client 10 belongs, and the like, may determine the set of data names to be requested corresponding to the webpage to be loaded according to the feature information, and it may be understood that the foregoing The set of to-be-requested data names corresponding to the loaded webpage is generated during the first loading of the webpage to be loaded. Meanwhile, the web server 20 may send a middleware data request to the middleware client 30 to acquire middleware data from the at least one middleware 40, and the middleware client 30 may request the middleware data after receiving the middleware data request. Find the middleware corresponding to the middleware data request as the target middleware, and according to the target The set of the data and the to-be-requested data name can determine the name of the data to be requested that needs to be obtained from the target middleware, and obtain the corresponding middleware data set from the target middleware according to the data name to be requested acquired from the target middleware as needed. And buffering, and receiving the middleware data request sent to the target middleware again, extracting and feeding back the corresponding middleware data from the cached middleware data set.
进一步的,在本申请的一个实施例中,中间件客户端30还可用于在将待加载网页所对应的待请求数据名称集合中全部待请求数据名称对应的中间件数据均反馈完毕之后,清空缓存。可以理解,在本申请的实施例中,缓存的生命周期为一次网页加载请求,并且缓存的结果只对本次网页加载请求可见。由此,在本次网页加载请求结束后将缓存清空,一方面可以释放服务器资源,另一方面,不同网页加载请求之间不会造成缓存中中间件数据的紊乱。Further, in an embodiment of the present application, the middleware client 30 may be further configured to: after the middleware data corresponding to all the data names to be requested in the to-be-requested data name set corresponding to the webpage to be loaded is fed back, Cache. It can be understood that, in the embodiment of the present application, the lifetime of the cache is one page load request, and the cached result is only visible to the current page load request. Therefore, after the webpage loading request ends, the cache is emptied, on the one hand, the server resources can be released, and on the other hand, the middleware data in the cache does not be disordered between different webpage loading requests.
可选的,在本申请的一个实施例中,待加载页面可以需要调用多个中间件,待请求数据名称集合可包括多个中间件分别对应的待请求数据名称。也就是说,本申请实施例的从中间件请求数据的***也适用于从多个中间件请求数据,当待加载页面需要调用多个中间件时,上述待请求数据名称集合则可包括该多个中间件分别对应的待请求数据名称。当中间件客户端接收到哪个中间件对应的中间件数据请求时,则根据该中间件对应的中间件数据请求进行上述的相应处理,以获取该待加载页面中所需要调用的所有中间件对应的中间件数据。Optionally, in an embodiment of the present application, the to-be-loaded page may need to invoke multiple middleware, and the to-be-requested data name set may include a plurality of middleware corresponding to-be-requested data names. That is, the system for requesting data from the middleware in the embodiment of the present application is also applicable to requesting data from a plurality of middlewares. When the plurality of middlewares need to be called when the page to be loaded needs to be called, the set of data names to be requested may include the plurality of The middleware corresponds to the name of the data to be requested. When the middleware client receives the middleware data request corresponding to the middleware, the corresponding processing is performed according to the middleware data request corresponding to the middleware, so as to obtain all the middlewares that need to be called in the to-be-loaded page. Middleware data.
本申请实施例的从中间件请求数据的***,在一次网页加载请求过后,中间件客户端将多个中间件数据请求所请求的资源记录下来,当下一次网页加载请求到来时,在中间件客户端第一次接收到向目标中间件发送的中间件数据请求时,按上一次网页加载请求的过程中记录下来的多次对资源的中间件数据请求,做自动的合并,即通过提供一个批量接口,并通过批量接口向目标中间件请求合并后的资源,同时将请求结果缓存在中间件客户端,如果在本次网页加载请求的过程中,中间件客户端再次接收到向目标中间件发送的中间件数据请求时,则从缓存的请求结果中提取并反馈对应的中间件数据即可,不但解决了上述相关技术中请求合并所带来的问题,同时请求方不需要了解整个请求合并的过程,简化了请求方的操作。In the system for requesting data from the middleware in the embodiment of the present application, after a webpage loading request, the middleware client records the resources requested by the plurality of middleware data requests, and when the next webpage loading request arrives, the middleware client When the terminal receives the middleware data request sent to the target middleware for the first time, according to the middleware data request of the resource recorded in the process of the last webpage loading request, the automatic merge is performed, that is, by providing a batch. The interface requests the merged resource to the target middleware through the batch interface, and caches the request result in the middleware client. If the middleware client receives the request to the target middleware again during the loading request of the webpage. When the middleware data request is received, the corresponding middleware data is extracted and fed back from the cached request result, which not only solves the problem caused by the request merge in the related art, but also does not need to understand the entire request merge. The process simplifies the operation of the requestor.
为了实现上述实施例,本申请还提出了一种中间件客户端。In order to implement the above embodiments, the present application also proposes a middleware client.
图5是根据本申请一个实施例的中间件客户端的结构示意图。如图5所示,该中间件客户端可以包括:待请求数据名称集合确定模块31、目标中间件确定模块32、待请求数据名称确定模块33和中间件数据提供模块34。FIG. 5 is a schematic structural diagram of a middleware client according to an embodiment of the present application. As shown in FIG. 5, the middleware client may include a to-be-requested data name set determining module 31, a target middleware determining module 32, a to-be-requested data name determining module 33, and a middleware data providing module 34.
具体地,待请求数据名称集合确定模块31可用于获取与待加载网页相关的特征信息, 并根据特征信息确定待加载网页所对应的待请求数据名称集合,其中,待请求数据名称集合包括至少一个中间件对应的待请求数据名称。此外,在本申请的实施例中,特征信息可为待加载页面的地址信息、请求待加载页面的用户的会员类型信息、待加载页面的名称(如list页面、detail页面等)、请求待加载页面的客户端信息(如所用浏览器信息、操作***信息等)、请求待加载页面的Cookie信息或者是网页服务器调用中间件客户端时的调用接口或参数等。Specifically, the to-be-requested data name set determining module 31 can be configured to acquire feature information related to the webpage to be loaded, And determining, according to the feature information, the to-be-requested data name set corresponding to the to-be-loaded webpage, where the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name. In addition, in the embodiment of the present application, the feature information may be address information of a page to be loaded, member type information of a user requesting a page to be loaded, a name of a page to be loaded (such as a list page, a detail page, etc.), and a request to be loaded. The client information of the page (such as browser information, operating system information, etc.), the cookie information requesting the page to be loaded, or the calling interface or parameter when the web server calls the middleware client.
进一步的,在本申请的实施例中,待请求数据名称集合确定模块31还可用于当待加载网页被第一次加载时,记录向至少一个中间件发送的中间件数据请求及与待加载网页相关的特征信息,并根据记录的中间件数据请求生成待请求数据名称集合,并建立特征信息与待请求数据名称集合之间的关联关系。Further, in the embodiment of the present application, the to-be-requested data name set determining module 31 is further configured to record the middleware data request and the to-be-loaded webpage sent to the at least one middleware when the to-be-loaded webpage is loaded for the first time. Correlating feature information, and generating a to-be-requested data name set according to the recorded middleware data request, and establishing an association relationship between the feature information and the to-be-requested data name set.
更具体地,在用户客户端向网页服务器发送网页加载请求时,网页服务器可根据网页加载请求构建待加载网页,待请求数据名称集合确定模块31可获取与该待加载网页相关的特征信息,如该待加载网页的地址信息或者上述用户客户端所属用户的会员类型信息等,之后可根据上述特征信息确定上述待加载网页所对应的待请求数据名称集合,可以理解,上述待加载网页所对应的待请求数据名称集合是在该待加载网页被第一次加载的过程中生成的。More specifically, when the user client sends a webpage loading request to the webpage server, the webpage server may construct the webpage to be loaded according to the webpage loading request, and the to-be-requested data name collection determining module 31 may acquire the feature information related to the webpage to be loaded, such as The address information of the to-be-loaded webpage or the member type information of the user to which the user client belongs, and the like, and then determining the to-be-requested data name set corresponding to the to-be-loaded webpage according to the feature information. The set of pending data names is generated during the first loading of the web page to be loaded.
目标中间件确定模块32可用于接收中间件数据请求,并根据中间件数据请求确定目标中间件。更具体地,在网页服务器根据用户发送的网页加载请求构建待加载网页之后,目标中间件确定模块32可接收网页服务器发送的中间件数据请求,并根据该中间件数据请求找到与该中间件数据请求对应的中间件作为目标中间件。The target middleware determination module 32 can be configured to receive the middleware data request and determine the target middleware based on the middleware data request. More specifically, after the web server constructs the webpage to be loaded according to the webpage loading request sent by the user, the target middleware determining module 32 may receive the middleware data request sent by the webpage server, and find the data with the middleware according to the middleware data request. The corresponding middleware is requested as the target middleware.
待请求数据名称确定模块33可用于根据目标中间件和待请求数据名称集合确定需要从目标中间件所获取的待请求数据名称。应当理解,由于上述待请求数据名称集合包括中间件对应的待请求数据名称,所以,在接收到中间件数据请求之后,待请求数据名称确定模块33根据目标中间件和待请求数据名称集合即可确定需要从目标中间件中所要获取的待请求数据名称。The to-be-requested data name determining module 33 is operable to determine, according to the target middleware and the set of data names to be requested, the to-be-requested data name that needs to be acquired from the target middleware. It should be understood that, since the to-be-requested data name set includes the to-be-requested data name corresponding to the middleware, after receiving the middleware data request, the to-be-requested data name determining module 33 may be configured according to the target middleware and the to-be-requested data name set. Determine the name of the data to be requested that needs to be obtained from the target middleware.
中间件数据提供模块34可用于根据需要从目标中间件所获取的待请求数据名称从目标中间件获取对应的中间件数据集合并缓存,其中,如果再次接收到向目标中间件发送的中间件数据请求则从缓存的中间件数据集合中提取并反馈对应的中间件数据。The middleware data providing module 34 may be configured to acquire and cache a corresponding middleware data set from the target middleware according to the to-be-requested data name acquired from the target middleware, where the middleware data sent to the target middleware is received again. The request extracts and feeds back the corresponding middleware data from the cached middleware data set.
综上所述,本申请实施例的中间件客户端是通过自学习来完成请求合并,自动请求合并的基本思路为:在一次网页加载请求过后,中间件客户端将多个中间件数据请求所请求的资源记录下来,当下一次网页加载请求到来时,在中间件客户端第一次接收到向目标中间件发送的中间件数据请求时,按上一次网页加载请求的过程中记录下来的多次对资源的 中间件数据请求,做自动的合并,即通过提供一个批量接口,并通过批量接口向目标中间件请求合并后的资源,同时将请求结果缓存在中间件客户端,如果在本次网页加载请求的过程中,中间件客户端再次接收到向目标中间件发送的中间件数据请求时,则从缓存的请求结果中提取并反馈对应的中间件数据即可。In summary, the middleware client in the embodiment of the present application completes the request merging through self-learning, and the basic idea of automatically requesting merging is: after a webpage loading request, the middleware client will request multiple middleware data requests. The requested resource is recorded, and when the next time the webpage loading request arrives, when the middleware client receives the middleware data request sent to the target middleware for the first time, the multiple times recorded in the process of the last webpage loading request are recorded. Resource The middleware data request is automatically merged, that is, by providing a batch interface and requesting the merged resource to the target middleware through the batch interface, and simultaneously caching the request result in the middleware client, if the request is loaded in the webpage In the process, when the middleware client receives the middleware data request sent to the target middleware again, the corresponding middleware data is extracted and fed back from the cached request result.
进一步的,在本申请的一个实施例中,如图6所示,所述中间件客户端还可包括缓存管理模块35,缓存管理模块35可用于在将待加载网页所对应的待请求数据名称集合中全部待请求数据名称对应的中间件数据均反馈完毕之后,清空缓存。可以理解,在本申请的实施例中,缓存的生命周期为一次网页加载请求,并且缓存的结果只对本次网页加载请求可见。由此,在本次网页加载请求结束后将缓存清空,一方面可以释放服务器资源,另一方面,不同网页加载请求之间不会造成缓存中中间件数据的紊乱。Further, in an embodiment of the present application, as shown in FIG. 6, the middleware client may further include a cache management module 35, where the cache management module 35 may be used to name the data to be requested corresponding to the webpage to be loaded. After the middleware data corresponding to all the data names to be requested in the collection are all fed back, the cache is cleared. It can be understood that, in the embodiment of the present application, the lifetime of the cache is one page load request, and the cached result is only visible to the current page load request. Therefore, after the webpage loading request ends, the cache is emptied, on the one hand, the server resources can be released, and on the other hand, the middleware data in the cache does not be disordered between different webpage loading requests.
可选的,在本申请的一个实施例中,在待加载页面需要调用多个中间件时,待请求数据名称集合可包括多个中间件分别对应的待请求数据名称。也就是说,本申请实施例的中间件客户端也适用于从多个中间件请求数据,当待加载页面需要调用多个中间件时,上述待请求数据名称集合则可包括该多个中间件分别对应的待请求数据名称。当中间件客户端接收到哪个中间件对应的中间件数据请求时,则根据该中间件对应的中间件数据请求进行上述的相应处理,以获取该待加载页面中所需要调用的所有中间件对应的中间件数据。Optionally, in an embodiment of the present application, when the to-be-loaded page needs to invoke multiple middlewares, the to-be-requested data name set may include a plurality of middleware corresponding to-be-requested data names. That is, the middleware client of the embodiment of the present application is also applicable to requesting data from multiple middlewares. When the to-be-loaded page needs to invoke multiple middlewares, the set of to-be-requested data names may include the plurality of middlewares. Corresponding data names to be requested. When the middleware client receives the middleware data request corresponding to the middleware, the corresponding processing is performed according to the middleware data request corresponding to the middleware, so as to obtain all the middlewares that need to be called in the to-be-loaded page. Middleware data.
本申请实施例的中间件客户端,在一次网页加载请求过后,可将多个中间件数据请求所请求的资源记录下来,当下一次网页加载请求到来时,在第一次接收到向目标中间件发送的中间件数据请求时,按上一次网页加载请求的过程中记录下来的多次对资源的中间件数据请求,做自动的合并,即通过提供一个批量接口,并通过批量接口向目标中间件请求合并后的资源,同时将请求结果缓存在中间件客户端,如果在本次网页加载请求的过程中,中间件客户端再次接收到向目标中间件发送的中间件数据请求时,则从缓存的请求结果中提取并反馈对应的中间件数据即可,不但解决了上述相关技术中请求合并所带来的问题,同时请求方不需要了解整个请求合并的过程,简化了请求方的操作。The middleware client in the embodiment of the present application may record the resources requested by the plurality of middleware data requests after a webpage loading request, and receive the target middleware for the first time when the next webpage loading request arrives. When the middleware data request is sent, the middleware data request for the resource recorded in the process of the last webpage loading request is automatically merged, that is, by providing a batch interface and through the batch interface to the target middleware. Requesting the merged resource and caching the result of the request in the middleware client. If the middleware client receives the middleware data request sent to the target middleware again during the loading request of the webpage, the slave cache The requesting result extracts and feeds back the corresponding middleware data, which not only solves the problem caused by the request merge in the above related art, but also does not need to understand the entire request merge process, and simplifies the requester's operation.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。 In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the application. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in the reverse order depending on the functions involved, in accordance with the illustrated or discussed order. It will be understood by those skilled in the art to which the embodiments of the present application pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行***、装置或设备(如基于计算机的***、包括处理器的***或其他可以从指令执行***、装置或设备取指令并执行指令的***)使用,或结合这些指令执行***、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行***、装置或设备或结合这些指令执行***、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行***执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the application can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or may be each Units exist physically separately, or two or more units can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。 The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (15)

  1. 一种从中间件请求数据的方法,其特征在于,包括以下步骤:A method for requesting data from a middleware, comprising the steps of:
    获取与待加载网页相关的特征信息,并根据所述特征信息确定所述待加载网页所对应的待请求数据名称集合,其中,所述待请求数据名称集合包括至少一个中间件对应的待请求数据名称;Acquiring the feature information related to the webpage to be loaded, and determining the to-be-requested data name set corresponding to the to-be-loaded webpage according to the feature information, where the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name;
    接收中间件数据请求,并根据所述中间件数据请求确定目标中间件;Receiving a middleware data request, and determining a target middleware according to the middleware data request;
    根据所述目标中间件和所述待请求数据名称集合确定需要从所述目标中间件所获取的待请求数据名称;以及Determining, according to the target middleware and the set of to-be-requested data names, a data name to be requested that needs to be obtained from the target middleware;
    根据所述需要从所述目标中间件所获取的待请求数据名称从所述目标中间件获取对应的中间件数据集合并缓存,其中,如果再次接收到向所述目标中间件发送的中间件数据请求则从所述缓存的所述中间件数据集合中提取并反馈对应的中间件数据。Acquiring and buffering a corresponding middleware data set from the target middleware according to the to-be-requested data name acquired from the target middleware, wherein if the middleware data sent to the target middleware is received again The request then extracts and feeds back the corresponding middleware data from the cached middleware data set.
  2. 如权利要求1所述的从中间件请求数据的方法,其特征在于,所述待加载网页所对应的待请求数据名称集合通过以下步骤生成:The method for requesting data from a middleware according to claim 1, wherein the set of data names to be requested corresponding to the webpage to be loaded is generated by the following steps:
    当所述待加载网页被第一次加载时,记录向至少一个中间件发送的中间件数据请求及与所述待加载网页相关的特征信息;以及When the to-be-loaded webpage is loaded for the first time, recording a middleware data request sent to the at least one middleware and feature information related to the to-be-loaded webpage;
    根据所述记录的中间件数据请求生成所述待请求数据名称集合,并建立所述特征信息与所述待请求数据名称集合之间的关联关系。Generating the to-be-requested data name set according to the recorded middleware data request, and establishing an association relationship between the feature information and the to-be-requested data name set.
  3. 如权利要求1或2所述的从中间件请求数据的方法,其特征在于,所述特征信息为所述待加载页面的地址信息、请求所述待加载页面的用户的会员类型信息、所述待加载页面的名称、请求所述待加载页面的客户端信息、请求所述待加载页面的Cookie信息或者是网页服务器调用中间件客户端时的调用接口或参数。The method for requesting data from a middleware according to claim 1 or 2, wherein the feature information is address information of the page to be loaded, member type information of a user requesting the page to be loaded, The name of the page to be loaded, the client information requesting the page to be loaded, the cookie information requesting the page to be loaded, or the calling interface or parameter when the web server invokes the middleware client.
  4. 如权利要求1所述的从中间件请求数据的方法,其特征在于,还包括:The method of requesting data from a middleware according to claim 1, further comprising:
    在将所述待加载网页所对应的待请求数据名称集合中全部待请求数据名称对应的中间件数据均反馈完毕之后,清空缓存。After the middleware data corresponding to all the data names to be requested in the to-be-requested data name set corresponding to the to-be-loaded webpage is fed back, the cache is cleared.
  5. 如权利要求1所述的从中间件请求数据的方法,其特征在于,所述待加载页面需要调用多个中间件,所述待请求数据名称集合包括所述多个中间件分别对应的待请求数据名称。The method for requesting data from a middleware according to claim 1, wherein the to-be-loaded page needs to call a plurality of middleware, and the to-be-requested data name set includes the plurality of middleware corresponding to be requested respectively. The name of the data.
  6. 一种从中间件请求数据的***,其特征在于,包括用户客户端、网页服务器、中间件客户端和至少一个中间件,其中,A system for requesting data from a middleware, comprising: a user client, a web server, a middleware client, and at least one middleware, wherein
    所述用户客户端,用于向所述网页服务器发送网页加载请求并接收所述网页服务器反馈的网页数据; The user client is configured to send a webpage loading request to the webpage server and receive webpage data fed back by the webpage server;
    所述网页服务器,用于根据所述网页加载请求构建待加载网页,并向所述中间件客户端发送中间件数据请求以从所述至少一个中间件获取中间件数据,以及将获取的中间件数据反馈至所述用户客户端;The web server is configured to construct a webpage to be loaded according to the webpage loading request, and send a middleware data request to the middleware client to acquire middleware data from the at least one middleware, and the middleware to be acquired Data feedback to the user client;
    所述中间件客户端,用于获取与所述待加载网页相关的特征信息,并根据所述特征信息确定所述待加载网页所对应的待请求数据名称集合,以及根据中间件数据请求确定目标中间件,并根据所述目标中间件和所述待请求数据名称集合确定需要从所述目标中间件所获取的待请求数据名称,以及根据所述需要从所述目标中间件所获取的待请求数据名称从所述目标中间件获取对应的中间件数据集合并缓存,并再次接收到向所述目标中间件发送的中间件数据请求时,从所述缓存的所述中间件数据集合中提取并反馈对应的中间件数据,其中,所述待请求数据名称集合包括至少一个中间件对应的待请求数据名称。The middleware client is configured to acquire feature information related to the webpage to be loaded, and determine a to-be-requested data name set corresponding to the to-be-loaded webpage according to the feature information, and determine a target according to the middleware data request. a middleware, and determining, according to the target middleware and the to-be-requested data name set, a to-be-requested data name that needs to be acquired from the target middleware, and a pending request obtained from the target middleware according to the requirement And obtaining, by the target middleware, the corresponding middleware data set from the target middleware and buffering, and receiving the middleware data request sent to the target middleware again, extracting from the cached middleware data set The corresponding middleware data is fed back, wherein the to-be-requested data name set includes at least one middleware corresponding to-be-requested data name.
  7. 如权利要求6所述的从中间件请求数据的***,其特征在于,所述中间件客户端,还用于在所述待加载网页被第一次加载时记录向至少一个中间件发送的中间件数据请求及与所述待加载网页相关的特征信息,并根据所述记录的中间件数据请求生成所述待请求数据名称集合,并建立所述特征信息与所述待请求数据名称集合之间的关联关系。The system for requesting data from a middleware according to claim 6, wherein the middleware client is further configured to record an intermediate to the at least one middleware when the webpage to be loaded is loaded for the first time. a piece of data request and feature information related to the to-be-loaded webpage, and generating the to-be-requested data name set according to the recorded middleware data request, and establishing the feature information and the to-be-requested data name set Relationship.
  8. 如权利要求6或7所述的从中间件请求数据的***,其特征在于,所述特征信息为所述待加载页面的地址信息、请求所述待加载页面的用户的会员类型信息、所述待加载页面的名称、请求所述待加载页面的客户端信息、请求所述待加载页面的Cookie信息或者是所述网页服务器调用所述中间件客户端时的调用接口或参数。The system for requesting data from a middleware according to claim 6 or 7, wherein the feature information is address information of the page to be loaded, member type information of a user requesting the page to be loaded, The name of the page to be loaded, the client information requesting the page to be loaded, the cookie information requesting the page to be loaded, or the calling interface or parameter when the web server invokes the middleware client.
  9. 如权利要求6所述的从中间件请求数据的***,其特征在于,所述中间件客户端,还用于在将所述待加载网页所对应的待请求数据名称集合中全部待请求数据名称对应的中间件数据均反馈完毕之后,清空缓存。The system for requesting data from a middleware according to claim 6, wherein the middleware client is further configured to: in the data name to be requested corresponding to the to-be-loaded webpage, all the data names to be requested After the corresponding middleware data is fed back, the cache is cleared.
  10. 如权利要求6所述的从中间件请求数据的***,其特征在于,所述待加载页面需要调用多个中间件,所述待请求数据名称集合包括所述多个中间件分别对应的待请求数据名称。The system for requesting data from a middleware according to claim 6, wherein the to-be-loaded page needs to call a plurality of middleware, and the to-be-requested data name set includes the plurality of middleware respectively corresponding to be requested. The name of the data.
  11. 一种中间件客户端,其特征在于,包括:A middleware client, comprising:
    待请求数据名称集合确定模块,用于获取与待加载网页相关的特征信息,并根据所述特征信息确定所述待加载网页所对应的待请求数据名称集合,其中,所述待请求数据名称集合包括至少一个中间件对应的待请求数据名称;a to-be-requested data name set determining module, configured to acquire feature information related to a webpage to be loaded, and determine, according to the feature information, a to-be-requested data name set corresponding to the to-be-loaded webpage, wherein the to-be-requested data name set Include a data name to be requested corresponding to at least one middleware;
    目标中间件确定模块,用于接收中间件数据请求,并根据所述中间件数据请求确定目标中间件;a target middleware determining module, configured to receive a middleware data request, and determine a target middleware according to the middleware data request;
    待请求数据名称确定模块,用于根据所述目标中间件和所述待请求数据名称集合确定需要从所述目标中间件所获取的待请求数据名称;以及 a to-be-requested data name determining module, configured to determine, according to the target middleware and the to-be-requested data name set, a to-be-requested data name that needs to be acquired from the target middleware;
    中间件数据提供模块,用于根据所述需要从所述目标中间件所获取的待请求数据名称从所述目标中间件获取对应的中间件数据集合并缓存,其中,如果再次接收到向所述目标中间件发送的中间件数据请求则从所述缓存的所述中间件数据集合中提取并反馈对应的中间件数据。a middleware data providing module, configured to acquire a corresponding middleware data set from the target middleware and cache according to the to-be-requested data name acquired from the target middleware, wherein if the The middleware data request sent by the target middleware extracts and feeds back the corresponding middleware data from the cached middleware data set.
  12. 如权利要求11所述的中间件客户端,其特征在于,所述待请求数据名称集合确定模块,还用于当所述待加载网页被第一次加载时,记录向至少一个中间件发送的中间件数据请求及与所述待加载网页相关的特征信息,并根据所述记录的中间件数据请求生成所述待请求数据名称集合,并建立所述特征信息与所述待请求数据名称集合之间的关联关系。The middleware client according to claim 11, wherein the to-be-requested data name set determining module is further configured to: when the to-be-loaded webpage is loaded for the first time, record the sending to the at least one middleware a middleware data request and feature information related to the webpage to be loaded, and generating the to-be-requested data name set according to the recorded middleware data request, and establishing the feature information and the to-be-requested data name set The relationship between the two.
  13. 如权利要求11或12所述的中间件客户端,其特征在于,所述特征信息为所述待加载页面的地址信息、请求所述待加载页面的用户的会员类型信息、所述待加载页面的名称、请求所述待加载页面的客户端信息、请求所述待加载页面的Cookie信息或者是网页服务器调用中间件客户端时的调用接口或参数。The middleware client according to claim 11 or 12, wherein the feature information is address information of the page to be loaded, member type information of a user requesting the page to be loaded, and the to-be-loaded page. The name of the client, the client information requesting the page to be loaded, the cookie information requesting the page to be loaded, or the calling interface or parameter when the web server invokes the middleware client.
  14. 如权利要求11所述的中间件客户端,其特征在于,还包括:The middleware client of claim 11 further comprising:
    缓存管理模块,用于在将所述待加载网页所对应的待请求数据名称集合中全部待请求数据名称对应的中间件数据均反馈完毕之后,清空缓存。The cache management module is configured to clear the cache after all the middleware data corresponding to the data name to be requested in the to-be-requested data name set corresponding to the to-be-loaded webpage is fed back.
  15. 如权利要求11所述的中间件客户端,其特征在于,所述待加载页面需要调用多个中间件,所述待请求数据名称集合包括所述多个中间件分别对应的待请求数据名称。 The middleware client according to claim 11, wherein the to-be-loaded page needs to call a plurality of middlewares, and the to-be-requested data name set includes the to-be-requested data names respectively corresponding to the plurality of middlewares.
PCT/CN2016/073146 2015-02-10 2016-02-02 Method and system for requesting data from middleware, and middleware client WO2016127856A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510069814.5A CN105989070B (en) 2015-02-10 2015-02-10 Method and system for requesting data from middleware and middleware client
CN201510069814.5 2015-02-10

Publications (1)

Publication Number Publication Date
WO2016127856A1 true WO2016127856A1 (en) 2016-08-18

Family

ID=56615012

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073146 WO2016127856A1 (en) 2015-02-10 2016-02-02 Method and system for requesting data from middleware, and middleware client

Country Status (2)

Country Link
CN (1) CN105989070B (en)
WO (1) WO2016127856A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612983A (en) * 2021-01-07 2021-04-06 上海哔哩哔哩科技有限公司 Page access method and system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107196917B (en) * 2017-04-27 2020-02-14 威富通科技有限公司 Service response method and middleware thereof
CN110020349B (en) * 2017-09-26 2021-09-03 北京京东尚科信息技术有限公司 Page rendering method and device
CN107818022B (en) * 2017-10-25 2021-08-24 努比亚技术有限公司 Application program interface merging method, mobile terminal and computer readable storage medium
CN107729516A (en) * 2017-10-26 2018-02-23 北京百度网讯科技有限公司 Single page application methods of exhibiting and device, server, equipment and computer-readable recording medium
CN108459914B (en) * 2017-12-26 2021-01-01 深圳神州数码云科数据技术有限公司 Middleware command execution method and device
CN113742010A (en) * 2020-05-29 2021-12-03 北京沃东天骏信息技术有限公司 Page multi-language display method and device
CN113377784B (en) * 2021-08-13 2021-12-03 成都市维思凡科技有限公司 Data processing method, system and storage medium based on middleware

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583072A (en) * 2008-05-15 2009-11-18 北京凯思昊鹏软件工程技术有限公司 Middleware product for realizing Mobile Internet and method thereof
CN101632071A (en) * 2007-02-20 2010-01-20 雅虎公司 System and method for preloading content on the basis of user context
CN103685476A (en) * 2013-11-26 2014-03-26 优视科技有限公司 Method for displaying web pages by aid of web page templates and web page template server
CN103888456A (en) * 2014-03-18 2014-06-25 国家电网公司 Webpage client side, server side and data processing device and method
CN103905498A (en) * 2012-12-27 2014-07-02 鼎捷软件股份有限公司 Service information management method and service information management system
US8886764B2 (en) * 2009-09-30 2014-11-11 Systemite Ab Quick upload

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7752326B2 (en) * 2001-08-20 2010-07-06 Masterobjects, Inc. System and method for utilizing asynchronous client server communication objects
CN101661494B (en) * 2009-09-29 2012-06-20 莱芜钢铁集团有限公司 Data interactive method for distributed middleware and database
US11222001B2 (en) * 2013-03-15 2022-01-11 Sap Se Augmenting middleware communication services
CN103729440B (en) * 2013-12-30 2017-09-15 优视科技有限公司 A kind of method and device of access website

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101632071A (en) * 2007-02-20 2010-01-20 雅虎公司 System and method for preloading content on the basis of user context
CN101583072A (en) * 2008-05-15 2009-11-18 北京凯思昊鹏软件工程技术有限公司 Middleware product for realizing Mobile Internet and method thereof
US8886764B2 (en) * 2009-09-30 2014-11-11 Systemite Ab Quick upload
CN103905498A (en) * 2012-12-27 2014-07-02 鼎捷软件股份有限公司 Service information management method and service information management system
CN103685476A (en) * 2013-11-26 2014-03-26 优视科技有限公司 Method for displaying web pages by aid of web page templates and web page template server
CN103888456A (en) * 2014-03-18 2014-06-25 国家电网公司 Webpage client side, server side and data processing device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612983A (en) * 2021-01-07 2021-04-06 上海哔哩哔哩科技有限公司 Page access method and system

Also Published As

Publication number Publication date
CN105989070A (en) 2016-10-05
CN105989070B (en) 2020-01-17

Similar Documents

Publication Publication Date Title
WO2016127856A1 (en) Method and system for requesting data from middleware, and middleware client
US9323860B2 (en) Enhancing client-side object caching for web based applications
JP5980430B2 (en) Method, apparatus, computer program product, and computer program for managing a data cache for a computer system (managing a data cache for a computer system)
WO2016146023A1 (en) Distributed computing system and method
KR20080000656A (en) Method for optimisation of the management of a server cache which may be consulted by client terminals with differing characterictics
US20110047273A1 (en) System and method for managing relationships among resources
KR20130107280A (en) Directory leasing
KR20090125108A (en) System and method for preloading content on the basis of user context
TW201711432A (en) Method and equipment making health check of server characterized in that the health check times are reduced and the burden on the server caused by the health check is relieved
JP6546192B2 (en) Method and system for bandwidth dependent file transfer
US20120259945A1 (en) System and method for dynamically modifying content based on user expectations
JP2016520900A (en) Integration of cloud services for online sharing
CN110851680A (en) Web crawler identification method and device
US9401003B2 (en) Just-in-time processing of images
US20160182673A1 (en) Dynamic cache injector
CN112069386B (en) Request processing method, device, system, terminal and server
US20180165018A1 (en) Partial storage of large files in distinct storage systems
JP7217181B2 (en) WEARABLE DEVICE, INFORMATION PROCESSING METHOD, APPARATUS AND SYSTEM
CN104281486B (en) A kind of virtual machine treating method and apparatus
US10616291B2 (en) Response caching
US10015012B2 (en) Precalculating hashes to support data distribution
US20120200951A1 (en) Content duplication device and content duplication system
CN110807040B (en) Method, device, equipment and storage medium for managing data
CN113438302A (en) Dynamic resource multi-level caching method, system, computer equipment and storage medium
CN104978339A (en) File processing method and equipment, and network system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16748657

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16748657

Country of ref document: EP

Kind code of ref document: A1