CN109710878A - Data interactive method and server - Google Patents

Data interactive method and server Download PDF

Info

Publication number
CN109710878A
CN109710878A CN201811631619.7A CN201811631619A CN109710878A CN 109710878 A CN109710878 A CN 109710878A CN 201811631619 A CN201811631619 A CN 201811631619A CN 109710878 A CN109710878 A CN 109710878A
Authority
CN
China
Prior art keywords
interface
server
request
proxy server
agent rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811631619.7A
Other languages
Chinese (zh)
Inventor
刘银涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Best Technology Co Ltd
Original Assignee
Beijing Best Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Best Technology Co Ltd filed Critical Beijing Best Technology Co Ltd
Priority to CN201811631619.7A priority Critical patent/CN109710878A/en
Publication of CN109710878A publication Critical patent/CN109710878A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of data interactive method and servers, are related to server development technique field, are applied to proxy server, and proxy server and interface server are located at same Intranet, comprising: receive the request that user terminal is sent;By the request analysis it is multiple interaction requests according to default agent rule, sends the multiple interaction request to interface server;Receive multiple interaction results that the interface server returns;The multiple interaction results are merged according to the default agent rule, and are sent to the user terminal;The default agency includes merging, assembly, the publication of interface.The interface of various single types is merged using proxy server, the long-range network number of requests under complex scene can be reduced in software systems in the prior art, the execution efficiency of program is increased, effectively improve software responses speed, the user experience is improved.

Description

