CN109670300B - Micro-service cloud platform interface management and control system and method - Google Patents

Micro-service cloud platform interface management and control system and method Download PDF

Info

Publication number
CN109670300B
CN109670300B CN201811595148.9A CN201811595148A CN109670300B CN 109670300 B CN109670300 B CN 109670300B CN 201811595148 A CN201811595148 A CN 201811595148A CN 109670300 B CN109670300 B CN 109670300B
Authority
CN
China
Prior art keywords
interface
cloud platform
controlled
micro
information
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.)
Active
Application number
CN201811595148.9A
Other languages
Chinese (zh)
Other versions
CN109670300A (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.)
Taima Information Network Technology Co ltd
Original Assignee
Taima Information Network 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 Taima Information Network Technology Co ltd filed Critical Taima Information Network Technology Co ltd
Priority to CN201811595148.9A priority Critical patent/CN109670300B/en
Publication of CN109670300A publication Critical patent/CN109670300A/en
Application granted granted Critical
Publication of CN109670300B publication Critical patent/CN109670300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/54Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by adding security routines or objects to programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a micro-service cloud platform interface management and control system and a method, comprising the following steps: acquiring interface information of each interface of each micro-service cloud platform; synchronizing interface information of each interface of each micro-service cloud platform into a Redis and MySQL database; establishing an incidence relation between a service function of the vehicle and an interface and establishing whether the interface has information controlled or not; synchronizing the incidence relation between the vehicle service function and the interface and the information for establishing whether the interface is controlled or not to a Redis and MySQL database; intercepting the interface when monitoring a request for calling a certain interface, analyzing an interface address, a request type, a name of a micro service cloud platform to which the interface belongs, vehicle identification information and an operation type aiming at a vehicle in the request, finding out whether the interface is controlled or not from a Redis database according to the name of the micro service cloud platform, the interface address and the request type, calling the interface when the interface is not controlled, and interrupting the calling when the interface is controlled.

Description

微服务云平台接口管控系统及方法Microservice cloud platform interface management and control system and method

技术领域technical field

本发明涉及汽车与交通运输技术领域,特别是涉及一种微服务云平台接口管控系统及方法。The invention relates to the technical field of automobiles and transportation, in particular to a micro-service cloud platform interface management and control system and method.

背景技术Background technique

随着微服务技术的普及,以SaaS(软件即服务)方式为第三方企业提供服务的云平台越来越多。在汽车与交通运输领域中,许多接口对安全方面的要求特别高,如远程开关车门、远程上下电等。在技术上除了常规的安全校验之外,也对系统提出了在特殊情况下(如部分车辆远程控车安全码泄漏),禁止调用这些车辆远程控车接口的要求。With the popularization of microservice technology, there are more and more cloud platforms providing services to third-party enterprises in the form of SaaS (software as a service). In the field of automobile and transportation, many interfaces have particularly high security requirements, such as remote door opening and closing, remote power on and off, etc. Technically, in addition to the conventional security verification, the system also requires that in special cases (such as the leakage of the remote control vehicle security code of some vehicles), the request to call the remote control vehicle interface of these vehicles is prohibited.

发明内容SUMMARY OF THE INVENTION

本发明目的是提供一种微服务云平台接口管控系统及方法。The purpose of the present invention is to provide a micro-service cloud platform interface management and control system and method.

本发明是通过下述技术方案来解决上述技术问题的:The present invention solves the above-mentioned technical problems through the following technical solutions:

本发明提供一种微服务云平台接口管控系统,其特点在于,其包括获取模块、同步模块、Redis数据库、MySQL数据库、创建模块和管控模块;The invention provides a micro-service cloud platform interface management and control system, which is characterized in that it includes an acquisition module, a synchronization module, a Redis database, a MySQL database, a creation module and a management and control module;

所述获取模块用于获取各微服务云平台的每个接口的接口信息,所述接口信息包括接口地址、请求方式和接口功能描述;The obtaining module is used to obtain interface information of each interface of each microservice cloud platform, where the interface information includes interface address, request method and interface function description;

