CN102932360A - Method and system for updating interface dynamically - Google Patents
Method and system for updating interface dynamically Download PDFInfo
- Publication number
- CN102932360A CN102932360A CN2012104446559A CN201210444655A CN102932360A CN 102932360 A CN102932360 A CN 102932360A CN 2012104446559 A CN2012104446559 A CN 2012104446559A CN 201210444655 A CN201210444655 A CN 201210444655A CN 102932360 A CN102932360 A CN 102932360A
- Authority
- CN
- China
- Prior art keywords
- interface
- server
- client
- message
- api interface
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention provides a method and a system for updating an interface dynamically. The method comprises that an interface server receives and analyses messages sent by a client, whether an application program interface (API) interface corresponding to the messages is stored locally, if the API interface corresponding to the messages is stored locally, the interface server transmits the messages to a business processing server for processing, the interface server generates new API interface information in accordance with a preset strategy, the new API interface information is sent to the client and the business processing server respectively, and the client and the business processing server update API interfaces corresponding to local storage in accordance with the received new API interface information.
Description
Technical field
The invention belongs to the instant messaging field, relate in particular to a kind of method and system that dynamically update interface.
Background technology
Along with the continuous progress of Network Society, increasing immediate communication tool is applied in work and the life, such as Fetion, MSN and some enterprise version application software etc.In instant communications applications, the stability of server is even more important.In the practical application, the hacker adopts the mode of " Denial of Service attack ", by send a large amount of legitimate request to server, carries out malicious attack, causes server resource to exhaust, and can not make response to normal service request.Cause puzzlement for user's normal use, and had a strong impact on the service quality of instant messaging.
Summary of the invention
The invention provides a kind of method and system of interface that dynamically update to address the above problem.
The invention provides a kind of method that dynamically updates interface, may further comprise the steps.Interface server receives and resolves the message that client sends, and judges local api interface corresponding to described message of whether storing.If, described interface server is transmitted to Service Process Server with described message and processes, wherein interface server generates new api interface information according to preset strategy, and described new api interface information is sent to respectively described client and Service Process Server, described client and Service Process Server are respectively according to the corresponding A PI interface of the local storage of described new api interface information updating that receives.
The invention provides a kind of system that dynamically updates interface, comprise client, interface server and Service Process Server, described client connects described interface server, and described interface server connects described Service Process Server.Described client is used for sending message to described interface server, and the local corresponding A PI of the new api interface information updating interface that sends according to described interface server.Described interface server, be used for receiving and resolving the message that described client sends, and judge whether this locality has stored api interface corresponding to described message, if, described message is transmitted to Service Process Server, also be used for generating new api interface information according to preset strategy, and described new api interface information is sent to respectively client and Service Process Server.Described Service Process Server for the treatment of the message that described interface server is transmitted, also is used for the local corresponding A PI of the new api interface information updating interface that sends according to described interface server.
Compared to prior art, according to the method and system that dynamically update interface provided by the invention, interface server receives and resolves the message that client sends, and judges local api interface corresponding to described message of whether storing.By the judgement of interface server, guaranteed the safety of Service Process Server.If, described interface server is transmitted to Service Process Server with described message and processes, wherein interface server generates new api interface information according to preset strategy, and described new api interface information is sent to respectively described client and Service Process Server, described client and Service Process Server are respectively according to the corresponding A PI interface of the local storage of described new api interface information updating that receives.So, effectively stop the malicious attack of hacker to server, improved server stability.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Figure 1 shows that the flow chart of the method that dynamically updates interface that preferred embodiment according to the present invention provides;
Figure 2 shows that the schematic diagram of the system that dynamically updates interface that preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove, in the situation that do not conflict, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that the flow chart of the method that dynamically updates interface that preferred embodiment according to the present invention provides.As shown in Figure 1, the method that dynamically updates interface that preferred embodiment of the present invention provides comprises step 101 ~ 102.
Step 101: interface server receives and resolves the message that client sends, and judges local api interface corresponding to described message of whether storing.
Particularly, client stores the first api interface table, interface server is stored the second api interface table.Described the first api interface table comprises connection name, api interface information, interface server title, interface server IP and port numbers.The second api interface table storage api interface information.Arbitrary moment after client and interface server connect, if client needs to send message to interface server, described client is searched the api interface information corresponding with message to be sent in the first api interface table, and determines to send the connection of described message, interface server IP and the port numbers of the described message of reception according to described api interface information.After interface server receives and resolves described message, obtain api interface corresponding to described message, and search in the second local api interface table whether store described api interface.
Step 102: if, described interface server is transmitted to Service Process Server with described message and processes, wherein interface server generates new api interface information according to preset strategy, and described new api interface information is sent to respectively described client and Service Process Server, described client and Service Process Server are respectively according to the corresponding A PI interface of the local storage of described new api interface information updating that receives.
Particularly, interface server is resolved after described message obtains corresponding api interface, judge local api interface corresponding to described message of whether storing, if, described interface server is transmitted to Service Process Server with described message and processes, if not, described interface server abandons described message, and being connected of disconnection and described client.
In said process, interface server generates new api interface information according to preset strategy, and described preset strategy is that interface server timing or not timing generate new api interface information according to predetermined format.For example, if described predetermined format is to add underscore and current time after former api interface information, interface server on October 29th, 2012 13:36:56 press predetermined format and generate new api interface information, then former interface message for example Login become Login_20121029133656.In this, described predetermined format can also can arrange as required separately for add temporal information, GUID information or random number behind former api interface, yet to this present invention and be not construed as limiting.
In this, after described interface server generates new api interface information, upgrade the second local api interface table, and described new api interface information is sent to respectively client and Service Process Server.When having more than one interface server, described more than one interface server can generate simultaneously corresponding new api interface information and send to client and Service Process Server, but also new api interface information corresponding to each self-generating of different time and send to respectively client and Service Process Server, yet to this present invention and be not construed as limiting.The interface compilation device is set respectively, in order to compile described new api interface information in described client and the Service Process Server.Wherein, after the interface compilation device of described client compiles described new api interface information, upgrade described the first api interface table.After the interface compilation device of described Service Process Server compiles described new api interface information, process according to the message that described new api interface information butt joint mouth server is transmitted.In the present embodiment, described interface compilation device is arranged at the inside of described client and server, and in other embodiment, described interface compilation device also can be arranged at the outside of client or server, yet, to this present invention and be not construed as limiting.
For example, be connected if client has been set up respectively 3 with 3 interface servers, and the first api interface table example of described client is as shown in table 1.
Connection name | Api interface information | The interface server title | Interface server IP | Port numbers |
Socket1 | Login、Loginout | Interface server 1 | 202.91.251.130 | 80 |
Socket2 | Text、Group | Interface server 2 | 202.91.251.131 | 80 |
Socket3 | NoticeOnline、License | Interface server 3 | 202.91.251.132 | 80 |
Table 1
In the present embodiment, 3 corresponding the second api interface tables separately of interface server difference, according to table 1, the second api interface table example of interface server 1 correspondence is as shown in table 2, the second api interface table example of interface server 2 correspondences is as shown in table 3, and the second api interface table example of interface server 3 correspondences is as shown in table 4.
Api interface information |
Login |
Loginout |
Table 2
Api interface information |
Text |
Group |
Table 3
Api interface information |
NoticeOnline |
License |
Table 4
In the present embodiment, if client need send and the corresponding message of Login interface, then in table 1, search connection Socket1 corresponding to described Login interface, and be 202.91.251.130 by connecting Socket1 to interface server 1(interface server IP, port numbers 80) send corresponding message.After interface server 1 is resolved described message, obtain corresponding api interface information, and in table 2, find the Login interface, then described message is transmitted to Service Process Server, process described message by Service Process Server.
The a certain moment afterwards, if 3 interface servers generate new api interface information simultaneously, and interface server 1 updating form 2, interface server 2 updating forms 3, behind interface server 3 updating forms 4, self the api interface information after each interface server will upgrade respectively sends to client and Service Process Server.Described client according to the api interface information updating table 1 that receives after, if client sends message again, need according to the api interface information after upgrading in the table 1.If there is the hacker still to send and the corresponding message of Login interface according to the api interface information before upgrading, then interface server 1 does not find the Login interface in table 2, will abandon described message, and direct being connected of disconnection and described hacker.
Figure 2 shows that the schematic diagram of the system that dynamically updates interface that preferred embodiment according to the present invention provides.As shown in Figure 2, the system that dynamically updates interface that preferred embodiment of the present invention provides comprises client 201, interface server 202 and Service Process Server 203, described client 201 connects described interface server 202, and described interface server 202 connects described Service Process Server 203.Described client 201 is used for sending message to described interface server 202, and the local corresponding A PI of the new api interface information updating interface that sends according to described interface server 202.Described interface server 202, be used for receiving and resolving the message that described client 201 sends, and judge whether this locality has stored api interface corresponding to described message, if, described message is transmitted to Service Process Server 203, also be used for generating new api interface information according to preset strategy, and described new api interface information is sent to respectively client 201 and Service Process Server 203.Described Service Process Server 203 for the treatment of the message that described interface server 202 is transmitted, also is used for the local corresponding A PI of the new api interface information updating interface that sends according to described interface server 202.Operating process about said system is described with above-mentioned method, therefore repeat no more in this.
In sum, the method and system that dynamically update interface that preferred embodiment provides according to the present invention, interface server receives and resolves the message that client sends, and judges local api interface corresponding to described message of whether storing.By the judgement of interface server, guaranteed the safety of Service Process Server.If, described interface server is transmitted to Service Process Server with described message and processes, wherein interface server generates new api interface information according to preset strategy, and described new api interface information is sent to respectively described client and Service Process Server, described client and Service Process Server are respectively according to the corresponding A PI interface of the local storage of described new api interface information updating that receives.So, effectively stop the malicious attack of hacker to server, improved server stability.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (6)
1. a method that dynamically updates interface is characterized in that, may further comprise the steps:
Interface server receives and resolves the message that client sends, and judges local api interface corresponding to described message of whether storing;
If described interface server is transmitted to Service Process Server with described message and processes,
Wherein interface server generates new api interface information according to preset strategy, and described new api interface information is sent to respectively described client and Service Process Server, described client and Service Process Server are respectively according to the corresponding A PI interface of the local storage of described new api interface information updating that receives.
2. method according to claim 1 is characterized in that, described preset strategy is that described interface server timing or not timing generate new api interface information according to predetermined format.
3. method according to claim 1 is characterized in that, does not locally store api interface corresponding to described message if described interface server is judged, described interface server abandons described message, and being connected of disconnection and described client.
4. method according to claim 1 is characterized in that, described client stores the first api interface table, and described interface server is stored the second api interface table.
5. method according to claim 4, it is characterized in that, described interface server upgrades described the second api interface table after generating new api interface information, and described client is according to the described first api interface table of new api interface information updating of described interface server transmission.
6. a system that dynamically updates interface is characterized in that, comprises client, interface server and Service Process Server, and described client connects described interface server, and described interface server connects described Service Process Server,
Described client is used for sending message to described interface server, and the local corresponding A PI of the new api interface information updating interface that sends according to described interface server;
Described interface server, be used for receiving and resolving the message that described client sends, and judge whether this locality has stored api interface corresponding to described message, if, described message is transmitted to Service Process Server, also be used for generating new api interface information according to preset strategy, and described new api interface information is sent to respectively client and Service Process Server;
Described Service Process Server for the treatment of the message that described interface server is transmitted, also is used for the local corresponding A PI of the new api interface information updating interface that sends according to described interface server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104446559A CN102932360A (en) | 2012-11-09 | 2012-11-09 | Method and system for updating interface dynamically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104446559A CN102932360A (en) | 2012-11-09 | 2012-11-09 | Method and system for updating interface dynamically |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102932360A true CN102932360A (en) | 2013-02-13 |
Family
ID=47647062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012104446559A Pending CN102932360A (en) | 2012-11-09 | 2012-11-09 | Method and system for updating interface dynamically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102932360A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109525677A (en) * | 2018-12-20 | 2019-03-26 | 杭州数梦工场科技有限公司 | Handle the method and device of data |
CN110851456A (en) * | 2019-11-08 | 2020-02-28 | 北京字节跳动网络技术有限公司 | Information processing method, electronic equipment and storage medium |
CN111104135A (en) * | 2018-10-29 | 2020-05-05 | 厦门白山耘科技有限公司 | Method and system for acquiring interface updating information in real time |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866901A (en) * | 2005-03-23 | 2006-11-22 | 诺基亚有限公司 | System and method for dynamic interface management |
CN102099802A (en) * | 2008-07-28 | 2011-06-15 | 索尼公司 | Client device, information processing system and associated methodology of accessing networked sevices |
-
2012
- 2012-11-09 CN CN2012104446559A patent/CN102932360A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866901A (en) * | 2005-03-23 | 2006-11-22 | 诺基亚有限公司 | System and method for dynamic interface management |
CN102099802A (en) * | 2008-07-28 | 2011-06-15 | 索尼公司 | Client device, information processing system and associated methodology of accessing networked sevices |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104135A (en) * | 2018-10-29 | 2020-05-05 | 厦门白山耘科技有限公司 | Method and system for acquiring interface updating information in real time |
CN109525677A (en) * | 2018-12-20 | 2019-03-26 | 杭州数梦工场科技有限公司 | Handle the method and device of data |
CN110851456A (en) * | 2019-11-08 | 2020-02-28 | 北京字节跳动网络技术有限公司 | Information processing method, electronic equipment and storage medium |
CN110851456B (en) * | 2019-11-08 | 2022-03-29 | 北京字节跳动网络技术有限公司 | Information processing method, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102739720B (en) | Distributed cache server system and application method thereof, cache clients and cache server terminals | |
CN102970362B (en) | The method of a kind of high in the clouds data sharing and device | |
CN103973461A (en) | Notification message pushing method and message server | |
CN104580085A (en) | Business data updating method, system, client side and server | |
CN111246453A (en) | Data transmission method, user plane network element and control plane network element | |
CN102625287A (en) | Method for downloading mobile phone application software | |
CN103354560A (en) | Method and system for data decomposition and synchronization | |
CN102130853A (en) | Group message interaction realization method and system | |
CN101820432A (en) | Safety control method and device of stateless address configuration | |
CN103312708A (en) | Lease file based IP (internet protocol) setting method and system | |
CN105245418A (en) | Method, device and system for controlling smart home devices | |
CN106528214A (en) | Installation method of OS (Operating System), server and system | |
CN103685398B (en) | Communication connection method for building up and communication system | |
CN102932360A (en) | Method and system for updating interface dynamically | |
CN107707689A (en) | A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device | |
CN103581353A (en) | Method and system of automatic configuration of gateway device | |
CN104581977B (en) | WLAN user management method, apparatus and system | |
US10680930B2 (en) | Method and apparatus for communication in virtual network | |
CN106973106B (en) | Method, device and system for acquiring session information | |
CN105790944A (en) | Wechat-based network authentication method and device | |
CN103595711A (en) | Adjusting safety access method and exchanger | |
CN106453693A (en) | IP address allocation method and apparatus | |
CN103533001A (en) | Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server | |
CN102137035A (en) | Method and system for realizing group information interaction based on community platform | |
CN107634896B (en) | Data transmission method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130213 |