Data interactive method and server
Technical field
The present invention relates to server development technique fields, more particularly, to a kind of data interactive method and server.
Background technique
After entering Internet era comprehensively, application software system Internet-based has become Current software exploitation neck The mainstream in domain is based on mobile interchange especially under the widely available of the mobile terminals such as mobile phone, tablet computer and the background used The application software system of net is also gradually towards diversification, complication development.
Internet works software system includes front-end and back-end, and front end portion is used to show interface to user, with webpage or mobile phone The application program page is carried;Rear end part is calculated for business and data statistics, is carried with server.Front end is with after The direct interaction in end, uses application programming interface (Application Programming Interface, abbreviation API) It carries out.API is some functions predetermined, and application program need to only call these functions that the corresponding function of the interface can be realized Can, without being concerned about working mechanism and the details of these functions.
In existing internet works software system, the scene of front end becomes increasingly complex, and business demand is also more and more, current Processing mode is that back-end services provide the data-interface of various single types, and front end carries out continuous long range net to these interfaces respectively Network request, the data for obtaining multiple returns are shown.Since long-range network request is more, once need a large amount of data to ask It will lead to that transmission time is longer, and software responses are slower when asking, user experience is poor.In the unstable situation of mobile network, greatly The request of data of amount will increase the risk of request of data failure, lead to the problem that user experience is poor.
Summary of the invention
In view of this, utilizing proxy server the purpose of the present invention is to provide a kind of data interactive method and server The interface of various single types is merged, the long-range network under complex scene can be reduced in software systems in the prior art The quantity of request increases the execution efficiency of program, effectively improves software responses speed, promotes user experience.
In a first aspect, being applied to proxy server, agency service the embodiment of the invention provides a kind of data interactive method Device and interface server are located at same Intranet;Wherein, it the described method comprises the following steps:
Receive the request that user terminal is sent;
By request analysis it is multiple interaction requests according to default agent rule, sends multiple interactions to interface server and ask It asks;
Multiple interaction results that receiving interface server returns;
Multiple interaction results are merged according to default agent rule, and are sent to the user terminal;
Default agency includes merging, assembly, the publication of interface.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein connects Before the request for receiving user terminal transmission, further includes:
The default agent rule that defining interface merges.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect Possible embodiment, wherein the default agent rule that defining interface merges, comprising:
The web program page is provided;
According to administrator by the operational order inputted on the web program page, default agent rule is generated.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides the third of first aspect Possible embodiment, wherein before the default agent rule that defining interface merges, further includes:
The scan path of interface is scanned, interface message is obtained;
Interface message is registered in ZooKeeper.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect Possible embodiment, wherein the scan path of interface is scanned, obtained interface message, comprising:
Class under scan path is scanned, class note is judged whether there is;
If explained without class, stop scanning;
If there is class is explained, then method scanning is carried out to the class for having note;
If explained without method, stop scanning;
If there is method is explained, then parsing operation is carried out to interface structure, obtain interface message.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 5th kind of first aspect Possible embodiment, wherein institute's interface message is registered to after ZooKeeper, comprising:
The variation of ZooKeeper node is monitored, the ZooKeeper time is obtained;
Judge the nodal community of ZooKeeper event;
If nodal community is transient node, new lasting node is generated;
Compare new lasting node and whether current lasting node is identical;
If it is different, then more new interface.
Second aspect, the embodiment of the present invention also provide a kind of proxy server, and proxy server is located at interface server Same Intranet, proxy server include service module;
Service module is used for, and receives the request that user terminal is sent;According to default agent rule by request analysis be multiple friendships Mutually request sends multiple interaction requests to interface server;Multiple interaction results that receiving interface server returns;According to default Agent rule merges the multiple interaction results, and is sent to the user terminal;
Wherein, default agent rule includes merging, assembly, the publication of interface.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein also Include:
Management module, the default agent rule merged for defining interface.
In conjunction with the first possible embodiment of second aspect, the embodiment of the invention provides second of second aspect Possible embodiment, wherein further include:
Registration module is scanned for the scan path to interface, obtains interface message;Interface message is registered to In ZooKeeper.
In conjunction with second of possible embodiment of second aspect, the embodiment of the invention provides the third of second aspect Possible embodiment, wherein registration module, including thread pool and worker thread, wherein
Thread pool includes: class thread pool, method thread pool, interface thread pool;
Worker thread includes: class scanner thread, method scanner thread, method interpreter thread, interface registration thread.
The embodiment of the present invention bring it is following the utility model has the advantages that
The embodiment of the invention provides a kind of data interactive method and servers, are applied to proxy server, the agency Server and interface server are located at same Intranet;It the described method comprises the following steps: receiving the request that user terminal is sent;According to The request analysis is multiple interaction requests by default agent rule, sends the multiple interaction request to interface server;It connects Receive multiple interaction results that the interface server returns;The multiple interaction results are carried out according to the default agent rule Merge, and is sent to the user terminal;The default agency includes merging, assembly, the publication of interface.The embodiment of the present invention utilizes The interface of various single types is merged in proxy server, can reduce software in the prior art by default agent rule The quantity that long-range network is requested under complex scene in system, increases the execution efficiency of program, effectively improves software and rings Speed is answered, the user experience is improved.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of data interactive method provided in an embodiment of the present invention;
Fig. 2 is the structure chart of proxy server provided in an embodiment of the present invention;
Fig. 3 is interface discovery and register flow path figure in client modules provided in an embodiment of the present invention;
Fig. 4 is that interface provided in an embodiment of the present invention finds flow chart;
Fig. 5 is interface persistence flow chart provided in an embodiment of the present invention;
Fig. 6 is interface persistence structure chart provided in an embodiment of the present invention;
Fig. 7 is the structure chart of interface proxy provided in an embodiment of the present invention;
Fig. 8 is data interaction server schematic diagram provided in an embodiment of the present invention;
Fig. 9 is registration module structure chart provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
After entering Internet era comprehensively, application software system Internet-based has become Current software exploitation neck The mainstream in domain is based on mobile interchange especially under the widely available of the mobile terminals such as mobile phone, tablet computer and the background used The application software system of net is also gradually towards diversification, complication development.Internet works software system includes front-end and back-end, front end Part is carried for showing interface to user with webpage or the application program of mobile phone page;Rear end part is calculated for business And data statistics, it is carried with server.Front-end and back-end directly interact, and use application programming interface (Application Programming Interface, abbreviation API) is carried out.API is some functions predetermined, application Program need to only call these functions that the corresponding function of the interface can be realized, without being concerned about the working mechanism of these functions and thin Section.In existing internet works software system, the scene of front end becomes increasingly complex, and business demand is also more and more, current processing Mode is that back-end services provide the data-interface of various single types, and front end, which carries out continuous long-range network to these interfaces respectively, to be asked It asks, the data for obtaining multiple returns are shown.Since long-range network request is more, when needing a large amount of request of data It is longer to will lead to transmission time, software responses are slower, and user experience is poor.In the unstable situation of mobile network, largely Request of data will increase the risk of request of data failure, the problem for causing the usage experience of user poor.
In view of this, the embodiment of the present invention is designed to provide a kind of data interactive method and server, agency is utilized Server merges the interface of various single types, can reduce grown under complex scene in software systems in the prior art away from Quantity from network request increases the execution efficiency of program, effectively improves software responses speed, promotes user experience.
Embodiment one:
The flow chart of data interactive method shown in Figure 1, this method are applied to proxy server, including following step It is rapid:
Step S101: the request that user terminal is sent is received.
User terminal sends request in the form that long-range network is requested, and is received by proxy server.Wherein, user terminal issues Request use traditional side Ajax (Asynchronous Javascript And XML, asynchronous JavaScript and XML) Formula, the data of request are JSON (JavaScript Object Notation, JS object numbered musical notation) or XML file.Long range net Network request refers to the request of data carried out using external the Internet, such as carried out in mobile device using mobile communications network Request of data, but the network state of long-range network request is influenced more by external factor, and network state not can guarantee.
Step S102: according to default agent rule by request analysis be multiple interaction requests, to interface server send it is more A interaction request.
Wherein, agent rule is the interface union operation carried out according to business scenario, merging, assembly including interface, hair Cloth.The primary request of user terminal can be parsed to obtain multiple steps according to agent rule;It can also will be obtained from interface server To multiple return the result merge.
Step S103: multiple interaction results that receiving interface server returns.
Interface server has received after multiple interaction requests that proxy server issues, successively from corresponding interface Respective response results are obtained, these response results are back to proxy server.
Step S104: multiple interaction results are merged according to default agent rule, and are sent to the user terminal.
After proxy server receives these response results, according to default agent rule, response results are merged, so It is uniformly back to user terminal afterwards.
By the above method, in the request for needing to realize multi-step, user terminal need to only have sent primary request, just from connecing Multiple request effects have been obtained in mouth server, the execution efficiency of program has been increased, effectively improves software responses speed, have been promoted User experience.
Fig. 2 is the structure chart of proxy server, and proxy server comprises the following modules:
Client modules 201 provide jar packet and are quoted by interface server, are responsible for the discovery and registration of interface;
Management module 202, the module are the web programs independently disposed, and agency is generated by the interface configurations of web program Rule, which is responsible for the merging, assembly, publication of interface;
Service module 203, the module are the web programs independently disposed, and are responsible for receiving front-end request, concurrently ask to the back-end It asks, return the result merging, Interface status is monitored, the function of the persistence of interface;
Registration center 204, ZooKeeper are the distributed application program coordination service systems increased income by Google company, The system is used to safeguard available interface message as the registration center of proxy server;
Database module 205, using mysql database, major storage interface message and agent rule;
Cache module 206, using redis database, main caching agent rule.
Specifically, the discovery of the interface in client modules and registration process are as shown in Figure 3, comprising the following steps:
Step S301, if enable agency.
It reads in configuration file and whether enables the configuration parameter of proxy module, if not starting proxy module, exit interface Discovery and registration process;If starting proxy module, 302 are thened follow the steps.
Step S302, interface discovery.
Interface finds that step specifically as shown in Figure 4, is introduced in detail below.
Step S303, if discovery interface.
If exiting the discovery and registration process of interface without discovery interface in step S302;If it find that interface, Then follow the steps S304.
Step S304, interface registration.
The interface that can be acted on behalf of is found from step S303, parses the attribute datas such as argument structure, the version information of interface, it will These attribute datas are written in ZooKeeper.
Fig. 4 is the specific flow chart of step S302, comprising the following steps:
Step S401, class scanning.
Interface associated class scanning to required agency, obtains the scanning result that class explains scanning.
Step S402, if having class note.
The scanning result for explaining scanning to obtained class judges, if explained without class, exits interface discovery step Suddenly;If there is class is explained, then method scanning step S403 is carried out.
Step S403, method scanning.
Method scanning is carried out to the class for having note, obtains the scanning result that method explains scanning.
Step S404, if having method note.
The scanning result for explaining scanning to obtained method judges, if explained without method, exits interface hair Existing step;If there is method is explained, then parsing interface structure step S405 is carried out.
Step S405 parses interface structure.After obtaining the interface that can be acted on behalf of by the result that method is explained, to the ginseng of interface The attribute datas such as table structure, version information are parsed.
The information of interface is written in ZooKeeper by step S406.
After the completion of the discovery and registration process of interface in client modules, need to carry out persistence operation to interface.It holds Longization operation is exactly that the acquired interface acted on behalf of is written in database, for being used for a long time, detailed process such as Fig. 5 institute It states, comprising the following steps:
Step S501 monitors the variation of ZooKeeper node.
Node in ZooKeeper can be monitored, including the modification and child node catalogue of the data stored in catalogue Variation, the client that setting can be notified to monitor if the variation for the modification and catalogue for having data, this function is ZooKeeper most important characteristic for application.
Step S502 determines ZooKeeper event attribute.
When listening to related ZooKeeper event, the catalogue of ZooKeeper event creation is judged.
If ZooKeeper event is created by api-path, S503 is thened follow the steps;If ZooKeeper event by Body creation, thens follow the steps S505.
It is specific:
Step S503 increases interface newly, if ZooKeeper event is created by the lasting node of api-path, uses ZooKeeper Native method carries out newly-increased interface operation, and wherein api-path indicates lasting node.
Step S504, generate write-in node struct-key, complete step S503 after to lasting node struct-key into Row generates, and is written in ZooKeeper.
Step S505 generates new node struct-key, if ZooKeeper event is created by body transient node, Then generate new node struct-key.
Step S506, new and old node struct-key are compared with original node in ZooKeeper system, If the same terminate to monitor step;Step S507 is carried out if different.
Step S507, more new interface.Interface is updated using ZooKeeper Native method.
Wherein, wherein api-path is lasting node, indicates interface message, is made of path and version number, is unique; Body is transient node, is made of interface requests parameter (API request) and response parameter (API response), and only One;Struct-key is the key of interface parameters structure, for determining whether interface changes, is given birth to by transient node body At.
Fig. 6 is the structure chart of interface persistence, can briefly illustrate the process of interface persistence:
The event monitoring method primary using ZooKeeper of event monitoring module 601, obtains dependent event handle and saves In event handler module 602, Key generation module 604 by the data in interface module 603 and event handler module 602 into Row compares, and comparison result operates the comparing result that 605 modules pass through interface contrast module 603 by Node, carries out further interface Update operation.
After the completion of interface persistence, indicates that proxy server deployment part has been completed, the correlation of proxy interface can be carried out Business operation is specifically shown in Fig. 7, comprising the following steps:
Step S701, front end 71 send proxy requests according to business needs, to scheduling agent device 70;
Step S702, interface mappings device 72 is according to request, by related interface mappings to interface scheduler 70;
Step S703, routing rule provide module 73 according to interface mappings information, interface requests data are supplied to scheduling Device 70;
Interface response data is supplied to scheduler 70 according to the response results of interface scheduler 74 by step S704;
Step S705 is supplied to scheduler 70 after being packaged resulting interface response message by wrapper 75.
In conclusion being realized using proxy server by above-mentioned dispositions method and carrying out the interface of various single types Merge, the quantity requested over long distances under complex scene in software systems in the prior art can be reduced, increase holding for program Line efficiency effectively improves software responses speed, and the user experience is improved
Embodiment two:
Fig. 8 is a kind of schematic diagram of data interaction server, specifically, headend equipment 810 and interface server 830 it Between increase proxy server 820.Wherein, proxy server 820 includes service module 821 and registration module 822.
Registration module 822 registers required combined interface, and specific structure is as shown in figure 9, after start-up loading class 910 Four worker threads and three thread pools are generated, specific:
In class scanner thread 911, the scanning result whether explained in class scanner 921 about class is stored in class line In Cheng Chi 931;
In method scanner thread 912, method scanner 922 is consumed from 931 in class thread pool, has been infused It solves in class with the presence or absence of method note as a result, acquired results are stored in method thread pool 932;
In method resolver thread 913, method resolver 923 is consumed from method thread pool 932, obtains interface Information, acquired results are stored in interface thread pool 933;
In interface Register thread 914, interface Register 924 is consumed from interface thread pool 933, and interface is infused Volume is in ZooKeeper (940).
Proxy server 820 and headend equipment 810 pass through internet progress long-range network request;Proxy server 820 Short distance connection is carried out by Intranet with interface server 830.The network link of proxy server 820 and interface server 830 Between connection speed should be promoted as far as possible, the two can be deployed in closer network, such as: can be by proxy server 820 and interface server 830 be deployed in same computer room or same network segment, it might even be possible to proxy server 820 is directly deployed in In interface server 830;Server overall performance can also be improved with upgrade server hardware or deployment load balancing cluster Mode, Lai Tisheng response speed.
The agent rule that proxy server 820 is formulated by front-end and back-end, the interaction request that headend equipment 810 is sent 80 are parsed, and multiple interaction requests 81,82,83 are obtained.
Returning the result for interaction request 81,82,83 is sent to proxy server 820 by interface server 830, due to interface Server 830 is deployed in Intranet with proxy server 820 and is that short distance is connect, and data interaction speed is fast, proxy server 820 The result of multiple interaction requests can quickly be obtained.
Proxy server 820 is merged the request results of interaction request 81,82,83 by agent rule, merging As a result the response as interaction request 80 is back to headend equipment 810.
By in above-mentioned schematic diagram as can be seen that proxy server 820 only need to according to the agent rule appointed in advance into Row request merges and parsing, will not have an impact to original interface architecture in interface server 830.That is, not making In the case where with proxy server 820, back end interface can also be remained both by the way of substep before requests over long distances Some fine granularities.Traditional interface merges exploitation, needs to change the overall architecture of rear end, has biggish exploitation amount, and field Scape is difficult to ensure covering comprehensively, and using the problem can be solved after proxy server 820.
When completing 821,822,823 interaction request using the mode of traditional front end direct request interface server, front end Equipment 810, which needs to carry out long-range network three times with interface server 830, requests, and needs serial wait.And headend equipment Network state not can guarantee the moment in general, for especially for mobile device, usually can only under mobile communication network, by The factor of surrounding environment influence and equipment performance itself restricts, cause the loss of data risk of long-range network request three times compared with Height, speed are also relatively slow.And after using proxy server 820, it completes only to need to carry out proxy server 820 when same request Long-range network request, remaining interaction are carried out by way of short connection by proxy server 820 and interface server 830 It realizes, since the response speed of short connection will request speed much higher than long-range network, after using proxy server 820, The number of requests that long-range network request can be reduced, increases the execution efficiency of program, effectively improves software responses speed, Promote in user experience, the especially complicated scene of interaction effect more.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute all or part of step of each embodiment the method for the disclosure Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of data interactive method, which is characterized in that be applied to proxy server, the proxy server and interface server Positioned at same Intranet;
It the described method comprises the following steps:
Receive the request that user terminal is sent;
By the request analysis it is multiple interaction requests according to default agent rule, sends the multiple interaction to interface server Request;
Receive multiple interaction results that the interface server returns;
The multiple interaction results are merged according to the default agent rule, and are sent to the user terminal;
The default agency includes merging, assembly, the publication of interface.
2. the method according to claim 1, wherein before the request for receiving user terminal transmission, further includes:
The default agent rule that defining interface merges.
3. according to the method described in claim 2, it is characterized in that, the default agent rule that the defining interface merges, comprising:
The web program page is provided;
According to administrator by the operational order inputted on the web program page, default agent rule is generated.
4. according to the method described in claim 2, it is characterized in that, the defining interface merge default agent rule before, Further include:
The scan path of interface is scanned, interface message is obtained;
The interface message is registered in ZooKeeper.
5. according to the method described in claim 4, obtaining it is characterized in that, the scan path to interface is scanned Interface message, comprising:
Class under scan path is scanned, class note is judged whether there is;
If explained without class, stop scanning;
If there is class is explained, then method scanning is carried out to the class for having note;
If explained without method, stop scanning;
If there is method is explained, then parsing operation is carried out to interface structure, obtain interface message.
6. according to the method described in claim 4, it is characterized in that, it is described interface message is registered to ZooKeeper after, packet It includes:
The variation of ZooKeeper node is monitored, the ZooKeeper time is obtained;
Judge the nodal community of ZooKeeper event;
If the nodal community is transient node, new lasting node is generated;
Compare new lasting node and whether current lasting node is identical;
If it is different, then more new interface.
7. a kind of proxy server, which is characterized in that the proxy server and interface server are located at same Intranet, the generation Managing server includes service module;
The service module is used for, and receives the request that user terminal is sent;It by the request analysis is more according to default agent rule A interaction request sends the multiple interaction request to interface server;Receive multiple interactions that the interface server returns As a result;The multiple interaction results are merged according to the default agent rule, and are sent to the user terminal;
Wherein, the default agent rule includes merging, assembly, the publication of interface.
8. proxy server according to claim 7, which is characterized in that further include:
Management module, the default agent rule merged for defining interface.
9. proxy server according to claim 8, which is characterized in that further include:
Registration module is scanned for the scan path to interface, obtains interface message;The interface message is registered to In ZooKeeper.
10. according to the method described in claim 9, it is characterized in that, the registration module, including thread pool and worker thread, Wherein,
The thread pool includes: class thread pool, method thread pool, interface thread pool;
The worker thread includes: class scanner thread, method scanner thread, method interpreter thread, interface registration thread.
CN201811631619.7A 2018-12-28 2018-12-28 Data interactive method and server Pending CN109710878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811631619.7A CN109710878A (en) 2018-12-28 2018-12-28 Data interactive method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811631619.7A CN109710878A (en) 2018-12-28 2018-12-28 Data interactive method and server

