A kind of application module integrated approach and device

文档序号:1744548 发布日期:2019-11-26 浏览:4次 中文

阅读说明:本技术 一种应用模块化集成方法和装置 (A kind of application module integrated approach and device ) 是由 王宝令 者文明 史季强 刘美德 韩博渊 于 2018-05-17 设计创作,主要内容包括:本发明公开了一种应用模块化集成方法和装置,涉及计算机技术领域。该方法的一具体实施方式包括:接收数据传输请求,所述数据传输请求中包括URL路径;根据所述URL路径和预设的与所述URL路径匹配的配置策略,确定应用实例;将所述数据传输请求通过网关发送至所述应用实例。该实施方式基于网关技术和配置策略,可以细粒度地控制HTTP请求的转发,可以实现大型Web应用的模块化集成,Web应用通过网关提供服务,在多个页面中调用且不存在跨域问题,解决现有系统的跨域数据共享问题。同时可以实现以单个页面作为最小单元进行开发、测试、部署,即页面为集成的最小单位,支持每个页面独立部署,可以很好的对故障进行隔离。(The invention discloses a kind of application module integrated approach and devices, are related to field of computer technology.One specific embodiment of this method includes: reception data transfer request, includes the path URL in the data transfer request;According to the path URL and preset and URL route matching configuration strategy, application example is determined;The data transfer request is sent to the application example by gateway.The embodiment is based on gateway technique and configuration strategy, it can with fine granularity control the forwarding of HTTP request, the modularization that large Web application may be implemented is integrated, Web, which is applied, provides service by gateway, Cross-domain problem is called and be not present in multiple pages, solves the cross-domain data sharing problem of existing system.It may be implemented to be developed using the single page as minimum unit, test, dispose simultaneously, i.e., the page is integrated minimum unit, supports each page independently to dispose, can be very good that failure is isolated.)

1. a kind of application module integrated approach characterized by comprising

Data transfer request is received, includes the path URL in the data transfer request;

According to the path URL and preset and URL route matching configuration strategy, application example is determined;

The data transfer request is sent to the application example by gateway.

2. the method according to claim 1, wherein the configuration strategy includes routing policy and load balancing plan Slightly;

According to the path URL and preset and URL route matching configuration strategy, application example is determined, comprising:

According to the path URL and routing policy, is determined from application cluster and apply sub-cluster;It include more in the application cluster It is a to apply sub-cluster;

According to the path URL and load balancing, application example is determined from the application sub-cluster.

3. according to the method described in claim 2, it is characterized in that, according to the path URL and routing policy, from application cluster It is middle determining using sub-cluster, comprising:

The path URL is matched with the child node of the tree structure;Wherein, the tree structure is according to routing plan Slightly conversion obtains, and includes the identification information of URL routing information and application cluster in each child node of the tree structure;

If the URL routing information successful match in the path URL and child node, using the corresponding application cluster of the child node as Destination subset group, so that it is determined that using sub-cluster.

4. according to the method described in claim 3, it is characterized in that, according to the path URL and routing policy, from application cluster It is middle determining using sub-cluster, further includes:

If it fails to match for the URL routing information of the path URL and child node, by the path URL and the child node The URL routing information of next stage child node is matched;

If the URL routing information successful match of the next stage child node of the path URL and the child node, by the sub- section The corresponding application cluster of next stage child node of point is as destination subset group, so that it is determined that using sub-cluster;If the path URL It fails to match with the URL routing information of the next stage child node of the child node, then by the corresponding application cluster of the child node As destination subset group, so that it is determined that using sub-cluster.

5. a kind of application module integrating device characterized by comprising receiving unit, configuration unit and gateway unit;

The receiving unit, is used for: receiving data transfer request, includes the path URL in the data transfer request;

The configuration unit, is used for: according to the path URL and preset and URL route matching configuration strategy, determining Application example;

The gateway unit, is used for: the data transfer request is sent to the application example by gateway.

6. device according to claim 5, which is characterized in that the configuration strategy includes routing policy and load balancing plan Slightly;

The configuration unit, is used for:

According to the path URL and routing policy, is determined from application cluster and apply sub-cluster;It include more in the application cluster It is a to apply sub-cluster;

According to the path URL and load balancing, application example is determined from the application sub-cluster.

7. device according to claim 6, which is characterized in that the configuration unit is also used to:

