Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

App network connection method, device and configuration server based on configuration management

A network connection device and server configuration technology, applied in the network field, can solve the problems of exposing intranet IP, time-consuming, DNS resolution failure, etc., achieve good scalability and avoid IP overload

Active Publication Date: 2019-08-02
美味不用等(上海)信息科技股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. DNS resolution has a certain probability of failure, resulting in user connection failure;
[0004] 2. It takes a certain amount of time to resolve DNS, which affects the APP service experience;
[0005] 3. DNS resolution is easily hijacked by the operator, which directly leads to unavailable APP services or pop-up advertisements;
[0006] 4. When the network quality of the service line resolved by DNS is poor, the link cannot be modified immediately
[0007] In addition, there are also direct connections via IP in the existing technology, but the solution of direct connection through IP usually does not encrypt the DNS configuration, which is easy to directly expose the intranet IP, and there are certain security risks; in addition, it is difficult to take care of multiple module application

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • App network connection method, device and configuration server based on configuration management
  • App network connection method, device and configuration server based on configuration management
  • App network connection method, device and configuration server based on configuration management

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0107] For an APP with a large number of customers, if all network requests are connected to one server, the server may crash due to too much load, so multiple servers need to be used to share the load. At this time, there may be a state that some servers are congested and some servers are idle when using the connection modes of Comparative Examples 1 and 2. When using the configuration file of the present invention to allow APPs to connect to different servers with different IPs, it is possible to prevent all APPs from requesting the same server, and at the same time, by adding a load balancing module, the load (memory, number of connections) on the IP can be monitored in real time. , cpu occupancy, etc.), when the APP needs to connect, it first resolves to get the IP, and then finds the one with the lowest load, so that it can be flexibly scheduled among multiple servers to balance the load.

Embodiment 2

[0109] For an APP with multiple user interfaces, the multiple user interfaces may be produced by different teams and served by different background server clusters.

[0110] Now, adopt the method of the present invention, according to the configuration file of the present invention, write its configuration information based on different modules (MODULE) respectively in the file, such as various modules below Baidu, such as Baidu Encyclopedia:

[0111]

[0112] / / The various IPs under the module here

[0113]

[0114] Since Baidu Encyclopedia actually has more than one server, it is also a server cluster, so one of the other servers below it can be written as:

[0115]

[0116] availability="true"

[0117] cpu="0.2"

[0118] memery="0.3"

[0119] frequency="300" / >

[0120] If there are more, they can be written in the above format in turn.

[0121] Thereby when APP needs to call this module, read IP address, domain name, high availability and load sit...

Embodiment 3

[0123] For delicious food ordering software APP, which includes placeholder module, menu module, order module, payment module, etc., because different modules may be developed by different companies, such as payment module, it may be to call Alipay, WeChat or bank No. Three-party payment platform, etc., through the configuration file of the present invention, in the configuration file, different services located on different business clusters are respectively called according to different modules, thereby completing the entire function of the APP.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An APP network connection method, device and configuration server based on configuration management. The method includes: the APP requests a configuration file from a configuration server; the configuration server generates the configuration file in real time according to the DNS configuration table and the load monitoring of the Nginx cluster, and sends it to the APP; wherein the configuration file includes each The domain name of the module, the IP address of the business Nginx cluster corresponding to the domain name, and the load situation; the APP parses the configuration file, and performs corresponding network connection and call. The present invention is based on the configuration management method for APP to decide whether to use domain name access or IP direct connection. In providing many problems of avoiding DNS resolution, it takes into account the unbalanced development of multi-module APP background technology. The tree-based configuration file has a good Scalability, new IP and domain names no longer need to be released, which has obvious promotion significance for the network connection experience of APP.

Description

technical field [0001] The present invention relates to the field of network technology, and more particularly to an APP network connection method, device and configuration server based on configuration management. Background technique [0002] At present, most APPs use uniform resource locators (url) to access background services, that is, domain name (host) + path (path) + request parameter (query / Body). Among them, host is usually a unified domain name, and an APP Usually set a domain name. This access method first resolves the domain name to the corresponding IP address by DNS, and then maps it to the corresponding service according to the path. This access method has some disadvantages: [0003] 1. DNS resolution has a certain probability of failure, resulting in user connection failure; [0004] 2. It takes a certain amount of time to resolve DNS, which affects the APP service experience; [0005] 3. DNS resolution is easily hijacked by the operator, which directly ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L29/12H04L12/24
CPCH04L41/08H04L61/10H04L67/14H04L67/30H04L61/4511H04L67/60
Inventor 郑国春闫寒张普黄超
Owner 美味不用等(上海)信息科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products