Publications (1)

Publication Number Publication Date
CN109710878A true CN109710878A (en) 2019-05-03

Family

ID=66258188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811631619.7A Pending CN109710878A (en) 2018-12-28 2018-12-28 Data interactive method and server

Country Status (1)

Country Link
CN (1) CN109710878A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580854A (en) * 2020-03-18 2020-08-25 平安科技(深圳)有限公司 Front-end and back-end separation method based on application program interface gateway and related equipment
CN114520784A (en) * 2021-12-24 2022-05-20 天翼云科技有限公司 Dynamic content accelerated access method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0762297B1 (en) * 1995-09-08 2002-12-18 Sun Microsystems, Inc. Use of proxy servers to provide annotation overlays
US20090197631A1 (en) * 2008-02-01 2009-08-06 Qualcomm Incorporated Interference mitigation for control channels in a wireless communication network
CN102033912A (en) * 2010-11-25 2011-04-27 北京北纬点易信息技术有限公司 Distributed-type database access method and system
CN102184231A (en) * 2011-05-12 2011-09-14 广州市动景计算机科技有限公司 Method and device for acquiring page resources
CN103701714A (en) * 2013-12-25 2014-04-02 北京奇虎科技有限公司 Page extraction method, server and network system
CN105188087A (en) * 2014-06-12 2015-12-23 北京神州泰岳软件股份有限公司 Business communication method and system based on short message gateway
CN106790444A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 Network data exchange method and device
CN107864053A (en) * 2017-10-31 2018-03-30 北京小米移动软件有限公司 Dynamic Configuration and device based on zookeeper
CN108234670A (en) * 2018-01-31 2018-06-29 北京中安智达科技有限公司 A kind of distributed remote call method based on zookeeper and netty
CN108984571A (en) * 2017-06-05 2018-12-11 中兴通讯股份有限公司 Transaction Identifier operating method, system and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0762297B1 (en) * 1995-09-08 2002-12-18 Sun Microsystems, Inc. Use of proxy servers to provide annotation overlays
US20090197631A1 (en) * 2008-02-01 2009-08-06 Qualcomm Incorporated Interference mitigation for control channels in a wireless communication network
CN102033912A (en) * 2010-11-25 2011-04-27 北京北纬点易信息技术有限公司 Distributed-type database access method and system
CN102184231A (en) * 2011-05-12 2011-09-14 广州市动景计算机科技有限公司 Method and device for acquiring page resources
CN103701714A (en) * 2013-12-25 2014-04-02 北京奇虎科技有限公司 Page extraction method, server and network system
CN105188087A (en) * 2014-06-12 2015-12-23 北京神州泰岳软件股份有限公司 Business communication method and system based on short message gateway
CN106790444A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 Network data exchange method and device
CN108984571A (en) * 2017-06-05 2018-12-11 中兴通讯股份有限公司 Transaction Identifier operating method, system and computer readable storage medium
CN107864053A (en) * 2017-10-31 2018-03-30 北京小米移动软件有限公司 Dynamic Configuration and device based on zookeeper
CN108234670A (en) * 2018-01-31 2018-06-29 北京中安智达科技有限公司 A kind of distributed remote call method based on zookeeper and netty

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小虫巨蟹: "基于代理服务的接口合并方案", 《HTTPS://WWW.JIANSHU.COM/P/07293E4825D0》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580854A (en) * 2020-03-18 2020-08-25 平安科技(深圳)有限公司 Front-end and back-end separation method based on application program interface gateway and related equipment
WO2021184824A1 (en) * 2020-03-18 2021-09-23 平安科技(深圳)有限公司 Application program interface gateway based method for separating front and back ends and related device
CN114520784A (en) * 2021-12-24 2022-05-20 天翼云科技有限公司 Dynamic content accelerated access method and device
CN114520784B (en) * 2021-12-24 2023-10-10 天翼云科技有限公司 Dynamic content acceleration access method and device