所述同步模块用于将各微服务云平台的各接口的接口信息同步至Redis数据库和MySQL数据库中;The synchronization module is used to synchronize the interface information of each interface of each microservice cloud platform to the Redis database and the MySQL database;

所述创建模块用于创建车辆的业务功能与接口的关联关系和建立接口有无被管控的信息;The creation module is used to create the association relationship between the business function of the vehicle and the interface and to establish whether the interface is controlled or not;

所述同步模块用于将车辆的业务功能与接口的关联关系和建立接口有无被管控的信息同步至Redis数据库和MySQL数据库中;The synchronization module is used for synchronizing the relationship between the business function of the vehicle and the interface and establishing the information on whether the interface is controlled or not to the Redis database and the MySQL database;

所述管控模块用于对各个接口进行管控,在监控到对某一接口进行调用的请求时进行拦截,解析请求中的接口地址、请求类型、所属微服务云平台名称、车辆识别信息和针对车辆的操作类型,根据所属微服务云平台名称、接口地址和请求类型从Redis数据库中查询出该接口是否被管控,在该接口不被管控时该接口被调用,在该接口被管控时中断本次调用。The management and control module is used to manage and control each interface, intercept when monitoring a request to call a certain interface, and parse the interface address, request type, name of the microservice cloud platform to which it belongs, vehicle identification information and target vehicle specific information in the request. According to the name of the microservice cloud platform, the interface address and the request type, it is queried from the Redis database whether the interface is controlled. When the interface is not controlled, the interface is called. When the interface is controlled, the current time is interrupted. transfer.

较佳地,所述创建模块用于在该接口对应多个业务功能时,建立接口对应的各个业务功能有无被管控的信息;Preferably, the creation module is configured to establish whether each business function corresponding to the interface is controlled or not when the interface corresponds to a plurality of business functions;

所述管控模块用于基于该接口不被管控进一步根据车辆识别信息和针对车辆的操作类型从Redis数据库中查询车辆识别信息对应的该操作类型是否被管控,在该操作类型不被管控时该接口被调用,在该操作类型被管控时中断本次调用。The control module is used to query whether the operation type corresponding to the vehicle identification information is controlled from the Redis database based on the vehicle identification information and the operation type for the vehicle based on the interface not being controlled. When the operation type is not controlled, the interface is is called, interrupting the call when the operation type is controlled.

较佳地,所述获取模块用于在微服务云平台启动时通过增量同步接口信息方式获取各微服务云平台的各接口的接口信息。Preferably, the acquisition module is configured to acquire interface information of each interface of each microservice cloud platform by means of incrementally synchronizing interface information when the microservice cloud platform is started.

较佳地,所述管控模块用于在该接口被管控时中断本次调用且发送一接口被管控的信息。Preferably, the management and control module is configured to interrupt the current call when the interface is under management and control, and send a message that the interface is under management and control.

较佳地,所述系统还包括注解模块,所述注解模块用于对接口的参数进行注解。Preferably, the system further includes an annotation module, which is used to annotate the parameters of the interface.

本发明还提供一种微服务云平台接口管控方法,其特点在于,其包括以下步骤:The present invention also provides a micro-service cloud platform interface management and control method, which is characterized in that it includes the following steps:

获取各微服务云平台的每个接口的接口信息,所述接口信息包括接口地址、请求方式和接口功能描述;Obtain interface information of each interface of each microservice cloud platform, where the interface information includes interface address, request method and interface function description;

将各微服务云平台的各接口的接口信息同步至Redis数据库和MySQL数据库中;Synchronize the interface information of each interface of each microservice cloud platform to the Redis database and MySQL database;

创建车辆的业务功能与接口的关联关系和建立接口有无被管控的信息;Create the relationship between the business function of the vehicle and the interface and establish whether the interface is controlled or not;

将车辆的业务功能与接口的关联关系和建立接口有无被管控的信息同步至Redis数据库和MySQL数据库中;Synchronize the relationship between the business function of the vehicle and the interface and establish whether the interface is controlled or not to the Redis database and MySQL database;

