Method and system for quickly calling service interface
A technology of service interface and service port, applied in the field of rapid invocation of service interface, can solve the problems of small burden, high cost, high operation and maintenance cost, and achieve the effect of avoiding network delay and low cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] Please refer to figure 1 , image 3 and Figure 4 , the first embodiment of the present invention is:
[0069] A method for quickly invoking a service interface, including steps:
[0070] S1, the mapping server generates an interface mapping table according to the interfaces of all current services, and the interface mapping table includes an interface name, an interface address and a service port;
[0071] In this embodiment, an interface mapping table of "interface name-interface address-service port" is generated for APIs of different business services, and the interface mapping table describes the IP address and port number where the real service corresponding to the API is located. As shown in Table 1 below:
[0072] Table 1
[0073]
[0074]
[0075] As shown in Table 1 above, a host with one IP address can have multiple API interfaces to provide services to the outside world; under a physical host with the same IP address, multiple services can also pr...
Embodiment 2
[0091] Please refer to figure 2 , the second embodiment of the present invention is:
[0092] A system 1 for quick invocation of a service interface, comprising a user application end 5 and a mapping server end 2, the mapping server end 2 includes a first processor 3, a first memory 4, and is stored in the first memory 4 and can be A computer program running on the first processor 3, the user application terminal 5 includes a second processor 6, a second memory 7, and a computer program stored in the second memory 7 and available on the second processor A computer program running on 6, the first processor 3 implements the steps performed by the mapping server 2 in the first embodiment above when the first processor 3 executes the first computer program, and the second processor 6 executes the first When two computer programs are used, the steps performed by the user application terminal 5 described in the first embodiment above are implemented.
[0093] The main principle o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