The path URL is matched with the child node of the tree structure;Wherein, the tree structure is according to routing plan Slightly conversion obtains, and includes the identification information of URL routing information and application cluster in each child node of the tree structure;

If the URL routing information successful match in the path URL and child node, using the corresponding application cluster of the child node as Destination subset group, so that it is determined that using sub-cluster.

8. device according to claim 7, which is characterized in that the configuration unit is also used to:

If it fails to match for the URL routing information of the path URL and child node, by the path URL and the child node The URL routing information of next stage child node is matched;

If the URL routing information successful match of the next stage child node of the path URL and the child node, by the sub- section The corresponding application cluster of next stage child node of point is as destination subset group, so that it is determined that using sub-cluster;If the path URL It fails to match with the URL routing information of the next stage child node of the child node, then by the corresponding application cluster of the child node As destination subset group, so that it is determined that using sub-cluster.

9. a kind of electronic equipment characterized by comprising

One or more processors;

Storage device, for storing one or more programs,

When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-4.

10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-4 is realized when row.

Technical field

The present invention relates to field of computer technology more particularly to a kind of application module integrated approaches and device.

Background technique

Very more in some Large-Scale Interconnected net enterprises IT systems, the relationship between system is intricate, each system Technology path it is also different, and these systems are all independently disposed, using independent domain name, the UI interactive mode of each system It is widely different.In order to make these systems be enable to respond quickly business demand, system is carried out currently with Distributed Services thinking Modularization is integrated to achieve preferable effect, but this method is only limitted to service application, such as to large Web application (or Web Application cluster) at present mainly portal website in a manner of hyperlink by each system integration together.

In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:

1. the system of different domain names carries out data sharing on a web browser, Cross-domain problem is had.

2. integrated minimum unit is system, this granularity is too thick, will lead to scalability is poor, single-sign-on can not be solved and The problems such as access control.

3. this mode user experience of portal website is poor, user is every to open a link, requires to reopen one A browser window.

Summary of the invention

In view of this, the embodiment of the present invention provides a kind of application module integrated approach and device, based on gateway technique and Configuration strategy can with fine granularity control the forwarding of data transfer request, realize that the modularization of large Web application is integrated, Web is answered Service is provided with by gateway, Cross-domain problem is called and be not present in multiple pages, the cross-domain data for solving existing system is total Enjoy problem.It may be implemented to be developed using the single page as minimum unit, test, dispose simultaneously, i.e., the page is to integrate most Subsection, is entirely loosely coupled architecture between the page, and the development phase difference page can use different technology paths, run rank Section supports each page independently to dispose, and can be very good that failure is isolated.

To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of integrated side of application moduleization is provided Method, comprising: receive data transfer request, include the path URL in the data transfer request;According to the path URL and preset The configuration strategy with the URL route matching, determine application example;The data transfer request is sent to institute by gateway State application example.

Optionally, the configuration strategy includes routing policy and load balancing;According to the path URL and preset With the configuration strategy of the URL route matching, application example is determined, comprising: according to the path URL and routing policy, from answering Sub-cluster is applied with determining in cluster;It include multiple using sub-cluster in the application cluster;According to the path URL and load Balance policy determines application example from the application sub-cluster.

Optionally, it according to the path URL and routing policy, is determined from application cluster and applies sub-cluster, comprising: by institute The path URL is stated to be matched with the child node of the tree structure;Wherein, the tree structure is converted according to routing policy It arrives, includes the identification information of URL routing information and application cluster in each child node of the tree structure;If the URL The URL routing information successful match in path and child node, then using the corresponding application cluster of the child node as destination subset group, from And it determines using sub-cluster.

Optionally, it according to the path URL and routing policy, is determined from application cluster and applies sub-cluster, further includes: if It fails to match for the URL routing information of the path URL and child node, then by the next stage in the path URL and the child node The URL routing information of child node is matched;If the path URL of the next stage child node of the path URL and the child node Information matches success, then using the corresponding application cluster of next stage child node of the child node as destination subset group, thus really Surely sub-cluster is applied;If it fails to match for the URL routing information of the next stage child node of the path URL and the child node, Using the corresponding application cluster of the child node as destination subset group, so that it is determined that using sub-cluster.

To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of integrated dress of application moduleization is provided It sets, comprising: receiving unit, configuration unit and gateway unit;The receiving unit, is used for: receiving data transfer request, the number It include the path URL in request according to transmitting;The configuration unit, is used for: according to the path URL and the preset and road URL The matched configuration strategy of diameter, determines application example;The gateway unit, is used for: the data transfer request is sent out by gateway It send to the application example.