对各个接口进行管控,在监控到对某一接口进行调用的请求时进行拦截,解析请求中的接口地址、请求类型、所属微服务云平台名称、车辆识别信息和针对车辆的操作类型,根据所属微服务云平台名称、接口地址和请求类型从Redis数据库中查询出该接口是否被管控,在该接口不被管控时该接口被调用,在该接口被管控时中断本次调用。Manage and control each interface, intercept when monitoring a request to call a certain interface, and parse the interface address, request type, name of the microservice cloud platform to which it belongs, vehicle identification information, and operation type for the vehicle in the request. The microservice cloud platform name, interface address, and request type are queried from the Redis database to find out whether the interface is controlled. When the interface is not controlled, the interface is called, and the call is interrupted when the interface is controlled.

较佳地,在该接口对应多个业务功能时,建立接口对应的各个业务功能有无被管控的信息;Preferably, when the interface corresponds to multiple service functions, establish whether each service function corresponding to the interface is controlled or not;

基于该接口不被管控进一步根据车辆识别信息和针对车辆的操作类型从Redis数据库中查询车辆识别信息对应的该操作类型是否被管控,在该操作类型不被管控时该接口被调用,在该操作类型被管控时中断本次调用。Based on the fact that the interface is not controlled, it is further based on the vehicle identification information and the operation type for the vehicle to query whether the operation type corresponding to the vehicle identification information is controlled from the Redis database. When the operation type is not controlled, the interface is called. This call is interrupted when the type is managed.

较佳地,在微服务云平台启动时通过增量同步接口信息方式获取各微服务云平台的各接口的接口信息。Preferably, the interface information of each interface of each microservice cloud platform is acquired by means of incremental synchronization of interface information when the microservice cloud platform is started.

较佳地,在该接口被管控时中断本次调用且发送一接口被管控的信息。Preferably, when the interface is controlled, the current call is interrupted and a message that the interface is controlled is sent.

较佳地,对接口的参数进行注解。Preferably, the parameters of the interface are annotated.

在符合本领域常识的基础上,上述各优选条件,可任意组合,即得本发明各较佳实例。On the basis of conforming to common knowledge in the art, the above preferred conditions can be combined arbitrarily to obtain preferred examples of the present invention.

本发明的积极进步效果在于:The positive progressive effect of the present invention is:

本发明灵活方便的搜集接口信息,由于采取增量同步的方式,只有新增的接口信息会被同步到数据库中,除第一次同步外其他同步数据都很小,能很快完成同步。The invention collects interface information flexibly and conveniently. Due to the incremental synchronization method, only the newly added interface information will be synchronized to the database, and other synchronization data except the first synchronization are very small, and the synchronization can be completed quickly.

本发明灵活的管控配置、立即生效,在web界面中创建业务功能,并将业务功能和接口绑定,对该业务功能启用/禁用管控即可关闭/开启接口管控,无须修改代码。The invention has flexible management and control configuration, takes effect immediately, creates a business function in the web interface, binds the business function to the interface, and enables/disables the management and control of the business function to close/enable the interface management and control without modifying the code.

本发明最大限度的让业务代码与管控解耦,管控逻辑对业务代码透明,对代码的侵入度极低。The present invention decouples the business code from the management and control to the greatest extent, the management and control logic is transparent to the business code, and the intrusion to the code is extremely low.

附图说明Description of drawings

图1为本发明较佳实施例的微服务云平台接口管控系统的结构框图。FIG. 1 is a structural block diagram of a micro-service cloud platform interface management and control system according to a preferred embodiment of the present invention.

图2为本发明较佳实施例的微服务云平台接口管控方法的流程图。FIG. 2 is a flowchart of a microservice cloud platform interface management and control method according to a preferred embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

如图1所示,本实施例提供一种微服务云平台接口管控系统,包括获取模块1、同步模块2、Redis数据库3、MySQL数据库4、创建模块5、管控模块6和注解模块7。As shown in FIG. 1 , this embodiment provides a microservice cloud platform interface management and control system, including an acquisition module 1 , a synchronization module 2 , a Redis database 3 , a MySQL database 4 , a creation module 5 , a management and control module 6 and an annotation module 7 .

