CN115733837B - Information processing method, gateway, system and storage medium - Google Patents
Information processing method, gateway, system and storage medium Download PDFInfo
- Publication number
- CN115733837B CN115733837B CN202111005556.6A CN202111005556A CN115733837B CN 115733837 B CN115733837 B CN 115733837B CN 202111005556 A CN202111005556 A CN 202111005556A CN 115733837 B CN115733837 B CN 115733837B
- Authority
- CN
- China
- Prior art keywords
- request
- account
- information
- sub
- platform
- 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
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 47
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 238000000034 method Methods 0.000 claims abstract description 65
- 230000004044 response Effects 0.000 claims abstract description 31
- 238000012545 processing Methods 0.000 claims description 44
- 230000008569 process Effects 0.000 claims description 35
- 230000015654 memory Effects 0.000 claims description 32
- 238000004891 communication Methods 0.000 claims description 15
- 238000012795 verification Methods 0.000 claims description 4
- 239000008186 active pharmaceutical agent Substances 0.000 description 114
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 13
- 238000004458 analytical method Methods 0.000 description 7
- 230000006399 behavior Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及物联网领域,尤其涉及一种信息处理方法、网关、系统和存储介质。The present application relates to the field of Internet of Things, and in particular to an information processing method, gateway, system and storage medium.
背景技术Background technique
相关技术中,物联卡用户通常需要借助自主研发的调用功能或委托第三方平台,在物联卡能力开放服务平台进行相关业务能力的调用,这样使得业务能力的调用实现过程较为复杂且能力调用成本较高。In the related technologies, IoT card users usually need to use self-developed calling functions or entrust a third-party platform to call related business capabilities on the IoT card capability exposure service platform, which makes the calling process of business capabilities more complicated and the cost of capability calling is higher.
发明内容Summary of the invention
为解决上述技术问题,本申请实施例提供一种信息处理方法、网关、系统和存储介质,通过能够发出相关请求信息的子账户,以扩大申请能力的用户范围;进而在实现一个主账户关联多个子账户,以实现申请能力的灵活调用的基础上,通过边缘网关将相关请求信息发送至平台网关,能够提高相关业务能力的调用效率,同时能够降低相关业务能力调用时所需的成本。In order to solve the above technical problems, the embodiments of the present application provide an information processing method, a gateway, a system and a storage medium, which expand the user scope of application capabilities through sub-accounts that can issue relevant request information; and then on the basis of associating a main account with multiple sub-accounts to achieve flexible calling of application capabilities, the relevant request information is sent to the platform gateway through the edge gateway, which can improve the calling efficiency of relevant business capabilities and reduce the cost required for calling relevant business capabilities.
为达到上述目的,本申请的技术方案是这样实现的:To achieve the above purpose, the technical solution of this application is implemented as follows:
本申请实施例提供一种信息处理方法,应用于边缘网关,所述方法包括:The present application provides an information processing method, which is applied to an edge gateway. The method includes:
响应于输入的携带子鉴权信息的请求信息,确定发出所述请求信息的子账户;In response to the input request information carrying the sub-authentication information, determining the sub-account that issued the request information;
确定与所述子账户相匹配的主账户;determining a master account that matches the sub-account;
确定与所述主账户关联的主鉴权信息;Determining master authentication information associated with the master account;
基于所述主鉴权信息和所述请求信息,生成平台请求;generating a platform request based on the primary authentication information and the request information;
发送所述平台请求至平台网关,以使所述平台网关确定与所述请求信息相匹配的请求结果。The platform request is sent to a platform gateway so that the platform gateway determines a request result that matches the request information.
本申请实施例提供一种信息处理方法,应用于平台网关,所述方法包括:The present application provides an information processing method, which is applied to a platform gateway. The method includes:
接收边缘网关发送的目标(Application Programming Interface,API)的标识信息;其中,所述目标API为处理请求信息的处理时长大于预设时长的API;Receive identification information of a target (Application Programming Interface, API) sent by an edge gateway; wherein the target API is an API whose processing time for processing request information is greater than a preset time;
接收所述边缘网关发送的平台请求;Receiving a platform request sent by the edge gateway;
在所述平台请求对应的API为所述目标API的情况下,基于所述平台请求中携带的调用时间,控制所述目标API生成与所述平台请求对应的请求结果;In a case where the API corresponding to the platform request is the target API, based on the call time carried in the platform request, controlling the target API to generate a request result corresponding to the platform request;
发送所述请求结果至所述边缘网关。Send the request result to the edge gateway.
本申请实施例提供一种边缘网关,包括:第一处理器、第一存储器和第一通信总线;其中,所述第一通信总线用于实现所述第一处理器和所述第一存储器之间的通信连接;An embodiment of the present application provides an edge gateway, comprising: a first processor, a first memory, and a first communication bus; wherein the first communication bus is used to implement a communication connection between the first processor and the first memory;
所述第一处理器用于执行所述第一存储器中的程序,以实现应用于边缘网关的信息处理方法。The first processor is used to execute the program in the first memory to implement the information processing method applied to the edge gateway.
本申请实施例提供一种平台网关,包括:第二处理器、第二存储器和第二通信总线;其中,所述第二通信总线用于实现所述第二处理器和所述第二存储器之间的通信连接;An embodiment of the present application provides a platform gateway, comprising: a second processor, a second memory, and a second communication bus; wherein the second communication bus is used to implement a communication connection between the second processor and the second memory;
所述第二处理器用于执行所述第二存储器中的程序,以实现应用于平台网关的信息处理方法。The second processor is used to execute the program in the second memory to implement the information processing method applied to the platform gateway.
本申请实施例还提供一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现上述所述的信息处理方法。An embodiment of the present application also provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the above-mentioned information processing method.
本申请实施例还提供一种信息处理系统,包括上述的边缘网关和平台网关。An embodiment of the present application also provides an information processing system, including the above-mentioned edge gateway and platform gateway.
本申请实施例提供的信息处理方法、网关、系统和存储介质,首先,响应于输入的携带子鉴权信息的请求信息,确定发出所述请求信息的子账户;其次,确定与所述子账户相匹配的主账户;确定与所述主账户关联的主鉴权信息;然后,基于所述主鉴权信息和所述请求信息,生成平台请求;最后,发送所述平台请求至平台网关,以使所述平台网关确定与所述请求信息相匹配的请求结果。如此,通过能够发出相关请求信息的子账户,以扩大申请能力的用户范围;进而在实现一个主账户关联多个子账户,以实现申请能力的灵活调用的基础上,通过边缘网关将相关请求信息发送至平台网关,能够提高相关业务能力的调用效率,同时能够降低相关业务能力调用时所需的成本。The information processing method, gateway, system and storage medium provided by the embodiments of the present application firstly determine the subaccount that issues the request information in response to the input request information carrying sub-authentication information; secondly, determine the main account that matches the subaccount; determine the main authentication information associated with the main account; then, generate a platform request based on the main authentication information and the request information; finally, send the platform request to the platform gateway so that the platform gateway determines the request result that matches the request information. In this way, the user range of application capabilities can be expanded through subaccounts that can issue relevant request information; and then, on the basis of realizing that a main account is associated with multiple subaccounts to realize flexible calling of application capabilities, the relevant request information is sent to the platform gateway through the edge gateway, which can improve the calling efficiency of relevant business capabilities and reduce the cost required for calling relevant business capabilities.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种应用于边缘网关的信息处理方法的流程示意图;FIG1 is a flow chart of an information processing method applied to an edge gateway provided in an embodiment of the present application;
图2为本申请实施例提供的另一种应用于边缘网关的信息处理方法的流程示意图;FIG2 is a flow chart of another information processing method applied to an edge gateway provided in an embodiment of the present application;
图3为本申请实施例提供的一种应用于平台网关的信息处理方法的流程示意图;FIG3 is a flow chart of an information processing method applied to a platform gateway provided in an embodiment of the present application;
图4为本申请实施例提供的一种信息处理方法的流程示意图;FIG4 is a schematic diagram of a flow chart of an information processing method provided in an embodiment of the present application;
图5为应用本申请实施例提供的一种边缘网关和平台网关组成的系统结构示意图;FIG5 is a schematic diagram of a system structure consisting of an edge gateway and a platform gateway provided by an embodiment of the present application;
图6为本申请实施例提供的一种管理平台处理业务的流程示意图;FIG6 is a schematic diagram of a process of processing services by a management platform provided in an embodiment of the present application;
图7为本申请实施例提供的一种边缘网关处理业务的流程示意图;FIG7 is a schematic diagram of a process flow of an edge gateway processing service provided in an embodiment of the present application;
图8为本申请实施例提供的一种边缘网关的结构示意图;FIG8 is a schematic diagram of the structure of an edge gateway provided in an embodiment of the present application;
图9为本申请实施例提供的一种平台网关的结构示意图。FIG9 is a schematic diagram of the structure of a platform gateway provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
应理解,说明书通篇中提到的“本申请实施例”或“前述实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“本申请实施例中”或“在前述实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中应。在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the aforementioned embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
在未做特殊说明的情况下,信息处理设备执行本申请实施例中的任一步骤,可以是信息处理设备的处理器执行该步骤。还值得注意的是,本申请实施例并不限定信息处理设备执行下述步骤的先后顺序。另外,不同实施例中对数据进行处理所采用的方式可以是相同的方法或不同的方法。还需说明的是,本申请实施例中的任一步骤是信息处理设备可以独立执行的,即信息处理设备执行下述实施例中的任一步骤时,可以不依赖于其它步骤的执行。Unless otherwise specified, the information processing device performs any step in the embodiments of the present application, and the processor of the information processing device may perform the step. It is also worth noting that the embodiments of the present application do not limit the order in which the information processing device performs the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the information processing device, that is, when the information processing device executes any step in the following embodiments, it may not rely on the execution of other steps.
相关技术中,物联卡能力开放服务平台对外提供包括物联卡管理、漫途定位、终端控制、安全防护、业务办理、数据统计、人工智能(Artificial Intelligence,AI)和专属定制等八大能力。物联卡能力开放服务平台通过网关管理访问授权、流量控制和后端路由等实现相关能力的调用;其中,物联卡所属客户发起调用API能力的请求时,请求首先进入网关,通过网关的鉴权、流量控制后才路由到正确的后端服务。这些网关和后端服务都是部署在业务内部系统中,以RESTFUL接口形式提供给客户使用。In the related technologies, the IoT card capability exposure service platform provides eight capabilities including IoT card management, roaming positioning, terminal control, security protection, business processing, data statistics, artificial intelligence (AI) and exclusive customization. The IoT card capability exposure service platform implements the call of related capabilities through gateway management access authorization, traffic control and back-end routing; among them, when the customer of the IoT card initiates a request to call the API capability, the request first enters the gateway, and is routed to the correct back-end service after passing the gateway's authentication and traffic control. These gateways and back-end services are deployed in the internal business system and provided to customers in the form of RESTFUL interfaces.
同时,接入物联卡能力开放服务平台的企业客户通常采用以下三种方式来实现相关业务能力的调用。At the same time, corporate customers who access the IoT card capability exposure service platform usually use the following three methods to call related business capabilities.
一、企业客户自行研发一套调用API能力的功能嵌入到内部系统或硬件中,根据API使用手册,组装对应的统一资源定位器(Uniform Resource Locator,URL)能力请求地址和参数,解析返回的结果,实现能力调用。1. Enterprise customers develop a set of API capability calling functions and embed them into internal systems or hardware. According to the API user manual, they assemble the corresponding Uniform Resource Locator (URL) capability request address and parameters, parse the returned results, and implement capability calling.
二、购买集成了API能力的第三方平台,将卡相关业务托管于第三方。2. Purchase a third-party platform with integrated API capabilities and entrust card-related services to a third party.
三、通过浏览器URL地址访问获取相应的API能力。3. Access the corresponding API capabilities through the browser URL address.
如此,对于不熟悉API业务的企业客户来说,自行研发会增加很大的人力、物力的投入;同时对于购买第三方平台的企业来说,将卡相关业务托管在第三方平台,无法查看调用API的记录和日志,维护极其困难,不但未降低调用、维护API能力的难度,反而增加了业务流程的复杂度;以及对于通过浏览器URL地址获取API能力的中小型客户,使用非常不方便。Therefore, for corporate customers who are not familiar with API business, self-research and development will greatly increase the investment of manpower and material resources. At the same time, for enterprises that purchase third-party platforms, hosting card-related businesses on third-party platforms makes it impossible to view the records and logs of API calls, making maintenance extremely difficult. Not only does it not reduce the difficulty of calling and maintaining API capabilities, but it increases the complexity of business processes. It is also very inconvenient for small and medium-sized customers who obtain API capabilities through browser URL addresses.
除了以上不足外,这三种情形还都存在如下缺陷:In addition to the above shortcomings, these three situations also have the following defects:
(1)一个开卡客户只有一个账户用于生成鉴权信息,当鉴权信息失败后,会引起同一账户下其他子账户调用能力失败;当有多个子账户同时获取鉴权信息时,容易发生争抢,导致其他子账户刚获取的鉴权信息失效,并给API侧的网关带来获取鉴权信息的请求压力。(1) A card-opening customer has only one account for generating authentication information. When the authentication information fails, other sub-accounts under the same account will fail to call the authentication information. When multiple sub-accounts obtain authentication information at the same time, competition is likely to occur, causing the authentication information just obtained by other sub-accounts to become invalid, and bringing pressure on the gateway on the API side to obtain authentication information.
(2)开卡客户无法灵活使用名下拥有的卡,如分组管理,即将卡分配给不同的部门等,企业客户无法智能的实现API调用能力的数据统计类业务,必须以调用API能力的方式实现,无形中增加了客户的调用成本。(2) Card-opening customers cannot flexibly use the cards they own, such as group management, that is, assigning cards to different departments. Corporate customers cannot intelligently implement data statistics services using API call capabilities, and must implement them by calling API capabilities, which invisibly increases the customer's calling costs.
(3)物联卡能力开放服务平台对外提供了一些常用且耗时的能力,有些能力还存在很大时延,API网关并未有相关的优化方案。(3) The IoT card capability exposure service platform provides some commonly used and time-consuming capabilities to the outside world. Some capabilities have large delays, and the API gateway does not have relevant optimization solutions.
基于以上问题,本申请实施例提供一种信息处理方法,应用于边缘网关,参照图1所示,该方法包括以下步骤:Based on the above problems, an embodiment of the present application provides an information processing method, which is applied to an edge gateway. As shown in FIG1 , the method includes the following steps:
步骤101、响应于输入的携带子鉴权信息的请求信息,确定发出所述请求信息的子账户。Step 101: In response to an input request message carrying sub-authentication information, determine the sub-account that issued the request message.
在本申请实施例中,边缘网关可以是任一具有数据处理能力的电子设备。In the embodiment of the present application, the edge gateway may be any electronic device with data processing capabilities.
其中,边缘网关可以是部署在网络边缘侧的网关,通过网络联接、协议转换等功能联接物理和数字世界,提供轻量化的联接管理、实时数据分析及应用管理功能的电子设备。在本申请实施例中,边缘网关是能够与平台网关,即能力开放平台API侧网关进行信息交互的设备或服务器。Among them, the edge gateway can be a gateway deployed at the edge of the network, which connects the physical and digital worlds through network connection, protocol conversion and other functions, and provides lightweight connection management, real-time data analysis and application management functions. In the embodiment of the present application, the edge gateway is a device or server that can exchange information with the platform gateway, that is, the API side gateway of the capability exposure platform.
需要说明的是,携带子鉴权信息的请求信息可以是基于部署在边缘网关上的任一客户端输入的携带子鉴权信息的请求信息。It should be noted that the request information carrying the sub-authentication information may be based on the request information carrying the sub-authentication information input by any client deployed on the edge gateway.
其中,鉴权是指验证用户是否拥有访问系统的权利,相应地,该子鉴权信息可以是验证用户是否拥有访问相关网关或设备的文字信息或数字信息。同时请求信息包括但不限于子鉴权信息,还可以包括:请求任务对应的请求网址、请求任务的属性信息等。Authentication refers to verifying whether the user has the right to access the system. Accordingly, the sub-authentication information can be text or digital information to verify whether the user has the right to access the relevant gateway or device. At the same time, the request information includes but is not limited to the sub-authentication information, and can also include: the request URL corresponding to the request task, the attribute information of the request task, etc.
在本申请实施例中,发出请求信息的子账户可以是物联卡的账户信息,该子账户可以是该物联卡的主卡账户即一级账户,也可以是副卡账户即二级账户;其中,二级账户从属于一级账户。在本申请以下其他实施例中,发出请求信息的子账户均指代二级账户。In the embodiment of the present application, the sub-account that sends the request information can be the account information of the IoT card, and the sub-account can be the primary card account of the IoT card, i.e., the primary account, or the secondary card account, i.e., the secondary account; wherein the secondary account is subordinate to the primary account. In the following other embodiments of the present application, the sub-account that sends the request information refers to the secondary account.
其中,请求信息可以是操作边缘网关的工作人员基于子账户登录相关客户端后,输入的申请调用相关API能力的信息。The request information may be information entered by the staff operating the edge gateway after logging into the relevant client based on the sub-account to apply for calling the relevant API capabilities.
步骤102、确定与所述子账户相匹配的主账户。Step 102: Determine a main account that matches the sub-account.
在本申请实施例中,边缘网关确定子账户所属的主账户,即二级账户对应的一级账户;其中,边缘网关可以基于内部存储的账户数据库中确定与子账户相匹配的主账户;同时该账户数据库可以是边缘网关实现设定好的,即提前基于相关规则生成或设定每一主账户及其对应的子账户。In an embodiment of the present application, the edge gateway determines the main account to which the sub-account belongs, that is, the primary account corresponding to the secondary account; wherein the edge gateway can determine the main account that matches the sub-account based on the internally stored account database; at the same time, the account database can be set by the edge gateway, that is, each main account and its corresponding sub-account are generated or set in advance based on relevant rules.
需要说明的是,在本申请实施例中,一个主账户可以关联至少一个子账户,同时一个子账户从属唯一的主账户。It should be noted that in the embodiment of the present application, a main account can be associated with at least one sub-account, and a sub-account is subordinate to a unique main account.
步骤103、确定与所述主账户关联的主鉴权信息。Step 103: Determine the master authentication information associated with the master account.
在本申请实施例中,边缘网关获取与主账户关联的主鉴权信息;其中,主鉴权信息与子鉴权信息之间具有映射关系;也就是说,子账户与主账户之间存在从属关系,同时子鉴权信息和主鉴权信息之间也存在映射关系。In an embodiment of the present application, the edge gateway obtains the main authentication information associated with the main account; wherein, there is a mapping relationship between the main authentication information and the sub-authentication information; that is, there is a subordinate relationship between the sub-account and the main account, and there is also a mapping relationship between the sub-authentication information and the main authentication information.
其中,主鉴权信息可以是数字、字母以及图形等任一形式存在,也可是上述多种形式的任意组合;对应的,子鉴权信息的组成形式与主鉴权信息可相同,也可不同。The main authentication information may be in any form such as numbers, letters, and graphics, or any combination of the above forms; correspondingly, the composition form of the sub-authentication information may be the same as or different from that of the main authentication information.
需要说明的是,与主账户关联的主鉴权信息可以实时存储在边缘网关内部的鉴权缓存区间中,即边缘网关在确定出主账户的情况下,在鉴权缓存区间中查找与主账户关联的主鉴权信息;其中,鉴权缓存区间中存储的主鉴权信息可以按照预设周期进行更新,如此,以确保边缘网关的缓存数据库中存储的与主账户关联的主鉴权信息一直是实时有效的,即使得确定的与主账户关联的主鉴权信息可以是实时有效的。It should be noted that the primary authentication information associated with the primary account can be stored in the authentication cache interval inside the edge gateway in real time, that is, when the edge gateway determines the primary account, it searches the authentication cache interval for the primary authentication information associated with the primary account; wherein, the primary authentication information stored in the authentication cache interval can be updated according to a preset period, so as to ensure that the primary authentication information associated with the primary account stored in the cache database of the edge gateway is always real-time and valid, that is, the determined primary authentication information associated with the primary account can be real-time and valid.
步骤104、基于所述主鉴权信息和所述请求信息,生成平台请求。Step 104: Generate a platform request based on the primary authentication information and the request information.
在本申请实施例中,边缘网关基于主鉴权信息和请求信息,生成平台请求;其中,可以是基于主鉴权信息对请求信息中的部分内容进行调整,以得到用于发送至平台网关的平台请求。In an embodiment of the present application, the edge gateway generates a platform request based on the primary authentication information and the request information; wherein, part of the content in the request information may be adjusted based on the primary authentication information to obtain a platform request for sending to the platform gateway.
其中,平台请求是需要发送至平台网关的请求,请求信息是相关子账户基于边缘网关生成的请求信息,即请求信息是平台请求的中转请求信息。Among them, the platform request is the request that needs to be sent to the platform gateway, and the request information is the request information generated by the relevant sub-account based on the edge gateway, that is, the request information is the transit request information of the platform request.
在一种可行的实现方式中,边缘网关将请求信息中的子鉴权信息调整为主鉴权信息,同时将请求信息中的边缘网关地址替换为平台网关地址,进而得到用于发送至平台网关的平台请求。In a feasible implementation, the edge gateway adjusts the sub-authentication information in the request information to the main authentication information, and replaces the edge gateway address in the request information with the platform gateway address, thereby obtaining a platform request for sending to the platform gateway.
需要说明的是,平台请求和请求信息中关于请求的任务属性相同。示例性地,请求信息中请求任务为定位任务,则平台请求中的请求任务也为定位任务。It should be noted that the task attributes of the request in the platform request and the request information are the same. For example, if the requested task in the request information is a positioning task, then the requested task in the platform request is also a positioning task.
步骤105、发送所述平台请求至平台网关,以使所述平台网关确定与所述请求信息相匹配的请求结果。Step 105: Send the platform request to a platform gateway, so that the platform gateway determines a request result that matches the request information.
在本申请实施例中,边缘网关将确定的平台请求发送至平台网关,以使平台网关确定与请求信息相匹配的请求结果。In an embodiment of the present application, the edge gateway sends the determined platform request to the platform gateway, so that the platform gateway determines a request result that matches the request information.
本申请实施例中对边缘网关与平台网关之间的信息交互方式不作任何限定。In the embodiments of the present application, there is no limitation on the information interaction method between the edge gateway and the platform gateway.
需要说明的是,在本申请实施例中,边缘网关基于发出请求信息的子账户,依次确定与子账户相匹配的主账户、主账户关联的主鉴权信息;以及基于主鉴权信息和请求信息,生成发送至平台网关的平台请求,以使平台网关确定与请求信息相匹配的请求结果;如此,通过设置能够发出相关请求信息的子账户,能够扩大申请能力的用户范围,即在实现一个主账户关联多个子账户,以实现申请能力的灵活调用的基础上,通过边缘网关将相关请求信息发送至平台网关,能够提高请求信息发出的效率,同时能够降低发出相关请求信息的成本。It should be noted that in the embodiment of the present application, the edge gateway determines the main account matching the sub-account and the main authentication information associated with the main account in sequence based on the sub-account that sends the request information; and based on the main authentication information and the request information, generates a platform request sent to the platform gateway, so that the platform gateway determines the request result that matches the request information; in this way, by setting up a sub-account that can send relevant request information, the user range of the application capability can be expanded, that is, on the basis of realizing the association of one main account with multiple sub-accounts to realize the flexible call of the application capability, the relevant request information is sent to the platform gateway through the edge gateway, which can improve the efficiency of sending the request information and reduce the cost of sending the relevant request information.
本申请实施例提供的信息处理方法,应用于边缘网关,首先,响应于输入的携带子鉴权信息的请求信息,确定发出请求信息的子账户;其次,确定与子账户相匹配的主账户;确定与主账户关联的主鉴权信息;然后,基于主鉴权信息和请求信息,生成平台请求;最后,发送平台请求至平台网关,以使平台网关确定与请求信息相匹配的请求结果。如此,通过能够发出相关请求信息的子账户,以扩大申请能力的用户范围;进而在实现一个主账户关联多个子账户,以实现申请能力的灵活调用的基础上,通过边缘网关将相关请求信息发送至平台网关,能够提高相关业务能力的调用效率,同时能够降低相关业务能力调用时所需的成本。The information processing method provided by the embodiment of the present application is applied to the edge gateway. First, in response to the input request information carrying sub-authentication information, the sub-account that issues the request information is determined; secondly, the main account that matches the sub-account is determined; the main authentication information associated with the main account is determined; then, based on the main authentication information and the request information, a platform request is generated; finally, the platform request is sent to the platform gateway so that the platform gateway determines the request result that matches the request information. In this way, the user range of the application capability is expanded through the sub-account that can issue relevant request information; and then, on the basis of realizing that a main account is associated with multiple sub-accounts to realize the flexible call of the application capability, the relevant request information is sent to the platform gateway through the edge gateway, which can improve the call efficiency of the relevant business capabilities and reduce the cost required for the call of the relevant business capabilities.
基于前述实施例,本申请实施例还提供一种信息处理方法,应用于边缘网关,参照图1和图2所示,该方法包括以下步骤:Based on the foregoing embodiments, the embodiments of the present application further provide an information processing method, which is applied to an edge gateway. As shown in FIGS. 1 and 2 , the method includes the following steps:
步骤201、响应于所述请求信息,对所述子鉴权信息进行鉴权,得到鉴权结果。Step 201: In response to the request information, authenticate the sub-authentication information to obtain an authentication result.
在本申请实施例中,边缘网关响应于该请求信息,对请求信息中的子鉴权信息进行鉴权,即进行验证,得到鉴权结果;其中,鉴权结果可以用通过、不通过、成功或失败等表示。In an embodiment of the present application, the edge gateway responds to the request information, authenticates the sub-authentication information in the request information, that is, verifies it, and obtains an authentication result; wherein the authentication result can be expressed as pass, fail, success or failure, etc.
在一种可行的实现方式中,边缘网关执行步骤201之前,即边缘网关响应于所述请求信息,对所述子鉴权信息进行鉴权,得到鉴权结果之前,可以执行以下步骤A1和步骤A2:In a feasible implementation, before the edge gateway executes step 201, that is, before the edge gateway authenticates the sub-authentication information in response to the request information and obtains the authentication result, the following steps A1 and A2 may be executed:
步骤A1、响应于基于所述子账户输入的登录信息,生成与所述子账户关联的所述子鉴权信息。Step A1: In response to the login information input based on the sub-account, generate the sub-authentication information associated with the sub-account.
在本申请实施例中,边缘网关响应于基于子账户输入的登录信息,生成与子账户关联的子鉴权信息;其中,该子鉴权信息是与子账户登录信息实时关联匹配的信息。In an embodiment of the present application, the edge gateway generates sub-authentication information associated with the sub-account in response to login information input based on the sub-account; wherein the sub-authentication information is information that is associated and matched with the sub-account login information in real time.
其中,与子账户关联的子鉴权信息可以是数字、数字和字母、图片等信息。The sub-authentication information associated with the sub-account may be numbers, numbers and letters, pictures, and other information.
步骤A2、响应于基于所述子鉴权信息输入的初始请求信息,生成所述请求信息。Step A2: Generate the request information in response to the initial request information input based on the sub-authentication information.
在本申请实施例中,边缘网关响应于基于子鉴权信息输入的初始请求信息,生成请求信息;其中,可以是将基于子鉴权信息输入的初始请求信息,和子鉴权信息进行合并,得到该请求信息。In an embodiment of the present application, the edge gateway generates request information in response to the initial request information input based on the sub-authentication information; wherein, the initial request information input based on the sub-authentication information and the sub-authentication information are merged to obtain the request information.
其中,初始请求信息可以包括但不限于:请求相关业务对应的网关地址,请求相关业务的名称信息、请求相关业务的时间信息等;相应地,边缘网关将初始请求信息和子鉴权信息按照预设规则进行组合,得到请求信息。Among them, the initial request information may include but is not limited to: the gateway address corresponding to the request-related service, the name information of the request-related service, the time information of the request-related service, etc.; accordingly, the edge gateway combines the initial request information and the sub-authentication information according to preset rules to obtain the request information.
需要说明的是,在本申请实施例中,边缘网关依次响应于基于子账户输入的登录信息和初始请求信息,生成对应的子鉴权信息和请求信息;如此,能够使得得到的请求信息的精准度更高。It should be noted that in the embodiment of the present application, the edge gateway generates corresponding sub-authentication information and request information in response to the login information and initial request information input based on the sub-account in sequence; in this way, the accuracy of the obtained request information can be higher.
步骤202、在所述鉴权结果通过验证的情况下,确定与所述子鉴权信息关联的子账户为发出所述请求信息的子账户。Step 202: When the authentication result passes verification, determine that the sub-account associated with the sub-authentication information is the sub-account that issued the request information.
在本申请实施例中,边缘网关在鉴权结果为通过验证的情况下,即鉴权结果表征该子鉴权信息为通过的情况下,将与子鉴权信息关联的子账户确定为发出该请求信息的子账户。In an embodiment of the present application, when the authentication result is verified, that is, when the authentication result indicates that the sub-authentication information is passed, the edge gateway determines the sub-account associated with the sub-authentication information as the sub-account that issued the request information.
需要说明的是,在本申请实施例,通过对请求信息中的子鉴权信息进行鉴权验证,来确定发出请求信息的子账户;如此,能够高效且精准地确定发出请求信息的子账户。It should be noted that in the embodiment of the present application, the sub-account that issues the request information is determined by authenticating and verifying the sub-authentication information in the request information; in this way, the sub-account that issues the request information can be determined efficiently and accurately.
在一种可行的实现方式中,边缘网关确定与所述子账户相匹配的主账户,即边缘网关执行上述实施例提供的步骤102,可以通过以下步骤203来实现:In a feasible implementation, the edge gateway determines the main account that matches the sub-account, that is, the edge gateway performs step 102 provided in the above embodiment, which can be implemented by the following steps 203:
步骤203、在账户数据库中,确定与所述子账户相匹配的主账户。Step 203: Determine in the account database the main account that matches the sub-account.
其中,所述账户数据库至少包括每一主账户以及所述每一主账户相关联的账户集合。The account database at least includes each primary account and a set of accounts associated with each primary account.
在本申请实施例中,边缘网关可以事先设定每一主账户关联的多个子账户,并将每一主账户以及每一主账户关联的多个子账户,存储至边缘网关的账户数据库中。In an embodiment of the present application, the edge gateway may pre-set multiple sub-accounts associated with each master account, and store each master account and multiple sub-accounts associated with each master account in the account database of the edge gateway.
需要说明的是,账户数据库中不仅存储每一主账户以及每一主账户关联的多个子账户;相应地,还存储有每一主账户与其对应的子账户之间的从属关系。It should be noted that the account database not only stores each main account and multiple sub-accounts associated with each main account; correspondingly, it also stores the subordinate relationship between each main account and its corresponding sub-account.
在一种可行的实现方式中,可以事先在边缘网关上部署一管理平台,通过管理平台对每一主账户进行多个子账户的设置以及部署,进而将每一主账户以及每一主账户关联的多个子账户,即子账户集合存储至账户数据库中。In a feasible implementation method, a management platform can be deployed on the edge gateway in advance, and multiple sub-accounts can be set up and deployed for each main account through the management platform, and then each main account and multiple sub-accounts associated with each main account, that is, the sub-account set, are stored in the account database.
需要说明的是,一个主账户关联多个子账户,多个子账户内部可实现的业务功能可以完全相同,也可部分相同,也可完全不同。It should be noted that one main account is associated with multiple sub-accounts, and the business functions that can be realized within the multiple sub-accounts can be exactly the same, partially the same, or completely different.
相应地,边缘网关确定与所述主账户关联的主鉴权信息,即边缘网关执行上述实施例提供的步骤103,可以通过以下步骤204来实现:Accordingly, the edge gateway determines the master authentication information associated with the master account, that is, the edge gateway performs step 103 provided in the above embodiment, which can be implemented by the following steps 204:
步骤204、在鉴权缓存区间中,确定与所述主账户相关联的所述主鉴权信息。Step 204: Determine the primary authentication information associated with the primary account in the authentication cache interval.
其中,所述鉴权缓存区间存储有每一主账户相关联的主鉴权信息。The authentication cache interval stores the master authentication information associated with each master account.
在本申请实施例中,边缘网关基于内部的相关客户端,如:管理平台实时获取并更新每一主账户相关联的主鉴权信息,进而将更新的主鉴权信息与对应的主账户存储至鉴权缓存区间。In an embodiment of the present application, the edge gateway obtains and updates the master authentication information associated with each master account in real time based on an internal related client, such as a management platform, and then stores the updated master authentication information and the corresponding master account in the authentication cache interval.
其中,边缘网关基于获取的主账户,在实时更新的鉴权缓存区间中,确定与主账户相关联的主鉴权信息;其中,每一主账户关联一个主鉴权信息,且该主鉴权信息随着时间进行更新。The edge gateway determines the master authentication information associated with the master account in the authentication cache interval updated in real time based on the acquired master account; each master account is associated with one master authentication information, and the master authentication information is updated over time.
需要说明的是,在本申请实施例中,边缘网关依次基于事先部署的账户数据库和鉴权缓存区间,依次确定与子账户相匹配的主账户、与主账户关联的主鉴权信息;如此,能够提高确定主账户以及主鉴权信息的效率和准确率。It should be noted that in the embodiment of the present application, the edge gateway determines the main account matching the sub-account and the main authentication information associated with the main account based on the pre-deployed account database and authentication cache interval in turn; in this way, the efficiency and accuracy of determining the main account and the main authentication information can be improved.
在一种可行的实现方式中,边缘网关基于所述主鉴权信息和所述请求信息,生成平台请求,即边缘网关执行上述实施例提供的步骤104,可以通过以下步骤205和步骤206来实现:In a feasible implementation, the edge gateway generates a platform request based on the primary authentication information and the request information, that is, the edge gateway executes step 104 provided in the above embodiment, which can be implemented by the following steps 205 and 206:
步骤205、将所述请求信息中的所述子鉴权信息替换为所述主鉴权信息,生成中间请求信息。Step 205: Replace the sub-authentication information in the request information with the main authentication information to generate intermediate request information.
在本申请实施例中,边缘网关基于获取的主鉴权信息,将请求信息中的子鉴权信息进行替换,得到中间请求信息。In an embodiment of the present application, the edge gateway replaces the sub-authentication information in the request information based on the acquired main authentication information to obtain the intermediate request information.
步骤206、将所述中间请求信息中的边缘网关地址替换为平台网关地址,生成用于发送至所述平台网关的所述平台请求。Step 206: Replace the edge gateway address in the intermediate request information with the platform gateway address, and generate the platform request for sending to the platform gateway.
在本申请实施例中,边缘网关在得到内部携带主鉴权信息的中间请求信息后,将中间请求信息中的边缘网关地址替换为平台网关地址,生成用于发送至平台网关的平台请求。In an embodiment of the present application, after obtaining the intermediate request information carrying the primary authentication information, the edge gateway replaces the edge gateway address in the intermediate request information with the platform gateway address, and generates a platform request for sending to the platform gateway.
其中,该边缘网关地址是在边缘网关基于子鉴权信息获取到初始请求信息的同时,生成的网关地址,并将该网关地址和初始请求信息、子鉴权信息等合并,生成对应的请求信息;也就是说,边缘网关地址是同时存在于请求信息和中间请求信息中。Among them, the edge gateway address is the gateway address generated when the edge gateway obtains the initial request information based on the sub-authentication information, and the gateway address is merged with the initial request information, sub-authentication information, etc. to generate the corresponding request information; that is, the edge gateway address exists in both the request information and the intermediate request information.
需要说明的是,在本申请实施例中,边缘网关将请求信息中的相关信息进行转换,即将内部的鉴权信息和网关地址进行调整,以得到用于发送至平台网关与主账户相关的主请求信息;如此,能够使得平台网关获取到与主账户匹配的请求,以便平台网关及时对该请求信息进行处理。It should be noted that in the embodiment of the present application, the edge gateway converts the relevant information in the request information, that is, adjusts the internal authentication information and gateway address to obtain the main request information related to the main account sent to the platform gateway; in this way, the platform gateway can obtain the request that matches the main account, so that the platform gateway can process the request information in a timely manner.
在一种可行的实现方式中,边缘网关发送所述平台请求至平台网关,以使所述平台网关确定与所述请求信息相匹配的请求结果之后,即边缘网关执行上述实施例提供的步骤105或步骤206之后,边缘网关还可以执行以下步骤B1和步骤B2:In a feasible implementation, after the edge gateway sends the platform request to the platform gateway so that the platform gateway determines the request result that matches the request information, that is, after the edge gateway executes step 105 or step 206 provided in the above embodiment, the edge gateway may also execute the following steps B1 and B2:
步骤B1、接收所述平台网关发送的所述请求结果。Step B1: Receive the request result sent by the platform gateway.
在本申请实施例中,边缘网关在将平台请求发送至平台网关之后,接收该平台网关响应于该平台请求发送的请求结果;其中,该请求结果可以是基于平台请求对应的结果信息。In an embodiment of the present application, after sending the platform request to the platform gateway, the edge gateway receives a request result sent by the platform gateway in response to the platform request; wherein the request result may be result information corresponding to the platform request.
步骤B2、对所述请求结果进行解析得到解析结果,并将所述解析结果发送至与所述子账户关联的客户端。Step B2: parse the request result to obtain a parsing result, and send the parsing result to the client associated with the sub-account.
在本申请实施例中,边缘网关对该请求结果进行解析得到对应的解析结果,并将该解析结果发送至与子账户关联的电子设备,即将与子账户发出的请求信息对应的解析结果,反馈至与子账户关联的客户端。In an embodiment of the present application, the edge gateway parses the request result to obtain a corresponding analysis result, and sends the analysis result to an electronic device associated with the sub-account, that is, the analysis result corresponding to the request information issued by the sub-account is fed back to the client associated with the sub-account.
需要说明的是,在本申请实施例中,边缘网关还可以获取平台网关生成的请求结果,并将该请求结果对应的转发至与子账户关联的客户端;如此,能够高效且便捷地将相关业务请求结果转发至发出相关业务请求的客户端,以便相关客户端执行相关业务。It should be noted that in an embodiment of the present application, the edge gateway can also obtain the request result generated by the platform gateway, and forward the corresponding request result to the client associated with the sub-account; in this way, the relevant business request results can be efficiently and conveniently forwarded to the client that issued the relevant business request, so that the relevant client can execute the relevant business.
在一些实施例中,边缘网关在响应于输入的携带子鉴权信息的请求信息,确定发出所述请求信息的子账户之前,即边缘网关在执行上述实施例提供的步骤101之前,还可以执行以下步骤C1和步骤C2:In some embodiments, before the edge gateway determines the sub-account that issued the request information in response to the input request information carrying the sub-authentication information, that is, before the edge gateway executes step 101 provided in the above embodiment, it may also execute the following steps C1 and C2:
步骤C1、确定所述平台网关上部署的每一应用程序编程接口API的处理请求信息的处理时长。Step C1: Determine the processing time of each application programming interface API deployed on the platform gateway for processing request information.
在本申请实施例中,边缘网关还可以事先对部署在平台网关上的每一API的处理对应的请求信息的处理时长进行解析并确定;其中,边缘网关可以是通过相关分析应用以获取每一API处理对应的请求的处理时长。In an embodiment of the present application, the edge gateway can also parse and determine in advance the processing time of the request information corresponding to the processing of each API deployed on the platform gateway; wherein, the edge gateway can obtain the processing time of the request corresponding to each API processing through relevant analysis applications.
步骤C2、将所述处理时长大于预设时长的API,确定为目标API。Step C2: determine the API whose processing time is longer than the preset time as the target API.
在本申请实施例中,边缘网关基于处理时长,对部署在平台网关的API进行筛选,得到处理时长大于预设时长的API,将其确定为目标API;其中,预设时长可以是按照预设策略确定,本申请实施例对此不作任何限定。In an embodiment of the present application, the edge gateway screens the APIs deployed on the platform gateway based on the processing time, obtains the APIs whose processing time is greater than the preset time, and determines them as the target APIs; wherein the preset time can be determined according to a preset strategy, and the embodiment of the present application does not impose any limitation on this.
步骤C3、发送所述目标API的标识信息至所述平台网关,以使所述平台网关控制所述目标API处理对应的请求信息的时间提前。Step C3: Send the identification information of the target API to the platform gateway, so that the platform gateway controls the target API to process the corresponding request information in advance.
在本申请实施例中,边缘网关将筛选得到的目标API对应的标识信息发送至平台网关,以使平台网关控制目标API处理对应的请求信息的时间提前,如此,能够在相关账户申请对应的请求信息为目标API处理的情况下,控制该目标API提前处理,以便提高处理效率,进而提高用户体验。In an embodiment of the present application, the edge gateway sends the identification information corresponding to the screened target API to the platform gateway, so that the platform gateway controls the target API to process the corresponding request information in advance. In this way, when the request information corresponding to the relevant account application is processed by the target API, the target API can be controlled to be processed in advance, so as to improve processing efficiency and thereby improve user experience.
本申请实施例提供的信息处理方法,在边缘网关上提前部署与主账户关联的多个子账户,以及及时更新并获取与主账户关联的主鉴权信息,进而通过对发出相关请求信息的子账户,进行鉴权以及过滤,实现在扩大申请能力的用户范围的基础上,能够简化申请相关业务的步骤,同时能够提高申请相关信息的效率。The information processing method provided in the embodiment of the present application deploys multiple sub-accounts associated with the main account on the edge gateway in advance, and timely updates and obtains the main authentication information associated with the main account, and then authenticates and filters the sub-accounts that issue relevant request information, thereby simplifying the steps of applying for related services on the basis of expanding the user range of application capabilities and improving the efficiency of applying for related information.
本申请实施例还提供一种信息处理方法,应用于平台网关,参照图3所示,该方法包括以下步骤:The present application also provides an information processing method, which is applied to a platform gateway. As shown in FIG. 3 , the method includes the following steps:
步骤301、接收边缘网关发送的目标API的标识信息。Step 301: Receive identification information of a target API sent by an edge gateway.
其中,所述目标API为处理请求信息的处理时长大于预设时长的API。The target API is an API whose processing time for processing request information is greater than a preset time.
在本申请实施例中,平台网关接收边缘网关发送的目标API的标识信息,以便对目标API进行标记,进而在获取到请求信息对应的处理API为目标API的情况下,基于预设策略对目标API的处理时间进行控制。In an embodiment of the present application, the platform gateway receives identification information of the target API sent by the edge gateway in order to mark the target API, and then when the processing API corresponding to the request information is obtained as the target API, the processing time of the target API is controlled based on a preset strategy.
步骤302、接收所述边缘网关发送的平台请求。Step 302: Receive a platform request sent by the edge gateway.
在本申请实施例中,平台网关接收边缘网关发送的平台请求以便对该平台请求进行解析,进而从平台网关内部选取对应的API对其进行处理。In an embodiment of the present application, the platform gateway receives a platform request sent by the edge gateway to parse the platform request, and then selects a corresponding API from within the platform gateway to process it.
步骤303、在所述平台请求对应的API为所述目标API的情况下,基于所述平台请求中携带的调用时间,控制所述目标API生成与所述平台请求对应的请求结果。Step 303: When the API corresponding to the platform request is the target API, based on the calling time carried in the platform request, control the target API to generate a request result corresponding to the platform request.
在本申请实施例中,平台网关在获取到平台请求对应的API为目标API的情况下,可以根据平台请求内部携带的请求处理时间,即平台请求中携带的调用时间,对目标API处理该平台请求的时间进行调整,即控制目标PAI生成与平台请求对应的请求结果。In an embodiment of the present application, when the platform gateway obtains that the API corresponding to the platform request is the target API, it can adjust the time for the target API to process the platform request based on the request processing time carried inside the platform request, that is, the call time carried in the platform request, that is, control the target PAI to generate a request result corresponding to the platform request.
步骤304、发送所述请求结果至所述边缘网关。Step 304: Send the request result to the edge gateway.
在本申请实施例中,平台网关发送该请求结果至边缘网关,以便边缘网关将该请求结果转发至发出请求信息的子账户关联的客户端。In an embodiment of the present application, the platform gateway sends the request result to the edge gateway so that the edge gateway forwards the request result to the client associated with the sub-account that issued the request information.
本申请实施例提供的信息处理方法,应用于平台网关,获取边缘网关发送的目标API的标识信息以及请求信息,并在请求信息对应的API为目标PAI的情况下,根据平台请求内部的请求处理时间,对目标API处理该平台请求的时间进行调整;如此,能够结合相关请求时间,对应的准备请求结果,能够降低相关客户端获取请求结果的时长,进而能够提高处理业务的效率。The information processing method provided in the embodiment of the present application is applied to the platform gateway to obtain the identification information and request information of the target API sent by the edge gateway, and when the API corresponding to the request information is the target PAI, the time for the target API to process the platform request is adjusted according to the request processing time inside the platform request; in this way, the request result can be prepared accordingly in combination with the relevant request time, which can reduce the time for the relevant client to obtain the request result, thereby improving the efficiency of processing business.
基于此,本申请实施例还提供一种信息处理方法,如图4所示,该方法包括以下步骤:Based on this, the embodiment of the present application also provides an information processing method, as shown in FIG4 , the method comprises the following steps:
步骤401、边缘网关确定平台网关上部署的每一API的处理请求信息的处理时长。Step 401: The edge gateway determines the processing time of each API processing request information deployed on the platform gateway.
步骤402、边缘网关将处理时长大于预设时长的API,确定为目标API。Step 402: The edge gateway determines the API whose processing time is longer than the preset time as the target API.
步骤403、边缘网关发送目标API的标识信息至平台网关,以使平台网关控制目标API处理对应的请求信息的时间提前。Step 403: The edge gateway sends the identification information of the target API to the platform gateway, so that the platform gateway controls the target API to process the corresponding request information in advance.
相应地,平台网关接收边缘网关发送的目标API的标识信息。Accordingly, the platform gateway receives the identification information of the target API sent by the edge gateway.
步骤404、边缘网关响应于基于子账户输入的登录信息,生成与子账户关联的子鉴权信息。Step 404: The edge gateway generates sub-authentication information associated with the sub-account in response to the login information input based on the sub-account.
步骤405、边缘网关基于子鉴权信息输入的初始请求信息,生成请求信息。Step 405: The edge gateway generates request information based on the initial request information input by the sub-authentication information.
步骤406、边缘网关响应于请求信息,对子鉴权信息进行鉴权,得到鉴权结果。Step 406: The edge gateway authenticates the sub-authentication information in response to the request information to obtain an authentication result.
步骤407、边缘网关在鉴权结果通过验证的情况下,确定与子鉴权信息关联的子账户为发出请求信息的子账户。Step 407: When the authentication result passes verification, the edge gateway determines that the sub-account associated with the sub-authentication information is the sub-account that issued the request information.
步骤408、边缘网关在账户数据库中,确定与子账户相匹配的主账户。Step 408: The edge gateway determines a master account that matches the sub-account in the account database.
步骤409、边缘网关在鉴权缓存区间中,确定与主账户相关联的主鉴权信息。Step 409: The edge gateway determines the primary authentication information associated with the primary account in the authentication cache interval.
步骤410、边缘网关将请求信息中的子鉴权信息替换为主鉴权信息,生成中间请求信息。Step 410: The edge gateway replaces the sub-authentication information in the request information with the main authentication information to generate intermediate request information.
步骤411、边缘网关将中间请求信息中的边缘网关地址替换为平台网关地址,生成用于发送至平台网关的平台请求。Step 411: The edge gateway replaces the edge gateway address in the intermediate request information with the platform gateway address, and generates a platform request for sending to the platform gateway.
步骤412、边缘网关发送平台请求至平台网关,以使平台网关确定与请求信息相匹配的请求结果。Step 412: The edge gateway sends the platform request to the platform gateway, so that the platform gateway determines the request result that matches the request information.
相应地,平台网关接收边缘网关发送的平台请求。Accordingly, the platform gateway receives the platform request sent by the edge gateway.
步骤413、平台网关在平台请求对应的API为目标API的情况下,基于平台请求中携带的调用时间,控制目标API生成与平台请求对应的请求结果。Step 413: When the API corresponding to the platform request is the target API, the platform gateway controls the target API to generate a request result corresponding to the platform request based on the call time carried in the platform request.
步骤414、平台网关发送请求结果至边缘网关。Step 414: The platform gateway sends the request result to the edge gateway.
相应地,边缘网关接收平台网关发送的请求结果。Correspondingly, the edge gateway receives the request result sent by the platform gateway.
步骤415、边缘网关对请求结果进行解析得到解析结果,并将解析结果发送至与子账户关联的客户端。Step 415: The edge gateway parses the request result to obtain a parsing result, and sends the parsing result to the client associated with the subaccount.
基于此,本申请实施例在平台网关侧部署一边缘网关,如图5所示,为应用本申请实施例提供的一种边缘网关和平台网关组成的系统结构示意图。其中,501为边缘网关即对应的客户侧,可以是客户服务器,502为平台网关即能力开放平台API侧;在边缘网关侧可以同时部署一管理平台和网关;其中,管理员基于管理平台可以创建多个用户,作为API侧的二级账户使用,为不同的用户分配不同数量的卡,并为其分配相应的卡操作权限。管理平台也可以提供调用API能力的操作界面,查看调用API能力的记录、日志等,做调用数据统计分析、能力调用资费包拆解等。Based on this, the embodiment of the present application deploys an edge gateway on the platform gateway side, as shown in Figure 5, which is a schematic diagram of the system structure composed of an edge gateway and a platform gateway provided by the embodiment of the present application. Among them, 501 is the edge gateway, that is, the corresponding client side, which can be a client server, and 502 is the platform gateway, that is, the capability exposure platform API side; a management platform and a gateway can be deployed simultaneously on the edge gateway side; wherein, the administrator can create multiple users based on the management platform, use them as secondary accounts on the API side, allocate different numbers of cards to different users, and allocate corresponding card operation permissions to them. The management platform can also provide an operation interface for calling API capabilities, view records and logs of calling API capabilities, perform statistical analysis of call data, disassemble capability call tariff packages, etc.
同时在客户侧部署一台网关,客户可以通过管理平台创建的二级账户发起获取API能力的请求,网关接到请求后对二级账户进行鉴权、过滤,通过后组装鉴权信息,将请求转发到API侧网关,获取相应的能力。At the same time, a gateway is deployed on the customer side. The customer can initiate a request to obtain API capabilities through the secondary account created on the management platform. After receiving the request, the gateway authenticates and filters the secondary account, assembles the authentication information, and forwards the request to the API side gateway to obtain the corresponding capabilities.
此外,在平台网关增加接收通知功能,API网关结合收到的通知消息、API能力实际耗时、客户调用API能力时机等信息,分析出实际耗时较长的API能力,并基于多个后端服务(如502中的后端服务1、后端服务2以及后端服务3)将对应能力需要的数据优先处理,在客户调用时直接将需要的数据返回,节约客户调用的等待时间。In addition, a notification receiving function is added to the platform gateway. The API gateway combines the received notification messages, the actual time consumption of API capabilities, the timing of customer calls to API capabilities and other information to analyze the API capabilities that actually take a long time. Based on multiple back-end services (such as back-end service 1, back-end service 2 and back-end service 3 in 502), the data required for the corresponding capabilities is prioritized and the required data is directly returned when the customer calls, saving the waiting time of the customer call.
需要说明的是,在本申请实施例中,边缘网关包括501中的在客户侧的网关和管理平台,且对应处理产生的数据等可以存储至501中的缓存区。It should be noted that in the embodiment of the present application, the edge gateway includes the gateway and management platform on the client side in 501, and the data generated by the corresponding processing can be stored in the cache area in 501.
如图6所示,为本申请实施例提供的一种管理平台处理业务的流程示意图;其中,管理平台可以是多个账户同时使用,且每个账户可以在管理平台对自己对应的业务进行维护。当执行开始并在系统启动后,即执行601和602,管理员可以录入开卡客户信息,创建系统用户,维护卡信息,为卡分组以及维护系统用户信息,即执行606和607,在执行这个步骤过程中,可以对开卡客户的一级账户和二级账户进行存储并维护,即执行609和610。同时可以启动定时任务,为系统中维护的开卡客户获取调用API能力的鉴权信息,将鉴权信息保存到缓存中,即执行608、612和611。此外,管理平台还可在执行606或608之前,启动另一定时任务,分析API能力调用行为,将常用的、耗时较长的API信息通知给API侧网关,即执行603至605。执行上述步骤后,即可结束相关操作,即613。As shown in FIG6 , a flow chart of a management platform processing business provided by an embodiment of the present application is provided; wherein, the management platform can be used by multiple accounts at the same time, and each account can maintain its corresponding business on the management platform. When the execution starts and the system is started, that is, 601 and 602 are executed, the administrator can enter the card-opening customer information, create a system user, maintain the card information, group the card and maintain the system user information, that is, 606 and 607 are executed. During the execution of this step, the primary account and secondary account of the card-opening customer can be stored and maintained, that is, 609 and 610 are executed. At the same time, a scheduled task can be started to obtain the authentication information of the API capability call for the card-opening customer maintained in the system, and the authentication information is saved in the cache, that is, 608, 612 and 611 are executed. In addition, before executing 606 or 608, the management platform can also start another scheduled task to analyze the API capability call behavior and notify the API side gateway of the commonly used and time-consuming API information, that is, 603 to 605. After executing the above steps, the relevant operations can be ended, that is, 613.
需要说明的是,管理平台的系统用户点击对应菜单时,底层获取用户所属的开卡客户的鉴权信息,拼接API能力地址和调用参数,向API侧网关,即平台网关发起API能力调用请求,从而获取相应的API能力。It should be noted that when the system user of the management platform clicks the corresponding menu, the underlying layer obtains the authentication information of the card-opening customer to which the user belongs, concatenates the API capability address and call parameters, and initiates an API capability call request to the API side gateway, that is, the platform gateway, to obtain the corresponding API capabilities.
对应地,如图7所示,为本申请实施例提供的一种边缘网关处理业务的流程示意图;其中,该边缘网关为图501中的网关对二级账户进行鉴权、过滤,通过后组装鉴权信息,将请求转发到API侧网关,获取相应的能力的过程。其中,系统启动开启,首先边缘网关拦截到客户调用API能力的请求,即执行701和702;其次,解析请求中携带的管理平台侧二级账户对应的鉴权信息A;即执行703,对应本申请实施例中的子账户的子鉴权信息;再次,执行704、根据鉴权信息A获取管理平台侧的二级账户信息,根据二级账户获取开卡客户信息,即对应本申请实施例的主账户;然后从708的缓存中获取开卡客户对应的API侧的鉴权信息B,将客户请求API能力的原始鉴权信息A替换鉴权信息B,然后转发请求至API侧网关即707,即执行705,最后将结果返回给客户,即执行706。需说明的是,在解析请求参数的过程中若出现异常执行709打印错误日志。最后流程结束,即710。Correspondingly, as shown in FIG7, a schematic diagram of a flow of edge gateway processing services provided by an embodiment of the present application; wherein the edge gateway is the gateway in FIG501 to authenticate and filter the secondary account, assemble the authentication information after passing, forward the request to the API side gateway, and obtain the corresponding capability. wherein, the system is started, first the edge gateway intercepts the request of the customer to call the API capability, that is, executes 701 and 702; secondly, parses the authentication information A corresponding to the secondary account on the management platform side carried in the request; that is, executes 703, corresponding to the sub-authentication information of the sub-account in the embodiment of the present application; again, executes 704, obtains the secondary account information on the management platform side according to the authentication information A, obtains the card opening customer information according to the secondary account, that is, corresponds to the main account in the embodiment of the present application; then obtains the authentication information B on the API side corresponding to the card opening customer from the cache of 708, replaces the authentication information B with the original authentication information A of the customer requesting the API capability, and then forwards the request to the API side gateway, that is, 707, that is, executes 705, and finally returns the result to the customer, that is, executes 706. It should be noted that if an exception occurs during the parsing of the request parameters, the error log is printed in step 709. Finally, the process ends, that is, step 710.
应用于本申请实施例中信息处理方法,在API侧网关(平台网关)账户为A(主账户),对应的鉴权信息为A`;边缘网关侧(边缘网关)的账户为B(子账户),对应的鉴权信息是B`。其中,B是A账户关联的子账户,在子账户B通过边缘网关进行卡用量的实时查询的情况下,执行以下步骤:Applied to the information processing method in the embodiment of the present application, the account on the API side gateway (platform gateway) is A (main account), and the corresponding authentication information is A'; the account on the edge gateway side (edge gateway) is B (sub-account), and the corresponding authentication information is B'. Among them, B is the sub-account associated with the A account. When the sub-account B performs a real-time query of the card usage through the edge gateway, the following steps are performed:
第一步、二级账户B通过边缘网关获取鉴权信息B`。In the first step, the secondary account B obtains the authentication information B` through the edge gateway.
第二步、客户B发起“卡用量的实时查询”的请求。Step 2: Customer B initiates a request for "real-time query of card usage".
第三步:边缘网关拦截到客户B的请求,对B`鉴权,鉴权通过后解析出请求的客户信息为B。Step 3: The edge gateway intercepts the request from customer B, authenticates B, and after authentication, parses the requested customer information as B.
第四步、根据B信息,找到关联的一级账户A,获取缓存中A账户对应的API侧网关的鉴权信息A`。Step 4: Find the associated primary account A based on the information in B, and obtain the authentication information A` of the API gateway corresponding to the A account in the cache.
第五步、边缘网关组装请求API侧网关的地址,并向API侧网关发起请求。Step 5: The edge gateway assembles the address of the request API gateway and initiates a request to the API gateway.
第六步、边缘网关接收API侧网关的响应,并做适当的处理,将处理结果返回给客户B。Step 6: The edge gateway receives the response from the API gateway, processes it appropriately, and returns the processing result to client B.
基于此,本申请实施例提供的信息处理方法,以边缘计算的方式在客户侧部署一个网关和一个管理平台,同时通过二级账号,以扩展用户范围,进而灵活管理卡,并提高能力调用成功率;此外以边缘计算的形式在客户侧计算、分析能力调用行为,并通知给服务端,服务端也增加客户行为分析能力,智能发现客户行为,提高客户的体验度。Based on this, the information processing method provided in the embodiment of the present application deploys a gateway and a management platform on the client side in an edge computing manner, and at the same time uses a secondary account to expand the user range, thereby flexibly managing the card and improving the success rate of capability calls; in addition, the capability call behavior is calculated and analyzed on the client side in the form of edge computing, and notified to the server. The server also increases the customer behavior analysis capability, intelligently discovers customer behavior, and improves customer experience.
需要说明的是,增加本申请实施例提供的边缘网关,能够使得所有的调用API记录或日志都保存在客户本地,利于客户查看与维护;同时客户侧网关具有调用API能力的行为分析功能,分析出客户常用的、耗时较长的API能力,并通知给服务端;提供了一个账户多用的形式,即引入了二级账户,避免调用API能力时鉴权信息的争抢,同时降低API侧网关的压力;如此,可以使得集团客户灵活使用名下拥有的卡,如对卡分组,即将卡分配给不同的部门,分类管理等;进而可在客户侧做数据统计类业务,降低了调用成本,同时根据本地的调用数据,可做进一步统计分析,有利于业务扩展。It should be noted that, by adding the edge gateway provided in the embodiment of the present application, all API call records or logs can be saved locally on the customer, which is convenient for the customer to view and maintain; at the same time, the client-side gateway has a behavior analysis function for calling API capabilities, analyzes the customer's commonly used and time-consuming API capabilities, and notifies the server; it provides a multi-account form, that is, it introduces a secondary account, avoids competition for authentication information when calling API capabilities, and reduces the pressure on the API-side gateway; in this way, group customers can flexibly use the cards they own, such as grouping cards, that is, assigning cards to different departments, and classifying and managing them; and then they can do data statistics business on the customer side, which reduces the call cost. At the same time, based on the local call data, further statistical analysis can be done, which is conducive to business expansion.
本申请实施例提供的信息处理方法,应用于边缘网关和平台网关,通过部署一套调用API能力的边缘网关和管理平台,能够为客户提供API能力服务的同时,减少API侧网关调用压力,增加客户调用API能力的分析功能,将常用且耗时较长的能力通知给API侧网关;在API网关侧增加监听功能,接收到通知后,对比分析API能力和客户的通知信息,分析出客户常用的、耗时较长的API能力,并在客户调用这些能力前准备好相关数据,在客户调用时直接返回结果,减少客户等待时间,提高客户体验度。The information processing method provided in the embodiment of the present application is applied to edge gateways and platform gateways. By deploying a set of edge gateways and management platforms that call API capabilities, it can provide customers with API capability services while reducing the pressure on the API-side gateway to call, increase the analysis function of the customer's API capability calls, and notify the API-side gateway of commonly used and time-consuming capabilities; add a monitoring function on the API gateway side, and after receiving the notification, compare and analyze the API capabilities and the customer's notification information, analyze the customer's commonly used and time-consuming API capabilities, and prepare relevant data before the customer calls these capabilities, and directly return the results when the customer calls, thereby reducing customer waiting time and improving customer experience.
基于前述实施例,本申请实施例提供一种边缘网关800,该边缘网关800可以应用于图1、图2和图4对应的实施例提供的信息处理方法中,参照图8所示,该边缘网关800可以包括:第一处理器810、第一存储器820和第一通信总线830;Based on the foregoing embodiments, an embodiment of the present application provides an edge gateway 800, which can be applied to the information processing method provided in the embodiments corresponding to FIG. 1 , FIG. 2 , and FIG. 4 . As shown in FIG. 8 , the edge gateway 800 may include: a first processor 810 , a first memory 820 , and a first communication bus 830 ;
第一通信总线830用于实现第一处理器810和第一存储器820之间的通信连接;The first communication bus 830 is used to realize the communication connection between the first processor 810 and the first memory 820;
第一处理器810用于执行第一存储器820中存储的信息处理程序,以实现以下步骤:The first processor 810 is used to execute the information processing program stored in the first memory 820 to implement the following steps:
响应于输入的携带子鉴权信息的请求信息,确定发出所述请求信息的子账户;In response to the input request information carrying the sub-authentication information, determining the sub-account that issued the request information;
确定与所述子账户相匹配的主账户;determining a master account that matches the sub-account;
确定与所述主账户关联的主鉴权信息;Determining master authentication information associated with the master account;
基于所述主鉴权信息和所述请求信息,生成平台请求;generating a platform request based on the primary authentication information and the request information;
发送所述平台请求至平台网关,以使所述平台网关确定与所述请求信息相匹配的请求结果。The platform request is sent to a platform gateway so that the platform gateway determines a request result that matches the request information.
在本申请其他实施例中,第一处理器810用于执行第一存储器820中存储的信息处理程序中的响应于输入的携带子鉴权信息的请求信息,基于所述子鉴权信息,确定发出所述请求信息的子账户,可以通过以下步骤来实现:In other embodiments of the present application, the first processor 810 is used to execute the information processing program stored in the first memory 820 in response to the input request information carrying the sub-authentication information, and determine the sub-account that issued the request information based on the sub-authentication information, which can be implemented by the following steps:
响应于所述请求信息,对所述子鉴权信息进行鉴权,得到鉴权结果;In response to the request information, authenticating the sub-authentication information to obtain an authentication result;
在所述鉴权结果通过验证的情况下,确定与所述子鉴权信息关联的子账户为发出所述请求信息的子账户。In the case where the authentication result passes the verification, the sub-account associated with the sub-authentication information is determined to be the sub-account that issued the request information.
在本申请其他实施例中,第一处理器810用于执行第一存储器820中存储的信息处理程序中的响应于所述请求信息,对所述子鉴权信息进行鉴权,得到鉴权结果之前,还可以执行以下步骤:In other embodiments of the present application, the first processor 810 is used to execute the information processing program stored in the first memory 820 in response to the request information, authenticate the sub-authentication information, and before obtaining the authentication result, may further perform the following steps:
响应于基于所述子账户输入的登录信息,生成与所述子账户关联的所述子鉴权信息;generating the sub-authentication information associated with the sub-account in response to login information input based on the sub-account;
响应于基于所述子鉴权信息输入的初始请求信息,生成所述请求信息。The request information is generated in response to initial request information input based on the sub-authentication information.
在本申请其他实施例中,第一处理器810用于执行第一存储器820中存储的信息处理程序中的确定与所述账户相匹配的主账户,可以通过以下步骤来实现:In other embodiments of the present application, the first processor 810 is used to execute the information processing program stored in the first memory 820 to determine the primary account that matches the account, which can be achieved by the following steps:
在账户数据库中,确定与所述账户相匹配的主账户;其中,所述账户数据库至少包括每一主账户以及所述每一主账户相关联的账户集合;In an account database, determining a primary account matching the account; wherein the account database includes at least each primary account and a set of accounts associated with each primary account;
相应地,所述确定与所述主账户关联的主鉴权信息,包括:Accordingly, the determining the master authentication information associated with the master account includes:
在鉴权缓存区间中,确定与所述主账户相关联的所述主鉴权信息;其中,所述鉴权缓存区间存储有每一主账户相关联的主鉴权信息。In the authentication cache interval, the primary authentication information associated with the primary account is determined; wherein the authentication cache interval stores the primary authentication information associated with each primary account.
在本申请其他实施例中,第一处理器810用于执行第一存储器820中存储的信息处理程序中的基于所述主鉴权信息和所述请求信息,生成平台请求,可以通过以下步骤来实现:In other embodiments of the present application, the first processor 810 is used to execute the information processing program stored in the first memory 820 to generate a platform request based on the primary authentication information and the request information, which can be implemented by the following steps:
将所述请求信息中的所述子鉴权信息替换为所述主鉴权信息,生成中间请求信息;Replacing the sub-authentication information in the request information with the main authentication information to generate intermediate request information;
将所述中间请求信息中的边缘网关地址替换为平台网关地址,生成用于发送至所述平台网关的所述平台请求。The edge gateway address in the intermediate request information is replaced with the platform gateway address to generate the platform request for sending to the platform gateway.
在本申请其他实施例中,第一处理器810用于执行第一存储器820中存储的信息处理程序中的发送所述平台请求至平台网关,以使所述平台网关确定与所述请求信息相匹配的请求结果之后,还可以执行以下步骤:In other embodiments of the present application, the first processor 810 is used to execute the information processing program stored in the first memory 820 to send the platform request to the platform gateway so that the platform gateway determines the request result that matches the request information, and then further perform the following steps:
接收所述平台网关发送的所述请求结果;Receiving the request result sent by the platform gateway;
对所述请求结果进行解析得到解析结果,并将所述解析结果发送至与所述子账户关联的客户端。The request result is parsed to obtain a parsing result, and the parsing result is sent to a client associated with the sub-account.
在本申请其他实施例中,第一处理器810用于执行第一存储器820中存储的信息处理程序中的响应于输入的携带子鉴权信息的请求信息,确定发出所述请求信息的子账户之前,可以执行以下步骤:In other embodiments of the present application, the first processor 810 is used to execute the information processing program stored in the first memory 820 in response to the input request information carrying the sub-authentication information, and before determining the sub-account that issued the request information, the following steps may be performed:
确定所述平台网关上部署的每一应用程序编程接口API的处理请求信息的处理时长;Determine the processing time of each application programming interface API deployed on the platform gateway for processing request information;
将所述处理时长大于预设时长的API,确定为目标API;The API whose processing time is longer than the preset time is determined as the target API;
发送所述目标API的标识信息至平台网关,以使所述平台网关控制所述目标API处理对应的请求信息的时间提前。The identification information of the target API is sent to the platform gateway, so that the platform gateway controls the target API to process the corresponding request information in advance.
需要说明的是,本实施例中第一处理器所执行的步骤的具体实现过程,可以参照图1、图2或图4对应的实施例提供的信息处理方法中的实现过程,此处不再赘述。It should be noted that the specific implementation process of the steps executed by the first processor in this embodiment can refer to the implementation process in the information processing method provided in the embodiments corresponding to Figure 1, Figure 2 or Figure 4, and will not be repeated here.
本申请实施例提供的边缘网关,在边缘网关上提前部署与主账户关联的多个子账户,以及及时更新并获取与主账户关联的主鉴权信息,进而通过对发出相关请求信息的子账户,进行鉴权以及过滤,实现在扩大申请能力的用户范围的基础上,能够简化申请相关业务的步骤,同时能够提高申请相关信息的效率。The edge gateway provided in the embodiment of the present application deploys multiple sub-accounts associated with the main account on the edge gateway in advance, and timely updates and obtains the main authentication information associated with the main account, and then authenticates and filters the sub-accounts that issue relevant request information, thereby expanding the user range of application capabilities and simplifying the steps of applying for related services, while improving the efficiency of applying for related information.
基于前述实施例,本申请实施例提供一种平台网关900,该平台网关900可以应用于图3和图4对应的实施例提供的信息处理方法中,参照图9所示,该平台网关900可以包括:第二处理器910、第二存储器920和第二通信总线930;Based on the foregoing embodiments, an embodiment of the present application provides a platform gateway 900, which can be applied to the information processing method provided in the embodiments corresponding to FIG. 3 and FIG. 4 . As shown in FIG. 9 , the platform gateway 900 may include: a second processor 910, a second memory 920, and a second communication bus 930;
第二通信总线930用于实现第二处理器910和第二存储器920之间的通信连接;The second communication bus 930 is used to realize the communication connection between the second processor 910 and the second memory 920;
第二处理器910用于执行第二存储器920中存储的信息处理程序,以实现以下步骤:The second processor 910 is used to execute the information processing program stored in the second memory 920 to implement the following steps:
接收边缘网关发送的目标API的标识信息;其中,所述目标API为处理请求信息的处理时长大于预设时长的API;Receive identification information of a target API sent by an edge gateway; wherein the target API is an API whose processing time for processing request information is greater than a preset time;
接收所述边缘网关发送的平台请求;Receiving a platform request sent by the edge gateway;
在所述平台请求对应的API为所述目标API的情况下,基于所述平台请求中携带的调用时间,控制所述目标API生成与所述平台请求对应的请求结果;In a case where the API corresponding to the platform request is the target API, based on the call time carried in the platform request, controlling the target API to generate a request result corresponding to the platform request;
发送所述请求结果至所述边缘网关。Send the request result to the edge gateway.
需要说明的是,本实施例中第二处理器所执行的步骤的具体实现过程,可以参照图3或4对应的实施例提供的信息处理方法中的实现过程,此处不再赘述。It should be noted that the specific implementation process of the steps executed by the second processor in this embodiment can refer to the implementation process in the information processing method provided in the corresponding embodiment of Figure 3 or 4, and will not be repeated here.
本申请实施例提供的平台网关,获取边缘网关发送的目标API的标识信息以及请求信息,并在请求信息对应的API为目标PAI的情况下,根据平台请求内部的请求处理时间,对目标API处理该平台请求的时间进行调整;如此,能够结合相关请求时间,对应的准备请求结果,能够降低相关客户端获取请求结果的时长,进而能够提高处理业务的效率。The platform gateway provided in the embodiment of the present application obtains the identification information and request information of the target API sent by the edge gateway, and when the API corresponding to the request information is the target PAI, adjusts the time for the target API to process the platform request according to the request processing time inside the platform request; in this way, it is possible to prepare the request result accordingly in combination with the relevant request time, which can reduce the time for the relevant client to obtain the request result, thereby improving the efficiency of processing business.
基于前述实施例,本申请实施例提供一种信息处理系统,该信息处理系统包括如前述实施例提供的边缘网关和平台网关。Based on the foregoing embodiments, an embodiment of the present application provides an information processing system, which includes an edge gateway and a platform gateway as provided in the foregoing embodiments.
基于前述实施例,本申请实施例还提供一种计算机存储介质,该计算机存储介质存储有一个或者多个程序,该一个或者多个程序可被一个或者多个处理器执行,以实现如图1至4对应的实施例提供的信息处理方法。Based on the foregoing embodiments, the embodiments of the present application also provide a computer storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the information processing method provided in the embodiments corresponding to Figures 1 to 4.
需要说明的是,上述计算机可读存储介质可以是只读存储器(Read Only Memory,ROM)、可编程只读存储器(Programmable Read Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read Only Memory,EEPROM)、磁性随机存取存储器(Ferromagnetic Random Access Memory,FRAM)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(Compact Disc-Read Only Memory,CD-ROM)等存储器;也可以是包括上述存储器之一或任意组合的各种电子设备,如移动电话、计算机、平板设备、个人数字助理等。It should be noted that the above-mentioned computer-readable storage medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所描述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111005556.6A CN115733837B (en) | 2021-08-30 | 2021-08-30 | Information processing method, gateway, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111005556.6A CN115733837B (en) | 2021-08-30 | 2021-08-30 | Information processing method, gateway, system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115733837A CN115733837A (en) | 2023-03-03 |
CN115733837B true CN115733837B (en) | 2024-06-11 |
Family
ID=85290858
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111005556.6A Active CN115733837B (en) | 2021-08-30 | 2021-08-30 | Information processing method, gateway, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115733837B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116319027A (en) * | 2023-03-23 | 2023-06-23 | 北京百度网讯科技有限公司 | Authentication request generation method and device, electronic equipment and readable storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1695275A1 (en) * | 2003-12-18 | 2006-08-30 | Inghoo Huh | Bank transaction method linking accounts via common accounts |
WO2010091572A1 (en) * | 2009-02-10 | 2010-08-19 | 中兴通讯股份有限公司 | Realization method and system of iptv in one house with a plurality of machines |
US9921894B1 (en) * | 2017-03-17 | 2018-03-20 | Accenture Global Solutions Limited | Extensible single point orchestration system for application program interfaces |
US10015167B1 (en) * | 2017-03-17 | 2018-07-03 | Accenture Global Solutions Limited | Extensible key management system for application program interfaces |
CN109075975A (en) * | 2016-04-07 | 2018-12-21 | 维萨国际服务协会 | Public network account it is tokenized |
US10405017B1 (en) * | 2017-08-03 | 2019-09-03 | Cox Communications, Inc. | Secure access to content provided over a distributed network |
US10630682B1 (en) * | 2016-11-23 | 2020-04-21 | Amazon Technologies, Inc. | Lightweight authentication protocol using device tokens |
WO2020233361A1 (en) * | 2019-05-21 | 2020-11-26 | 深圳壹账通智能科技有限公司 | Internal service invoking method and apparatus based on gateway, and terminal device |
CN112272835A (en) * | 2018-04-13 | 2021-01-26 | 普拉德有限公司 | Secure licensing of user account access, including secure distribution of aggregated user account data |
CN112448927A (en) * | 2019-08-30 | 2021-03-05 | 长城汽车股份有限公司 | Service request processing method and device |
CN112866249A (en) * | 2021-01-18 | 2021-05-28 | 深信服科技股份有限公司 | Application login management method and device and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110191209A1 (en) * | 2005-01-26 | 2011-08-04 | 2B Wireless | Method and System for Conditional Transactions |
US20150095225A1 (en) * | 2013-10-02 | 2015-04-02 | Mastercard International Incorporated | Enabling synchronization between disparate payment account systems |
CN105516135B (en) * | 2015-12-08 | 2020-02-21 | 腾讯科技(深圳)有限公司 | Method and device for account login |
CN110730153B (en) * | 2018-07-16 | 2022-06-14 | 阿里巴巴集团控股有限公司 | Account configuration method, device and system of cloud equipment and data processing method |
-
2021
- 2021-08-30 CN CN202111005556.6A patent/CN115733837B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1695275A1 (en) * | 2003-12-18 | 2006-08-30 | Inghoo Huh | Bank transaction method linking accounts via common accounts |
WO2010091572A1 (en) * | 2009-02-10 | 2010-08-19 | 中兴通讯股份有限公司 | Realization method and system of iptv in one house with a plurality of machines |
CN109075975A (en) * | 2016-04-07 | 2018-12-21 | 维萨国际服务协会 | Public network account it is tokenized |
US10630682B1 (en) * | 2016-11-23 | 2020-04-21 | Amazon Technologies, Inc. | Lightweight authentication protocol using device tokens |
US9921894B1 (en) * | 2017-03-17 | 2018-03-20 | Accenture Global Solutions Limited | Extensible single point orchestration system for application program interfaces |
US10015167B1 (en) * | 2017-03-17 | 2018-07-03 | Accenture Global Solutions Limited | Extensible key management system for application program interfaces |
US10405017B1 (en) * | 2017-08-03 | 2019-09-03 | Cox Communications, Inc. | Secure access to content provided over a distributed network |
CN112272835A (en) * | 2018-04-13 | 2021-01-26 | 普拉德有限公司 | Secure licensing of user account access, including secure distribution of aggregated user account data |
WO2020233361A1 (en) * | 2019-05-21 | 2020-11-26 | 深圳壹账通智能科技有限公司 | Internal service invoking method and apparatus based on gateway, and terminal device |
CN112448927A (en) * | 2019-08-30 | 2021-03-05 | 长城汽车股份有限公司 | Service request processing method and device |
CN112866249A (en) * | 2021-01-18 | 2021-05-28 | 深信服科技股份有限公司 | Application login management method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115733837A (en) | 2023-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020253401A1 (en) | File management method, apparatus, system and device, and computer-readable storage medium | |
CN109669690B (en) | Business workflow generation method, device, equipment and computer readable storage medium | |
CN110569658A (en) | User information processing method, device, electronic equipment and storage medium based on block chain network | |
CN109039792A (en) | Management method, device, equipment and the storage medium of network management device | |
CN111736854B (en) | A method for efficient development and deployment of blockchain applications | |
CN110324338A (en) | Data interactive method, device, fort machine and computer readable storage medium | |
CN109034603B (en) | Business process execution method, device and computer readable storage medium | |
CN103023935B (en) | M2M platforms cloud system and its method of processing M2M services | |
CN115733837B (en) | Information processing method, gateway, system and storage medium | |
CN113590308A (en) | Workflow processing method, device, equipment and medium for applying for cloud resources | |
CN114564673A (en) | A method and system for realizing enterprise intelligent policy service based on big data | |
WO2024066749A1 (en) | Blockchain transaction execution method and apparatus, program product, device, and medium | |
CN113129002A (en) | Data processing method and equipment | |
WO2021081705A1 (en) | Method and device for payment platform management, payment platform, and computer storage medium | |
WO2025195085A1 (en) | Data preheating method and apparatus used in cdn, and device and medium | |
CN110309635B (en) | Data quality model management method, device, equipment and computer storage medium | |
WO2024193336A1 (en) | Permission determination method and apparatus, and device and storage medium | |
EP1468544B1 (en) | Method and apparatus for controlling a multi-node process | |
CN117896130A (en) | Industrial Internet data access control method, device, equipment and medium | |
CN114884950B (en) | A resource orchestration method for cross-service communication based on blockchain on edge cloud | |
CN114677138B (en) | Data processing method, device and computer readable storage medium | |
CN115776548A (en) | Double recording system | |
CN115700685A (en) | Method for realizing APP-free mobile office through 5G message | |
CN109299127B (en) | Communication service query method and device and readable storage medium | |
CN117291406A (en) | Service processing method, device, computer equipment, storage medium and program product |
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 |