Optionally, the configuration strategy includes routing policy and load balancing;The configuration unit, is used for: according to The path URL and routing policy determine from application cluster and apply sub-cluster;It include multiple application in the application cluster Cluster;According to the path URL and load balancing, application example is determined from the application sub-cluster.

Optionally, the configuration unit, is also used to: by the progress of the child node of the path URL and the tree structure Match;Wherein, the tree structure is converted according to routing policy, includes in each child node of the tree structure The identification information of URL routing information and application cluster;If the URL routing information successful match in the path URL and child node, Using the corresponding application cluster of the child node as destination subset group, so that it is determined that using sub-cluster.

Optionally, the configuration unit, is also used to: if the path URL matches mistake with the URL routing information of child node It loses, then matches in the path URL with the URL routing information of the next stage child node of the child node;If the road URL The URL routing information successful match of the next stage child node of diameter and the child node, then by the next stage section of the child node The corresponding application cluster of point is as destination subset group, so that it is determined that using sub-cluster;If the path URL and the child node It fails to match for the URL routing information of next stage child node, then using the corresponding application cluster of the child node as destination subset group, So that it is determined that using sub-cluster.

To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of electronic equipment, comprising: One or more processors;Storage device, for storing one or more programs, when one or more of programs are by described one A or multiple processors execute, so that one or more of processors realize the application module collection that the embodiment of the present invention proposes At method.

To achieve the above object, another aspect according to an embodiment of the present invention provides a kind of computer-readable medium, It is stored thereon with computer program, the application module collection that the embodiment of the present invention proposes is realized when described program is executed by processor At method.

One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that based on gateway technique and configuration strategy, The forwarding that can with fine granularity control data transfer request realizes that the modularization of large Web application is integrated, and Web application passes through net Offer service is provided, Cross-domain problem is called and be not present in multiple pages, solves the cross-domain data sharing problem of existing system.Together When may be implemented to be developed using the single page as minimum unit, test, dispose, i.e., the page is integrated minimum unit, branch It holds each page independently to dispose, can be very good that failure is isolated.

Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.

Detailed description of the invention

Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:

Fig. 1 is the schematic diagram that gateway is mainly used in reverse proxy;

Fig. 2 is the technical schematic diagram of the application module integrated approach of the embodiment of the present invention;

Fig. 3 is the schematic diagram of the basic procedure of application module integrated approach according to an embodiment of the present invention;

Fig. 4 is the routing configuration exemplary diagram of application module integrated approach according to an embodiment of the present invention;

Fig. 5 is the schematic diagram of the basic module of application module integrating device according to an embodiment of the present invention;

Fig. 6 is the schematic diagram of the preferred module of application module integrating device according to an embodiment of the present invention;

Fig. 7 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;

Fig. 8 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.

Specific embodiment

Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.

Traditional three-tier architecture has Web service layer, application service layer and a data service layer, Web application layer mainly solve with The interaction problems (such as login interface) of browser, application service layer mainly progress business logic processing (such as log in and patrol Volume), application service layer can carry out fine-grained fractionation, there is very mature scheme at present.Application on Web service layer is Web Using.

HTTP gateway is a kind of special server, it receives HTTP request between browser and Web application, and According to certain routing policy, Web is forwarded to using upper.Traditional HTTP gateway is often used as reverse proxy, solves performance bottle Neck.As shown in Figure 1, gateway as reverse proxy, HTTP request can be forwarded according to load balancing (poll, random, Kazakhstan Wish) it is forwarded on certain machine of Web application example a, Web application example b, Web application example c, this skill of reverse proxy In art scheme, the Web application of gateway proxy is only that the same application deploys multiple examples, i.e. example a, example b, example c Substantially be a code compilation come out (in the case of gray scale publication, can there is the difference in version, but substantially or one A application).

About Cross-domain problem, the considerations of JavaScript is for secure context, cross-domain pair for calling other pages is not allowed As that is, homologous policy.It is so-called " homologous " to refer to that agreement is identical, domain name is identical, port is identical.The purpose of origin policy be in order to Guarantee the safety of user information.Prevent the website of malice from stealing data.