所述获取模块1用于在微服务云平台启动时通过增量同步接口信息方式获取各微服务云平台的每个接口的接口信息,所述接口信息包括接口地址、请求方式和接口功能描述。The obtaining module 1 is configured to obtain interface information of each interface of each micro-service cloud platform by incrementally synchronizing interface information when the micro-service cloud platform is started, where the interface information includes interface address, request method and interface function description.

所述同步模块2用于将各微服务云平台的各接口的接口信息同步至Redis数据库3和MySQL数据库4中。The synchronization module 2 is used to synchronize the interface information of each interface of each microservice cloud platform to the Redis database 3 and the MySQL database 4.

所述创建模块5用于创建车辆的业务功能与接口的关联关系和建立接口有无被管控的信息,以及在该接口对应多个业务功能时,建立接口对应的各个业务功能有无被管控的信息。The creation module 5 is used to create the relationship between the business function of the vehicle and the interface, and to establish whether the interface is controlled or not, and when the interface corresponds to multiple business functions, whether each business function corresponding to the established interface is controlled or not. information.

所述同步模块2用于将车辆的业务功能与接口的关联关系和建立接口有无被管控的信息同步至Redis数据库3和MySQL数据库4中。The synchronization module 2 is used for synchronizing the relationship between the business function of the vehicle and the interface and establishing the information on whether the interface is under control to the Redis database 3 and the MySQL database 4 .

所述管控模块6用于对各个接口进行管控,在监控到对某一接口进行调用的请求时进行拦截,解析请求中的接口地址、请求类型、所属微服务云平台名称、车辆识别信息和针对车辆的操作类型,根据所属微服务云平台名称、接口地址和请求类型从Redis数据库中查询出该接口是否被管控,在该接口不被管控时该接口被调用,在该接口被管控时中断本次调用且发送一接口被管控的信息。基于该接口不被管控进一步根据车辆识别信息和针对车辆的操作类型从Redis数据库中查询车辆识别信息对应的该操作类型是否被管控,在该操作类型不被管控时该接口被调用,在该操作类型被管控时中断本次调用且发送一该操作类型被管控的信息。The management and control module 6 is used to manage and control each interface, intercept when a request to call a certain interface is monitored, and parse the interface address, request type, name of the microservice cloud platform to which it belongs, vehicle identification information and target information in the request. The operation type of the vehicle. According to the name of the microservice cloud platform, the interface address and the request type, it is queried from the Redis database whether the interface is controlled. When the interface is not controlled, the interface is called. When the interface is controlled, this interface is interrupted. call and send a message that the interface is managed. Based on the fact that the interface is not controlled, it is further based on the vehicle identification information and the operation type for the vehicle to query whether the operation type corresponding to the vehicle identification information is controlled from the Redis database. When the operation type is not controlled, the interface is called. When the type is controlled, this call is interrupted and a message that the operation type is controlled is sent.

大多数情况下,一个接口对应一个业务功能(如:车况查询、车辆定位分别对应两个接口),但也存在一个接口对应多个业务功能的特殊情况,如远程控车只有一个接口:通过传入不同的operationType(操作类型:包括开关车门、开关空调、开关发动机等)来区分具体的操作,称此类接口为复合型接口。In most cases, one interface corresponds to one business function (for example: vehicle condition query and vehicle positioning correspond to two interfaces respectively), but there are also special cases in which one interface corresponds to multiple business functions, such as only one interface for remote control of the car: Enter different operationType (operation type: including opening and closing the door, opening and closing the air conditioner, opening and closing the engine, etc.) to distinguish specific operations, and this type of interface is called a composite interface.

