CN110830280A - Micro-service gateway device and method and electronic equipment - Google Patents

Micro-service gateway device and method and electronic equipment Download PDF

Info

Publication number
CN110830280A
CN110830280A CN201810910366.0A CN201810910366A CN110830280A CN 110830280 A CN110830280 A CN 110830280A CN 201810910366 A CN201810910366 A CN 201810910366A CN 110830280 A CN110830280 A CN 110830280A
Authority
CN
China
Prior art keywords
service
parameters
request
legal
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.)
Granted
Application number
CN201810910366.0A
Other languages
Chinese (zh)
Other versions
CN110830280B (en
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.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information 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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN201810910366.0A priority Critical patent/CN110830280B/en
Publication of CN110830280A publication Critical patent/CN110830280A/en
Application granted granted Critical
Publication of CN110830280B publication Critical patent/CN110830280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a micro-service gateway device, a method and electronic equipment, wherein the device comprises: a message receiving module, configured to receive a request message, where the request message includes a request parameter; the database is used for storing the request parameters and the corresponding service interface parameters; the processing module is used for determining the request parameters according to the request message, searching the database according to the request parameters to determine the corresponding service interface parameters, and generating a legal interface address according to the service interface parameters; and the message sending module is used for sending the access request message to the corresponding service according to the legal interface address. The invention can realize the function of the micro service gateway and has the functions of interface configuration and detection and service access statistics.

Description

Micro-service gateway device and method and electronic equipment
Technical Field
The present invention relates to the field of micro service architecture technologies, and in particular, to a micro service gateway apparatus and method, and an electronic device.
Background
As shown in fig. 1, an application platform based on a microservice architecture splits a large application into a plurality of services independent of each other, each service configures its own database, structural framework, programming language, etc., and can perform configuration and maintenance management independently, each service provides REST API interface for calling, and a client accesses a required service through a microservice gateway. The existing micro service gateway can not carry out interface configuration and test and has no service access statistical function.
Disclosure of Invention
In view of the above, the present invention provides a micro service gateway apparatus and method, and an electronic device, which can implement the function of the micro service gateway and have the functions of interface configuration and detection, and service access statistics.
In view of the above object, the present invention provides a microservice gateway apparatus, comprising:
a message receiving module, configured to receive a request message, where the request message includes a request parameter;
the database is used for storing the request parameters and the corresponding service interface parameters;
the processing module is used for determining the request parameters according to the request message, searching the database according to the request parameters to determine the corresponding service interface parameters, and generating a legal interface address according to the service interface parameters;
and the message sending module is used for sending the access request message to the corresponding service according to the legal interface address.
Optionally, the micro service gateway apparatus further includes:
the interface configuration module is used for configuring the service with the service interface parameter by setting the request parameter and the corresponding service interface parameter;
the database is used for storing the set request parameters and the corresponding service interface parameters;
the testing module is used for inputting testing request parameters, searching the database according to the testing request parameters, determining the corresponding service interface parameters, determining the legal interface address according to the service interface parameters, and accessing services according to the legal interface address so as to test the configured services.
Optionally, the micro service gateway apparatus further includes:
the statistic module is used for counting the access quantity, the access frequency and the access time of each service according to the received request message; setting a high-frequency threshold, and determining the high-frequency access service of which the access frequency reaches the high-frequency threshold according to the access frequency of each service;
the message receiving module is used for receiving a response message returned by the service, wherein the response message comprises response data;
a cache module, configured to cache the response data of the high-frequency access service.
Optionally, the micro service gateway apparatus further includes:
the identity data generation module is used for generating corresponding legal identity data for the legally registered user;
the message sending module is used for sending the generated legal identity data;
the message receiving module is used for receiving the request message, and the request message also comprises user identity data;
the database is used for storing the request parameters and corresponding legal identity data;
and the identity authentication module is used for determining the user identity data according to the request message, searching the database according to the user identity data, and comparing the user identity data with the searched legal identity data so as to authenticate the user identity.
Optionally, the request parameter includes a service name and an interface parameter, and the service interface parameter includes a legal service name and a legal interface parameter.
Optionally, the request parameter further includes a service version number, and the service interface parameter further includes a legal service version number.
The embodiment of the invention also provides a micro-service gateway method, which comprises the following steps:
receiving a request message, wherein the request message comprises request parameters;
determining the request parameters according to the request message, searching a database according to the request parameters to determine corresponding service interface parameters, and generating a legal interface address according to the service interface parameters;
and sending an access request message to a corresponding service according to the legal interface address.
Optionally, the micro service gateway method further includes:
setting request parameters and corresponding service interface parameters to configure a service with the service interface parameters;
storing the set request parameters and the corresponding service interface parameters in a database;
inputting a test request parameter, searching the database according to the test request parameter, determining the corresponding service interface parameter, determining the legal interface address according to the service interface parameter, and accessing the service according to the legal interface address to test the configured service.
Optionally, the micro service gateway method further includes:
according to the received request message, counting the access quantity, the access frequency and the access time of each service, and receiving a response message returned by the service, wherein the response message comprises response data;
setting a high-frequency threshold, and determining a high-frequency access service of which the access frequency reaches the high-frequency threshold according to the access frequency;
and caching the response data returned by the high-frequency access service.
Optionally, the micro service gateway method further includes:
generating corresponding legal identity data for the legally registered user;
storing the legal identity data in the database;
sending the legal identity data;
receiving the request message, wherein the request message also comprises user identity data;
and determining the user identity data according to the request message, searching the database according to the user identity data, and comparing the user identity data with the searched legal identity data to verify the user identity.
Optionally, the request parameter includes a service name and an interface parameter, and the service interface parameter includes a legal service name and a legal interface parameter.
Optionally, the request parameter further includes a service version number, and the service interface parameter further includes a legal service version number.
The embodiment of the invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the micro-service gateway method when executing the program.
As can be seen from the above, the micro service gateway device, the method, and the electronic device provided by the present invention search and determine the service interface parameter corresponding to the service through the request parameter in the request message, and generate the legal interface address for accessing the service, so as to access the service according to the legal interface address, and can implement the function of the micro service gateway; meanwhile, the service interface can be flexibly configured and tested, the accessed service can be accessed and counted, response data of the service accessed at high frequency are cached, and the resource utilization rate is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of a conventional microservice architecture;
fig. 2 is a schematic composition diagram of a microservice gateway apparatus according to a first embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a micro service gateway device according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a micro service gateway device according to a third embodiment of the present invention;
fig. 5 is a flowchart illustrating a micro service method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
Fig. 2 is a schematic composition diagram of a microservice gateway apparatus according to a first embodiment of the present invention. As shown in the figure, the micro service gateway device disclosed in the embodiment of the present invention includes a message receiving module, a database, a processing module, and a message sending module.
A message receiving module, configured to receive a request message, where the request message includes a request parameter;
the database is used for storing the request parameters and the corresponding service interface parameters;
the processing module is used for determining request parameters according to the request message, inquiring a database according to the request parameters to determine corresponding service interface parameters, and generating a legal interface address according to the service interface parameters;
and the message sending module is used for sending the access request message to the corresponding service according to the legal interface address.
In the embodiment of the invention, the mapping relation between the request parameters and the service interface parameters is pre-established, and the request parameters and the corresponding service interface parameters are stored in a database. The request parameters comprise service names and interface parameters, the service interface parameters comprise legal service names and legal interface parameters, and the request parameters can be set through input.
For example, for the user login service, the name of the legal service required to be provided for accessing the user login service is "login", and the legal interface parameters required to be provided are "userName" and "userPwd"; presetting a mapping relation between a service name and a legal service name as ' denglu ' -logic ', wherein the mapping relation between an interface parameter and a legal interface parameter is as follows: "name" - "userName", "passcode" - "userPwd"; and storing the established request parameters and the corresponding service interface parameters in a database. Determining request parameters according to received request messages sent by a client, searching a database according to service names and interface parameters in the request parameters, determining service interface parameters corresponding to the request parameters, determining legal interface addresses for accessing the user login service according to the legal service names and the legal interface parameters in the service interface parameters, and sending access request messages to the user login service according to the legal interface addresses.
Fig. 3 is a schematic composition diagram of a microservice gateway apparatus according to a second embodiment of the present invention. As shown in the figure, in the embodiment of the present invention, the micro service gateway apparatus further includes:
the interface configuration module is used for configuring services with service interface parameters by setting request parameters and corresponding service interface parameters;
the database is used for storing the set request parameters and the corresponding service interface parameters;
and the testing module is used for testing the configured service.
Developers of different services may add different services or different versions of the same service configuration to the platform. The mapping relation between the service interface parameters of each service and the corresponding request parameters is configured through an interface configuration module, the configured service interface parameters and the configured request parameters are stored in a database, the configured service is tested through a test module, the service passing the test can be normally accessed, the service failing the test is subjected to problem location, and after the problem is solved, the test is carried out again until the service passes the test. The test process of the test module is to input the test request parameter, search the database according to the test request parameter, determine the service interface parameter, determine the legal interface address for accessing the service according to the service interface parameter, access the service according to the legal interface address, if the service returns the correct response message, the test is passed.
In the embodiment of the invention, the request parameter further comprises a service version number, and the service interface parameter further comprises a legal service version number. Determining request parameters according to received request messages sent by a client, searching a database according to service names, interface parameters and service version numbers in the request parameters, determining service interface parameters corresponding to the request parameters, determining legal interface addresses for accessing services according to legal service names, legal interface parameters and legal service version numbers in the service interface parameters, and sending access request messages to corresponding services according to the legal interface addresses.
In this embodiment of the present invention, the micro service gateway apparatus further includes:
the statistical module is used for counting the access quantity, the access frequency and the access time of each service according to the received request message;
the micro service gateway device of the embodiment of the invention has the service statistical function. And determining request parameters and service names according to the request messages by using a statistical module, and counting the access quantity, access frequency and access time for accessing each service according to the service names in each request message, thereby being beneficial to platform monitoring and management.
Fig. 4 is a schematic composition diagram of a microservice gateway apparatus according to a third embodiment of the present invention. As shown in the figure, in the embodiment of the present invention, the micro service gateway apparatus further includes:
the statistical module is used for setting a high-frequency threshold value and determining the high-frequency access service of which the access frequency reaches the high-frequency threshold value according to the access frequency of each service counted;
the message receiving module is used for receiving a response message returned by the service, wherein the response message comprises response data;
and the cache module is used for caching the response data returned by the high-frequency access service.
For the high-frequency access service, response data returned by the service are directly cached to the cache module, and the response data do not need to be acquired from the service aiming at each request, so that the response speed can be increased, and network resources can be reasonably utilized.
And the counting module is also used for counting the number and frequency of successfully accessed services according to the response message fed back by the services.
If the service accessed by the user fails to respond successfully due to the fact that the accessed service does not respond, or the response is abnormal, or the service is abnormally operated, and the like, the service access fails. This function may be used to monitor the operational status of each service in the platform.
In this embodiment of the present invention, the micro service gateway apparatus further includes:
the identity data generation module is used for generating corresponding legal identity data for the legally registered user;
the message sending module is used for sending the generated legal identity data;
a message receiving module, configured to receive a request message, where the request message includes user identity data;
the database is used for storing the request parameters and the corresponding legal identity data;
and the identity authentication module is used for determining user identity data according to the request message, inquiring a database according to the user identity data, comparing the user identity data with the found legal identity data, if the user identity data is consistent with the found legal identity data, the user identity authentication is passed, the service can be normally accessed, and if the user identity authentication is not consistent with the found legal identity data, the user identity authentication is not passed, and the service cannot be accessed.
Before a user uses each service of the platform, the user needs to register, after the registration is passed, the identity data generating module generates legal identity data corresponding to the user, the legal identity data comprises a user registration code and a secret key, and the user registration code and the secret key of the user are stored in a database. When a user accesses the service, a request message comprising user identity data is sent to the micro service gateway, the identity authentication module determines the user identity data according to the request message, a database is searched according to the user identity data, and the user identity data is compared with the searched legal identity data to authenticate the legal identity of the user. The verification method can also be based on the legality verification of the key by cryptography.
Fig. 5 is a flow chart of a microservice gateway method of an embodiment of the present invention. As shown in the figure, the method for the micro service gateway in the embodiment of the present invention includes:
s10: receiving a request message, wherein the request message comprises request parameters;
s11: determining request parameters according to the request message, querying a database according to the request parameters to determine corresponding service interface parameters, and generating a legal interface address according to the service interface parameters;
s12: and sending an access request message to the corresponding service according to the legal interface address.
In the embodiment of the present invention, the method for the micro service gateway further includes:
setting request parameters and corresponding service interface parameters to configure a service with the service interface parameters;
storing the set request parameters and the corresponding service interface parameters in a database;
inputting a test request parameter, searching a database according to the test request parameter, determining a corresponding service interface parameter, determining a legal interface address according to the service interface parameter, and accessing the service according to the legal interface address to test the configured service.
In the embodiment of the present invention, the method for the micro service gateway further includes:
according to the received request message, counting the access quantity, the access frequency and the access time of each service;
setting a high-frequency threshold, and determining the high-frequency access service with the access frequency reaching the high-frequency threshold according to the counted access frequency of each service;
and caching the response data returned by the high-frequency access service.
In the embodiment of the present invention, the method for the micro service gateway further includes:
generating corresponding legal identity data for the legally registered user;
storing the legal identity data in a database;
sending legal identity data;
receiving a request message, wherein the request message comprises user identity data;
and determining user identity data according to the request message, inquiring a database according to the user identity data, and comparing the user identity data with the found legal identity data so as to verify the user identity.
Based on the above purpose, the embodiment of the present invention further provides an embodiment of an apparatus for executing the micro service gateway method. The device comprises:
one or more processors, and a memory.
The apparatus for performing the micro service gateway method may further include: an input device and an output device.
The processor, memory, input device, and output device may be connected by a bus or other means.
The memory, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the microservice gateway method in the embodiment of the present invention (for example, the message sending module, the message receiving module, the processing module, the interface configuration module, the test module, the statistics module, and the like shown in fig. 4). The processor executes various functional applications and data processing of the server by running nonvolatile software programs, instructions and modules stored in the memory, namely, the micro service gateway method of the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a device performing the micro service gateway method, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory remotely located from the processor, and these remote memories may be connected to the member user behavior monitoring device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means may receive input numeric or character information and generate key signal inputs related to user settings and function control of the device performing the micro service gateway method. The output device may include a display device such as a display screen.
The one or more modules are stored in the memory and, when executed by the one or more processors, perform the microservice gateway method of any of the above method embodiments. The technical effect of the embodiment of the device for executing the micro service gateway method is the same as or similar to that of any method embodiment.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the list item operation in any method embodiment. Embodiments of the non-transitory computer storage medium may be the same or similar in technical effect to any of the method embodiments described above.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by a computer program that can be stored in a computer-readable storage medium and that, when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The technical effect of the embodiment of the computer program is the same as or similar to that of any of the method embodiments described above.
Furthermore, the apparatuses, devices, etc. described in the present disclosure may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, etc., and may also be large terminal devices, such as a server, etc., and therefore the scope of protection of the present disclosure should not be limited to a specific type of apparatus, device. The client disclosed by the present disclosure may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
Furthermore, the method according to the present disclosure may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method of the present disclosure.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
In addition, well known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the invention. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the present invention is to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (13)

1. A microservice gateway apparatus, comprising:
a message receiving module, configured to receive a request message, where the request message includes a request parameter;
the database is used for storing the request parameters and the corresponding service interface parameters;
the processing module is used for determining the request parameters according to the request message, searching the database according to the request parameters to determine the corresponding service interface parameters, and generating a legal interface address according to the service interface parameters;
and the message sending module is used for sending the access request message to the corresponding service according to the legal interface address.
2. The micro-service gateway device of claim 1, further comprising:
the interface configuration module is used for configuring the service with the service interface parameter by setting the request parameter and the corresponding service interface parameter;
the database is used for storing the set request parameters and the corresponding service interface parameters;
the testing module is used for inputting testing request parameters, searching the database according to the testing request parameters, determining the corresponding service interface parameters, determining the legal interface address according to the service interface parameters, and accessing services according to the legal interface address so as to test the configured services.
3. The micro-service gateway device of claim 1, further comprising:
the statistic module is used for counting the access quantity, the access frequency and the access time of each service according to the received request message; setting a high-frequency threshold, and determining the high-frequency access service of which the access frequency reaches the high-frequency threshold according to the access frequency of each service;
the message receiving module is used for receiving a response message returned by the service, wherein the response message comprises response data;
a cache module, configured to cache the response data of the high-frequency access service.
4. The micro-service gateway device of claim 1, further comprising:
the identity data generation module is used for generating corresponding legal identity data for the legally registered user;
the message sending module is used for sending the generated legal identity data;
the message receiving module is used for receiving the request message, and the request message also comprises user identity data;
the database is used for storing the request parameters and corresponding legal identity data;
and the identity authentication module is used for determining the user identity data according to the request message, searching the database according to the user identity data, and comparing the user identity data with the searched legal identity data so as to authenticate the user identity.
5. The micro-service gateway device of claim 2, wherein the request parameters comprise a service name and interface parameters, and the service interface parameters comprise a legal service name and legal interface parameters.
6. The micro-services gateway device of claim 5, wherein the request parameters further comprise a service version number, and wherein the service interface parameters further comprise a legal service version number.
7. A microservice gateway method, comprising:
receiving a request message, wherein the request message comprises request parameters;
determining the request parameters according to the request message, searching a database according to the request parameters to determine corresponding service interface parameters, and generating a legal interface address according to the service interface parameters;
and sending an access request message to a corresponding service according to the legal interface address.
8. The micro-service gateway method of claim 7, further comprising:
setting request parameters and corresponding service interface parameters to configure a service with the service interface parameters;
storing the set request parameters and the corresponding service interface parameters in a database;
inputting a test request parameter, searching the database according to the test request parameter, determining the corresponding service interface parameter, determining the legal interface address according to the service interface parameter, and accessing the service according to the legal interface address to test the configured service.
9. The micro-service gateway method of claim 7, further comprising:
according to the received request message, counting the access quantity, the access frequency and the access time of each service, and receiving a response message returned by the service, wherein the response message comprises response data;
setting a high-frequency threshold, and determining a high-frequency access service of which the access frequency reaches the high-frequency threshold according to the access frequency;
and caching the response data returned by the high-frequency access service.
10. The micro-service gateway method of claim 7, further comprising:
generating corresponding legal identity data for the legally registered user;
storing the legal identity data in the database;
sending the legal identity data;
receiving the request message, wherein the request message also comprises user identity data;
and determining the user identity data according to the request message, searching the database according to the user identity data, and comparing the user identity data with the searched legal identity data to verify the user identity.
11. The micro-service gateway method of claim 8, wherein the request parameters comprise a service name and interface parameters, and the service interface parameters comprise a legal service name and legal interface parameters.
12. The microservice gateway method of claim 11, wherein the request parameters further comprise a service version number and the service interface parameters further comprise a legal service version number.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 7 to 12 when executing the program.
CN201810910366.0A 2018-08-10 2018-08-10 Micro-service gateway device and method and electronic equipment Active CN110830280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810910366.0A CN110830280B (en) 2018-08-10 2018-08-10 Micro-service gateway device and method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810910366.0A CN110830280B (en) 2018-08-10 2018-08-10 Micro-service gateway device and method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110830280A true CN110830280A (en) 2020-02-21
CN110830280B CN110830280B (en) 2023-05-30

Family

ID=69541390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810910366.0A Active CN110830280B (en) 2018-08-10 2018-08-10 Micro-service gateway device and method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110830280B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111539019A (en) * 2020-04-21 2020-08-14 北京字节跳动网络技术有限公司 Application module processing method, device, equipment and storage medium
CN112311901A (en) * 2020-11-23 2021-02-02 北京世纪高通科技有限公司 Access amount statistical method and system
CN112350950A (en) * 2020-10-28 2021-02-09 北京中电普华信息技术有限公司 Request message control method and device
CN113037831A (en) * 2021-03-04 2021-06-25 中国农业银行股份有限公司 Service gateway message processing method and device
CN113806104A (en) * 2021-08-02 2021-12-17 北京房江湖科技有限公司 Interface access request processing method, API gateway, server and system
CN114338796A (en) * 2021-12-29 2022-04-12 中国农业银行股份有限公司 Dynamic reverse proxy method, device, reverse proxy system, device and medium
CN114816505A (en) * 2022-04-18 2022-07-29 上海博般数据技术有限公司 Configuration method and system of data service interface and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010043172A1 (en) * 2008-10-17 2010-04-22 华为技术有限公司 Method and device for service scheduling
CN105827446A (en) * 2016-03-31 2016-08-03 深圳市金溢科技股份有限公司 Intelligent traffic API gateway and intelligent traffic service system
CN106656630A (en) * 2017-01-13 2017-05-10 北京中电普华信息技术有限公司 Electric marketing service application system, and construction method and platform thereof
CN107733922A (en) * 2017-11-20 2018-02-23 百度在线网络技术(北京)有限公司 Method and apparatus for calling service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010043172A1 (en) * 2008-10-17 2010-04-22 华为技术有限公司 Method and device for service scheduling
CN105827446A (en) * 2016-03-31 2016-08-03 深圳市金溢科技股份有限公司 Intelligent traffic API gateway and intelligent traffic service system
CN106656630A (en) * 2017-01-13 2017-05-10 北京中电普华信息技术有限公司 Electric marketing service application system, and construction method and platform thereof
CN107733922A (en) * 2017-11-20 2018-02-23 百度在线网络技术(北京)有限公司 Method and apparatus for calling service

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111539019A (en) * 2020-04-21 2020-08-14 北京字节跳动网络技术有限公司 Application module processing method, device, equipment and storage medium
CN111539019B (en) * 2020-04-21 2024-01-09 北京字节跳动网络技术有限公司 Processing method, device, equipment and storage medium of application module
CN112350950A (en) * 2020-10-28 2021-02-09 北京中电普华信息技术有限公司 Request message control method and device
CN112311901A (en) * 2020-11-23 2021-02-02 北京世纪高通科技有限公司 Access amount statistical method and system
CN113037831A (en) * 2021-03-04 2021-06-25 中国农业银行股份有限公司 Service gateway message processing method and device
CN113806104A (en) * 2021-08-02 2021-12-17 北京房江湖科技有限公司 Interface access request processing method, API gateway, server and system
CN114338796A (en) * 2021-12-29 2022-04-12 中国农业银行股份有限公司 Dynamic reverse proxy method, device, reverse proxy system, device and medium
CN114338796B (en) * 2021-12-29 2024-04-30 中国农业银行股份有限公司 Dynamic reverse proxy method, device, reverse proxy system, equipment and medium
CN114816505A (en) * 2022-04-18 2022-07-29 上海博般数据技术有限公司 Configuration method and system of data service interface and electronic equipment

Also Published As

Publication number Publication date
CN110830280B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN110830280B (en) Micro-service gateway device and method and electronic equipment
CN107196950B (en) Verification method, verification device and server
CN108243188B (en) Interface access, interface call and interface verification processing method and device
CN110784450A (en) Single sign-on method and device based on browser
CN111176794B (en) Container management method, device and readable storage medium
EP3178011A1 (en) Method and system for facilitating terminal identifiers
CN106254319B (en) Light application login control method and device
CN107862091B (en) Control method and device for realizing webpage access
CN113709530B (en) Resource downloading method, system, electronic equipment and storage medium
CN112527835B (en) Authentication request processing method and device based on cache and related equipment
CN109286933B (en) Authentication method, device, system, computer equipment and storage medium
CN110704820A (en) Login processing method and device, electronic equipment and computer readable storage medium
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
CN113726774A (en) Client login authentication method, system and computer equipment
CN112819454A (en) Payment method, gateway device, server and storage medium
CN113645257B (en) Identity authentication method and device, electronic equipment and storage medium
CN110912865A (en) Security access control method, server and electronic equipment
CN112528268B (en) Cross-channel applet login management method and device and related equipment
CN111147235B (en) Object access method and device, electronic equipment and machine-readable storage medium
CN111355583B (en) Service providing system, method, device, electronic equipment and storage medium
CN110516172B (en) Resource calling method and device, computer equipment and storage medium
CN113395249A (en) Client login authentication method, system and computer equipment
CN111586014A (en) Network connection management apparatus and method
CN110943827A (en) Data acquisition method and device based on network protocol
CN112219416A (en) Techniques for authenticating data transmitted over a cellular network

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
GR01 Patent grant
GR01 Patent grant