Similar Documents

Publication Publication Date Title
CN111741026B (en) Cross-chain transaction request processing method, device, equipment and storage medium
CN106489251B (en) The methods, devices and systems of applied topology relationship discovery
CN108845816A (en) Application program update method, system, computer equipment and storage medium
CN109995859A (en) A kind of dispatching method, dispatch server and computer readable storage medium
CN103607424B (en) Server connection method and server system
CN110458468A (en) A kind of task processing method, device, electronic equipment and storage medium
CN109117252A (en) Method, system and the container cluster management system of task processing based on container
CN111090691B (en) Data processing method and device, electronic equipment and storage medium
US11843674B2 (en) Virtual workspace experience visualization and optimization
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN109858817A (en) A kind of Workflow Management System and method
CN114157701A (en) Task testing method, device, equipment and storage medium
CN109710878A (en) Data interactive method and server
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN103581273A (en) Service executing method, device and system for distributed system
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
CN115883310A (en) Service deployment method, service deployment system, electronic device, and storage medium
CN115470303B (en) Database access method, device, system, equipment and readable storage medium
CN113760638A (en) Log service method and device based on kubernets cluster
CN111836221A (en) Charging management method, device and system
CN110071840A (en) Upgrade method, device and client
CN112448833A (en) Multi-management-domain communication method and device
CN111416860B (en) Transaction processing method and device based on block chain, electronic equipment and medium
CN113204425A (en) Method and device for process management internal thread, electronic equipment and storage medium
US20120254942A1 (en) Connection destination determination device, connection destination determination method, and service collaboration system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190503

RJ01 Rejection of invention patent application after publication