对于复合型接口的管控需要获取运行时的operationType,通过解析operationType的值来区分到底是哪种业务功能(开车门还是开空调)。这种场景对业务功能提出了更高的要求,即部分业务功能需要与operationType的值进行关联,如:远程鸣笛这个业务功能与operationType为HONK相关联。可以事先管控远程鸣笛这个功能,当远程控车接口被调用时,解析接口中的operationType参数。如果operationType为HONK,则限制本次调用,否则不做限制。For the control of the composite interface, it is necessary to obtain the operationType at runtime, and to distinguish which business function (opening the door or turning on the air conditioner) is by parsing the value of the operationType. This scenario puts forward higher requirements for business functions, that is, some business functions need to be associated with the value of operationType, for example, the business function of remote honking is associated with operationType of HONK. The function of remote whistle can be controlled in advance. When the remote control car interface is called, the operationType parameter in the interface is parsed. If the operationType is HONK, the call will be restricted, otherwise no restriction will be applied.

在本方案中业务功能分为2种类型:默认和远程控车。业务功能的类型是可以自定义的,根据具体的业务要求进行设置即可(远程控车本身可看做一个设置)。默认的业务功能不需要与operationType关联,而远程控车必须与operationType的值关联。在远程控车业务功能的关联界面中会通过下拉列表的方式让用户选择operationType,从而避免手动录入出错。下拉列表的值就来自于名为OpertionType的枚举。In this solution, business functions are divided into two types: default and remote control. The type of business function can be customized and can be set according to specific business requirements (the remote control car itself can be regarded as a setting). The default business function does not need to be associated with operationType, and the remote control car must be associated with the value of operationType. In the associated interface of the remote car control business function, the user can select the operationType through a drop-down list, so as to avoid manual input errors. The value of the drop-down list comes from an enumeration called OperationType.

所述注解模块7用于对接口的参数进行注解。车辆Id为1的车不能调用车况查询接口和车辆定位接口,其他车辆能正常调用车况查询接口和车辆定位接口。假设这2个接口由于历史原因,对车辆Id这个字段采取了不同的命名方式,如车况查询接口参数命名为vId,车辆定位接口参数命名为vehicleId。此时,在使用AOP反射解析参数的时候就会由于参数名字的不同而做不到统一解析。为了解决此类问题,本解决方案利用java注解技术,定义名为@VehicleId的注解,该注解类型为PARAMETER和FIELD,可以用于接口参数或者字段上。在AOP解析逻辑中先默认解析vehicleId,如果没有解析到则尝试解析被@VehicleId注解的参数或者字段。因此对于命名不统一的车况查询接口(命名统一的接口则无须修改),可以在vid参数前面添加@VehicleId注解,这样只需对代码进行微小改动即可使其支持接口管控。The annotation module 7 is used to annotate the parameters of the interface. The vehicle with the vehicle ID of 1 cannot call the vehicle condition query interface and the vehicle location interface, and other vehicles can normally call the vehicle condition query interface and the vehicle location interface. Suppose these two interfaces have adopted different naming methods for the vehicle Id field due to historical reasons. For example, the vehicle condition query interface parameter is named vId, and the vehicle positioning interface parameter is named vehicleId. At this time, when using AOP reflection to parse parameters, unified parsing cannot be achieved due to different parameter names. In order to solve such problems, this solution uses java annotation technology to define an annotation named @VehicleId, which is of type PARAMETER and FIELD, and can be used on interface parameters or fields. In the AOP parsing logic, the vehicleId is first parsed by default. If it is not parsed, it tries to parse the parameters or fields annotated with @VehicleId. Therefore, for the vehicle condition query interfaces with different names (the interfaces with uniform names do not need to be modified), you can add the @VehicleId annotation in front of the vid parameter, so that only minor changes to the code can be made to support interface control.

如图2所示,本实施例还提供一种微服务云平台接口管控方法,其包括以下步骤:As shown in FIG. 2 , this embodiment further provides a method for interface management and control of a micro-service cloud platform, which includes the following steps:

步骤101、在微服务云平台启动时通过增量同步接口信息方式获取各微服务云平台的每个接口的接口信息,所述接口信息包括接口地址、请求方式和接口功能描述。Step 101: Obtain interface information of each interface of each microservice cloud platform by incrementally synchronizing interface information when the microservice cloud platform is started, where the interface information includes interface address, request method and interface function description.