The technology of the present invention realization principle, can as shown in Fig. 2, traditional reverse proxy gateway is upgraded to URL routing gateway Subtly different URL are implemented with different routing policies, such as can the request of right/urlA beginning be forwarded to Web application A collection The request of group, right/urlB beginning are forwarded to Web application B cluster, and cluster A and cluster B can be different application, while can be with Different URL are configured with different load balancings, the load balancing of such as right/urlA configuration poll, and right/urlB configuration The load balancing of Hash.

Fig. 3 is the schematic diagram of the basic procedure of application module integrated approach according to an embodiment of the present invention, such as Fig. 3 institute Show, the embodiment of the invention provides a kind of application module integrated approaches, comprising:

Step S301. receives data transfer request, includes URL (Uniform Resource in the data transfer request Locator, uniform resource locator) path or address;

Step S302. determines application according to the path URL and preset and URL route matching configuration strategy Example;

The data transfer request is sent to the application example by gateway by step S303..

Wherein, data transfer request can include but is not limited to be HTTP request, and HTTP request refers to from client to clothes The solicited message at business device end.The embodiment of the present invention is based on gateway technique and configuration strategy, can with fine granularity control data transmission The forwarding of request realizes that the modularization of large Web application is integrated, and Web, which is applied, provides service by gateway, adjusts in multiple pages With and there is no Cross-domain problem, the cross-domain data sharing problem of existing system is solved.Simultaneously may be implemented using the single page as Minimum unit is developed, is tested, is disposed, i.e., the page is integrated minimum unit, is entirely loosely coupled architecture between the page, is opened The hair stage difference page can use different technology paths, and the operation phase supports each page independently to dispose, can be very good Failure is isolated.

In the embodiment of the present invention, the configuration strategy includes routing policy and load balancing;According to the path URL With preset and URL route matching configuration strategy, application example is determined, comprising: according to the path URL and routing plan Slightly, it is determined from application cluster and applies sub-cluster;It include multiple using sub-cluster in the application cluster;According to the road URL Diameter and load balancing determine application example from the application sub-cluster.For example, multiple Web application sub-clusters constitute One large-scale Web application cluster;Routing policy refers to the corresponding relationship in the path URL and application sub-cluster, load balancing Refer to the corresponding relationship of application example in the path URL and application sub-cluster.The embodiment of the present invention is based on specific configuration strategy, can The forwarding for fine granularity controlling data transfer request realizes that the modularization of large Web application is integrated.

In the embodiment of the present invention, according to the path URL and routing policy, is determined from application cluster and applies sub-cluster, It include: to match in the path URL with the child node of the tree structure;Wherein, the tree structure is according to routing Strategy conversion obtains, and includes the identification information of URL routing information and application cluster in each child node of the tree structure; If the URL routing information successful match in the path URL and child node, the mark of the application cluster in the child node is believed Corresponding application cluster is ceased as destination subset group, so that it is determined that using sub-cluster.The embodiment of the present invention using tree structure into The matching in the path row URL can more accurately control the forwarding of data transfer request, realize the modularization collection of large Web application At.

In the embodiment of the present invention, according to the path URL and routing policy, is determined from application cluster and applies sub-cluster, If further include: it fails to match for the URL routing information of the path URL and child node, by the path URL and the child node The URL routing information of next stage child node matched;If the next stage child node of the path URL and the child node URL routing information successful match, then using the corresponding application cluster of next stage child node of the child node as destination subset group, So that it is determined that using sub-cluster;If the path URL matches mistake with the URL routing information of the next stage child node of the child node It loses, then using the corresponding application cluster of the child node as destination subset group, so that it is determined that using sub-cluster.The embodiment of the present invention The Matching supporting in the middle path URL, which retracts, to be matched, and the forwarding of data transfer request can be more accurately controlled, and realizes that large-scale Web is answered Modularization is integrated.It can also realize that user only can call each Web application example by a browser window simultaneously.

Tree structure is converted by routing policy, each child node of tree structure includes including URL routing information and application The identification information of cluster.As shown in 4 figures, the path URL is the HTTP request of "/levelA ", and can be routed to clustered node is 192.168.1.8 on the application cluster of 192.168.1.9.The matching rule in the path URL supports the matching that retracts, this to support back The matching way moved back has good flexibility.As shown in table 1, the path URL is the HTTP request of "/levelA ", with the road URL Diameter information "/levelA " exact matching, so being matched the application that clustered node is 192.168.1.8 and 192.168.1.9 On cluster.The path URL is the HTTP request of "/levelA/abc ", because can not find the URL routing information of exact matching, matching Failure, so the corresponding cluster of higher level's child node "/levelA " that can retract.