步骤102、将各微服务云平台的各接口的接口信息同步至Redis数据库和MySQL数据库中。Step 102: Synchronize the interface information of each interface of each microservice cloud platform to the Redis database and the MySQL database.

步骤103、创建车辆的业务功能与接口的关联关系和建立接口有无被管控的信息,在该接口对应多个业务功能时,建立接口对应的各个业务功能有无被管控的信息。Step 103 , establishing the relationship between the business function of the vehicle and the interface and establishing the information on whether the interface is controlled or not. When the interface corresponds to multiple business functions, establish whether each business function corresponding to the interface is controlled or not.

步骤104、将车辆的业务功能与接口的关联关系和建立接口有无被管控的信息同步至Redis数据库和MySQL数据库中。Step 104 , synchronizing the relationship between the business function of the vehicle and the interface and establishing the information on whether the interface is under control to the Redis database and the MySQL database.

步骤105、对各个接口进行管控,在监控到对某一接口进行调用的请求时进行拦截,解析请求中的接口地址、请求类型、所属微服务云平台名称、车辆识别信息和针对车辆的操作类型,根据所属微服务云平台名称、接口地址和请求类型从Redis数据库中查询出该接口是否被管控,在该接口不被管控时该接口被调用,在该接口被管控时中断本次调用且发送一车辆被管控的信息;根据车辆识别信息和针对车辆的操作类型从Redis数据库中查询车辆识别信息对应的该操作类型是否被管控,在该操作类型不被管控时该接口被调用,在该操作类型被管控时中断本次调用。Step 105: Manage and control each interface, intercept when monitoring a request to call a certain interface, and parse the interface address, request type, name of the microservice cloud platform to which it belongs, vehicle identification information, and operation type for the vehicle in the request. , according to the name of the microservice cloud platform, the interface address and the request type to query whether the interface is controlled from the Redis database. When the interface is not controlled, the interface is called. When the interface is controlled, the call is interrupted and sent The information that a vehicle is controlled; according to the vehicle identification information and the operation type for the vehicle, query from the Redis database whether the operation type corresponding to the vehicle identification information is controlled. When the operation type is not controlled, the interface is called. This call is interrupted when the type is managed.

虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这些仅是举例说明,本发明的保护范围是由所附权利要求书限定的。本领域的技术人员在不背离本发明的原理和实质的前提下,可以对这些实施方式做出多种变更或修改,但这些变更和修改均落入本发明的保护范围。Although specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative, and the scope of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principle and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims (8)

1. A micro-service cloud platform interface management and control system is characterized by comprising an acquisition module, a synchronization module, a Redis database, a MySQL database, a creation module and a management and control module;
the acquisition module is used for acquiring interface information of each interface of each micro-service cloud platform, wherein the interface information comprises an interface address, a request mode and interface function description;
the synchronization module is used for synchronizing interface information of each interface of each micro service cloud platform into a Redis database and a MySQL database;
the creating module is used for creating an incidence relation between the service function of the vehicle and the interface and establishing whether the interface has the controlled information;
the synchronization module is used for synchronizing the incidence relation between the service function of the vehicle and the interface and the information for establishing whether the interface is controlled or not to a Redis database and a MySQL database;
the management and control module is used for managing and controlling each interface, intercepting when monitoring a request for calling a certain interface, analyzing an interface address, a request type, a name of a affiliated micro-service cloud platform, vehicle identification information and an operation type aiming at a vehicle in the request, inquiring whether the interface is managed and controlled from a Redis database according to the name of the affiliated micro-service cloud platform, the interface address and the request type, calling when the interface is not managed and controlled, and interrupting the calling when the interface is managed and controlled;
the creation module is used for establishing whether each service function corresponding to the interface has the managed and controlled information when the interface corresponds to a plurality of service functions;
the management and control module is used for inquiring whether the operation type corresponding to the vehicle identification information is managed and controlled from the Redis database according to the vehicle identification information and the operation type aiming at the vehicle based on the fact that the interface is not managed and controlled, the interface is called when the operation type is not managed and the call is interrupted when the operation type is managed and controlled.
2. The micro-service cloud platform interface management and control system of claim 1, wherein the obtaining module is configured to obtain interface information of each interface of each micro-service cloud platform in an incremental synchronization interface information manner when the micro-service cloud platform is started.
3. The micro-service cloud platform interface management and control system of claim 1, wherein the management and control module is configured to interrupt the call and send information that an interface is managed and controlled when the interface is managed and controlled.
4. The micro-service cloud platform interface management and control system of claim 1 further comprising an annotation module for annotating parameters of the interface.
5. A micro-service cloud platform interface management and control method is characterized by comprising the following steps:
acquiring interface information of each interface of each micro-service cloud platform, wherein the interface information comprises an interface address, a request mode and interface function description;
synchronizing interface information of each interface of each micro-service cloud platform into a Redis database and a MySQL database;
establishing an incidence relation between a service function of the vehicle and an interface and establishing whether the interface has information controlled or not;
synchronizing the incidence relation between the service function of the vehicle and the interface and the information for establishing whether the interface is controlled or not into a Redis database and a MySQL database;
managing and controlling each interface, intercepting when monitoring a request for calling a certain interface, analyzing an interface address, a request type, a name of a affiliated micro-service cloud platform, vehicle identification information and an operation type for a vehicle in the request, inquiring whether the interface is managed and controlled from a Redis database according to the name of the affiliated micro-service cloud platform, the interface address and the request type, calling when the interface is not managed and controlled, and interrupting the calling when the interface is managed and controlled;
when the interface corresponds to a plurality of service functions, establishing whether each service function corresponding to the interface has information controlled or not;
and inquiring whether the operation type corresponding to the vehicle identification information is managed or not from the Redis database according to the vehicle identification information and the operation type aiming at the vehicle based on the fact that the interface is not managed, wherein the interface is called when the operation type is not managed, and the calling is interrupted when the operation type is managed.
6. The method for managing an interface of a micro service cloud platform according to claim 5, wherein the interface information of each interface of each micro service cloud platform is obtained by incrementally synchronizing the interface information when the micro service cloud platform is started.
7. The method as claimed in claim 5, wherein the call is interrupted and an interface managed message is sent when the interface is managed.
8. The micro-service cloud platform interface hosting method of claim 5 wherein the parameters of the interface are annotated.
CN201811595148.9A 2018-12-25 2018-12-25 Micro-service cloud platform interface management and control system and method Active CN109670300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811595148.9A CN109670300B (en) 2018-12-25 2018-12-25 Micro-service cloud platform interface management and control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811595148.9A CN109670300B (en) 2018-12-25 2018-12-25 Micro-service cloud platform interface management and control system and method

Publications (2)

Publication Number Publication Date
CN109670300A CN109670300A (en) 2019-04-23
CN109670300B true CN109670300B (en) 2020-12-22

Family

ID=66147227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811595148.9A Active CN109670300B (en) 2018-12-25 2018-12-25 Micro-service cloud platform interface management and control system and method

Country Status (1)

Country Link
CN (1) CN109670300B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430079B (en) 2019-08-05 2021-03-16 腾讯科技(深圳)有限公司 Vehicle-road cooperation system
CN111669425B (en) * 2020-04-14 2022-12-09 福建天泉教育科技有限公司 Method for monitoring microservice interface and storage medium
CN111539019B (en) * 2020-04-21 2024-01-09 北京字节跳动网络技术有限公司 Processing method, device, equipment and storage medium of application module
CN112231379A (en) * 2020-10-16 2021-01-15 苏州浪潮智能科技有限公司 API audit method, device, device and storage medium based on microservice architecture
CN116455917B (en) * 2023-06-15 2023-09-22 上海观安信息技术股份有限公司 Data synchronization method and device, electronic equipment and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550033A (en) * 2016-10-27 2017-03-29 普元信息技术股份有限公司 Based on the system and method that cloud computing system realizes simulation the whole network ability open platform

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170168664A1 (en) * 2015-12-15 2017-06-15 Sap Se Real time data analytics and visualization
US20170187785A1 (en) * 2015-12-23 2017-06-29 Hewlett Packard Enterprise Development Lp Microservice with decoupled user interface
CN105872051A (en) * 2016-03-31 2016-08-17 浪潮通信信息系统有限公司 Capability opening management and control service platform in government-enterprise cloud platform
US20180300763A1 (en) * 2017-04-12 2018-10-18 Campaign Partners, Inc. Non-profit funding campaign management employing a predictive analytics intelligence platform
CN108901022B (en) * 2018-06-28 2021-08-20 深圳云之家网络有限公司 Micro-service unified authentication method and gateway

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550033A (en) * 2016-10-27 2017-03-29 普元信息技术股份有限公司 Based on the system and method that cloud computing system realizes simulation the whole network ability open platform