The path URL is the correspondence Web application X cluster of "/levelA/levelB ", if to increase related function to using X Can, and it is not desired to continue exploitation (possible application X is very huge, or just intends to reconstruct using X) on application X, it can be again Exploitation one is applied Y, adds a new routing policy:

The corresponding cluster in the path URL "/levelA/levelB/levelC " is using Y cluster, the clustered node are as follows: 192.168.1.100,192.168.1.101.So in logic, correlation function both is increased to using X, and is physically two Using being independent of each other.All pass through a domain name (domain name of gateway) offer service using X and using Y simultaneously, therefore in browser End, using the service that Y can be provided with direct request application X, it (is the same domain using X and application Y that Cross-domain problem, which may be not present, Name).

1 matched routings sample table of table

As shown in table 2, the configuration of load balancing, and it is corresponding with the path URL, meanwhile, equal in conventional load On the basis of weighing apparatus strategy, it joined fusing strategy and current limliting strategy, can further ensure the safety of system behind gateway.

2 load balancing configuration example table of table

Fig. 5 is the schematic diagram of the basic module of application module integrating device according to an embodiment of the present invention, such as Fig. 5 institute Show, the embodiment of the invention provides a kind of application module integrating devices 500, comprising: receiving unit 501,502 and of configuration unit Gateway unit 503;The receiving unit 501, is used for: receiving data transfer request, includes the road URL in the data transfer request Diameter;The configuration unit 502, is used for: according to the path URL and preset and URL route matching configuration strategy, really Determine application example;The gateway unit 503, is used for: the data transfer request is sent to the application example by gateway. Wherein, the embodiment of the present invention is based on gateway technique and configuration strategy, can with fine granularity control the forwarding of data transfer request, real The modularization of existing large Web application is integrated, and Web, which is applied, provides service by gateway, called in multiple pages and be not present across Domain problem solves the cross-domain data sharing problem of existing system.It may be implemented to carry out using the single page as minimum unit simultaneously Exploitation, test, deployment, the i.e. page be the minimum unit integrated, are entirely loosely coupled architecture between the page, development phase not same page Face can use different technology paths, and the operation phase supports each page independently dispose, can be very good to failure progress every From.

In the embodiment of the present invention, the configuration strategy includes routing policy and load balancing;The configuration unit 502, it is used for: according to the path URL and routing policy, being determined from application cluster and apply sub-cluster;In the application cluster Sub-cluster is applied including multiple;According to the path URL and load balancing, determine that application is real from the application sub-cluster Example.For example, multiple Web application sub-clusters constitute a large-scale Web application cluster;Routing policy refers to the path URL and answers With the corresponding relationship of sub-cluster, load balancing refers to the corresponding relationship of application example in the path URL and application sub-cluster.This Inventive embodiments are based on specific configuration strategy, can with fine granularity control the forwarding of data transfer request, realize that large-scale Web is answered Modularization is integrated.

In the embodiment of the present invention, the configuration unit 502 is also used to: by the son in the path URL and the tree structure Node is matched;Wherein, the tree structure is converted according to routing policy, every height section of the tree structure It include the identification information of URL routing information and application cluster in point;If the URL routing information in the path URL and child node With success, then using the corresponding application cluster of the child node as destination subset group, so that it is determined that using sub-cluster.The present invention is implemented Example can more accurately control the forwarding of data transfer request using the matching that tree structure carries out the path URL, realize large-scale Web The modularization of application is integrated.

In the embodiment of the present invention, the configuration unit 502 is also used to: if the path URL in the path URL and child node Information matches failure, then match in the path URL with the URL routing information of the next stage child node of the child node; If the URL routing information successful match of the next stage child node of the path URL and the child node, by the child node The corresponding application cluster of next stage child node is as destination subset group, so that it is determined that using sub-cluster;If the path URL and institute Stating the URL routing information of the next stage child node of child node, it fails to match, then using the corresponding application cluster of the child node as Destination subset group, so that it is determined that using sub-cluster.The Matching supporting of Web application example, which retracts, in the embodiment of the present invention matches, can To more accurately control the forwarding of data transfer request, realize that the modularization of large Web application is integrated.