Also Published As

Publication number Publication date
CN109670300A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN109670300B (en) Micro-service cloud platform interface management and control system and method
US9471647B2 (en) Node-level sub-queries in distributed databases
CN102982141B (en) A kind of method and device realizing distributed data base agency
CN103067463B (en) user root authority centralized management system and management method
US11853737B1 (en) Metadata driven product configuration management
US20090171475A1 (en) System, method, and computer-readable medium for development and deployment of self-describing controlled device modules in a control system
US20150188995A1 (en) Deploying programs in a cluster node
WO2019000629A1 (en) Multi-data-source data synchronizing method and system, application server and computer readable storage medium
US11671459B2 (en) Managing network connections based on their endpoints
WO2019149051A1 (en) Method for configuring automobile diagnosis function, apparatus, and automobile diagnosis device
EP4160400B1 (en) Synchronization across different applications
US11726443B2 (en) Efficient controller data generation and extraction
CN106021149B (en) Multiple connection management for bluetooth low energy devices
CN109144512B (en) Method and system for generating API
CN113918308A (en) Interface calling method, system, readable storage medium and computer device
WO2019174190A1 (en) Method for importing data back, apparatus, computer device and storage medium
US20070240165A1 (en) System and method for aggregating data from multiple sources to provide a single CIM object
CN111796984A (en) Data monitoring method and device, computer equipment and storage medium
US20150370598A1 (en) Common system services for managing configuration and other runtime settings of applications
CN107015831A (en) A kind of client updating management method upgraded based on server end and system
CN112765246B (en) Task processing method, device, electronic equipment and storage medium
CN111740972B (en) Method, device, equipment and storage medium for updating communication protocol stack information
US9235437B2 (en) Method and integration component for integrating OSGi environments into a Service-oriented Architecture
CN118432971A (en) Data processing method, system, computer device and storage medium
CN115225481B (en) Gateway diagnostic routing configuration method, device, vehicle gateway, vehicle and medium

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Micro service cloud platform interface management and control system and method

Effective date of registration: 20221021

Granted publication date: 20201222

Pledgee: Industrial Bank Co.,Ltd. Shanghai West sub branch

Pledgor: TAIMA INFORMATION NETWORK TECHNOLOGY Co.,Ltd.

Registration number: Y2022310000291

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230926

Granted publication date: 20201222

Pledgee: Industrial Bank Co.,Ltd. Shanghai West sub branch

Pledgor: TAIMA INFORMATION NETWORK TECHNOLOGY Co.,Ltd.

Registration number: Y2022310000291

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Microservice Cloud Platform Interface Control System and Method

Effective date of registration: 20231016

Granted publication date: 20201222

Pledgee: Industrial Bank Co.,Ltd. Shanghai West sub branch

Pledgor: TAIMA INFORMATION NETWORK TECHNOLOGY Co.,Ltd.

Registration number: Y2023310000647

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20201222

Pledgee: Industrial Bank Co.,Ltd. Shanghai West sub branch

Pledgor: TAIMA INFORMATION NETWORK TECHNOLOGY Co.,Ltd.

Registration number: Y2023310000647

PC01 Cancellation of the registration of the contract for pledge of patent right