Fig. 6 is the schematic diagram of the preferred module of application module integrating device according to an embodiment of the present invention, such as Fig. 6 institute Show, it includes URL routing configuration component and load balancing in configuration unit that described device, which mainly includes gateway, configuration unit, Configuration component.URL routing configuration component generates routing policy, is responsible for URL routing configuration and Route Selection, load balancing are matched It sets component to be responsible for generating the selection of the load balancing of different clusters and clustered node (application example), gateway is responsible for HTTP Request is forwarded on specific Web application example, to select Web answer according to the routing policy of URL routing configuration component when forwarding With sub-cluster, Web application example is selected according to load balancing.

URL routing configuration and load balancing configuration, can be only fitted on the server of concentration, dispose more nets in this way Guan Shi, can be from pulling data in the configuration server of concentration.Configuration is changed in the configuration server of concentration, then all It all comes into force on gateway.URL routing configuration component and load balancing configuration component can be packaged with deployment with gateway, It can also individually dispose.Individually when deployment, it is necessary to and gateway deployment, on same server, gateway will by local Socket Request is forwarded to load balancing component, then is forwarded on destination server by load balancing component.

Fig. 7 shows the application module integrated approach or application module integrating device that can apply the embodiment of the present invention Exemplary system architecture 700.

As shown in fig. 7, system architecture 700 may include terminal device 701,702,703, network 704 and server 705. Network 704 between terminal device 701,702,703 and server 705 to provide the medium of communication link.Network 704 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..

User can be used terminal device 701,702,703 and be interacted by network 704 with server 705, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 701,702,703 The application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform software etc..

Terminal device 701,702,703 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..

Server 705 can be to provide the server of various services, such as utilize terminal device 701,702,703 to user The shopping class website browsed provides the back-stage management server supported.Back-stage management server can believe the product received The data such as breath inquiry request carry out the processing such as analyzing, and processing result such as target push information is fed back to terminal device.

It should be noted that application module integrated approach provided by the embodiment of the present invention is generally held by server 705 Row, correspondingly, application module integrating device is generally positioned in server 705.

It should be understood that the number of terminal device, network and server in Fig. 7 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.

According to an embodiment of the invention, the present invention also provides a kind of electronic equipment and a kind of computer-readable medium.

The electronic equipment of the embodiment of the present invention includes: one or more processors;Storage device, for storing one or more A program, when one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the application module integrated approach that the embodiment of the present invention proposes.

The computer-readable medium of the embodiment of the present invention, the computer-readable medium are stored thereon with computer program, State the application module integrated approach for realizing that the embodiment of the present invention proposes when program is executed by processor.

Below with reference to Fig. 8, it illustrates the computer systems 800 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 8 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.

As shown in figure 8, computer system 800 includes central processing unit (CPU) 801, it can be read-only according to being stored in Program in memory (ROM) 802 or be loaded into the program in random access storage device (RAM) 803 from storage section 808 and Execute various movements appropriate and processing.In RAM 803, also it is stored with system 800 and operates required various programs and data. CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always Line 804.

I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon Computer program be mounted into storage section 808 as needed.

Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.In In such embodiment, which can be downloaded and installed from network by communications portion 809, and/or from can Medium 811 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 801, system of the invention is executed The above-mentioned function of middle restriction.

It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.

Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one unit of table, program segment or code, a part of said units, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.

Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor, packet It includes: receiving unit, configuration unit and gateway unit.Wherein, the title of these units is not constituted under certain conditions to the list The restriction of member itself, for example, receiving unit is also described as " transmitting the unit of request for receiving data ".

As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: that step S301. receives data transfer request, includes the path URL or address in the data transfer request;Step Rapid S302. determines application example according to the path URL and preset and URL route matching configuration strategy;Step S303. the data transfer request is sent to the application example by gateway.

The embodiment of the present invention is based on gateway technique and configuration strategy, can with fine granularity control turning for data transfer request Hair, the modularization that large Web application may be implemented is integrated, and Web, which is applied, provides service by gateway, in multiple pages calling and There is no Cross-domain problems, solve the cross-domain data sharing problem of existing system.It is may be implemented simultaneously using the single page as minimum Unit is developed, is tested, is disposed, i.e., it is entirely loosely coupled architecture between the page that the page, which is integrated minimum unit, develops rank The Duan Butong page can use different technology paths, and the operation phase supports each page independently to dispose, and can be very good to event Barrier is isolated.

Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:设备管理方法及相关设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!